1 #ifndef St_TpcAvgCurrentC_h
2 #define St_TpcAvgCurrentC_h
5 #include "tables/St_TpcAvgCurrent_Table.h"
6 #include "St_tpcAnodeHVC.h"
10 TpcAvgCurrent_st *Struct(Int_t i = 0)
const {
return ((St_TpcAvgCurrent*) Table())->GetTable()+i;}
11 UInt_t getNumRows()
const {
return GetNRows();}
12 Int_t run(Int_t i = 0)
const {
return Struct(i)->run;}
13 Int_t start_time(Int_t i = 0)
const {
return Struct(i)->start_time;}
14 Int_t stop_time(Int_t i = 0)
const {
return Struct(i)->stop_time;}
15 static Int_t ChannelFromRow(Int_t sector, Int_t row);
16 static Int_t ChannelFromSocket(Int_t socket);
17 Float_t AvCurrent(Int_t sector = 1, Int_t channel = 1);
22 Float_t AvCurrSocket(Int_t sector = 1, Int_t socket = 1) {
return AvCurrent(sector,ChannelFromSocket(socket));}
23 Float_t AvCurrRow(Int_t sector = 1, Int_t row = 1) {
return AvCurrent(sector,ChannelFromRow(sector,row));}
24 Float_t AcCharge(Int_t sector = 1, Int_t channel = 1);
30 Float_t AcChargeSocket(Int_t sector = 1, Int_t socket = 1) {
return AcCharge(sector,ChannelFromSocket(socket));}
31 Float_t AcChargeRow(Int_t sector = 1, Int_t row = 1) {
return AcCharge(sector,ChannelFromRow(sector,row));}
32 Float_t AcChargeL(Int_t sector = 1, Int_t channel = 1);
33 Float_t AcChargeRowL(Int_t sector = 1, Int_t row = 1) {
return AcChargeL(sector,ChannelFromRow(sector,row));}
39 ClassDefChair(St_TpcAvgCurrent, TpcAvgCurrent_st )