1 #ifndef STAR_StBarrelMonitorMaker
2 #define STAR_StBarrelMonitorMaker
26 #include "JanBarrelConst.h"
27 #include "JanBarrelEvent.h"
28 #include "JanBprsEveA.h"
44 int nTrigEve, nAcceptEve,nCorrEve;
56 enum {kPassPedSub=0x1, kPassCapFix=0x2};
61 const char *cTile4[mxBTile];
65 TH1 *hBprsA[mxBprsCrate];
67 TH2D *hTonko0,*hTonko1, *hTonko2;
72 void initHistosTiles(
int ibp);
73 void initAuxBprsHistos();
74 TH1F *addBprsEveHisto(
int *cap);
76 void unpackStTiles(
int ibp);
78 void calibrateTiles(
int ibp);
79 void populateBprsEveA();
80 void doTonkosBprsPeds();
83 StEmcGeom *mBtowGeom, *mBprsGeom, * mSmdEGeom, * mSmdPGeom;
90 virtual Int_t InitRun(
int);
91 virtual void Clear(
const Option_t* =
"");
94 void setHList(TObjArray * x){HList=x;}
95 void saveHisto(TString fname=
"fixMe3");
96 void uploadJanCalib(
char* path);
97 void setTrigIdFilter(
int id) {trigID=id;}
98 void setMC(
int x){isMC=x;}
100 void setBprsHisto(
int i) {par_bprsHisto=i;}
101 void setCalibPass(
int i) {par_calibPass=i;}
105 static const char cvs[]=
"Tag $Name: $ $Id: StBarrelMonitorMaker.h,v 1.3 2014/08/06 11:43:06 jeromel Exp $ built " __DATE__
" " __TIME__ ;
139 float smdAdc[mxBSmd][mxBStrips];
140 float smdEne[mxBSmd][mxBStrips];
141 float smdDE[mxBSmd][mxBStrips] ;
142 int smdUsed[mxBSmd][mxBStrips] ;
143 unsigned int smdKill[mxBSmd][mxBStrips];
146 float btowAdc[mxBTail][mxBtow];
147 float btowEne[mxBTail][mxBtow];
148 unsigned int btowKill[mxBTail][mxBtow];
149 float btowDE[mxBTail][mxBtow] ;
156 TH1F *jhGCorr[mxBSmd];
157 TH1I *jhStat[mxBSmd];
158 TH2I *jhMap2id[mxBSmd];
159 TH1I *jhMapid2[mxBSmd];
160 TH1F *jhS2Tmap[mxBSmd];
161 TH1F *jhSped[mxBSmd];
162 float calibC0data, *calibC1;
164 float calibTdata[mxTw20];
167 #if 0 // iso-gamma params
171 float par_isoMinT3x3adc;
172 float par_isoMaxT3x3adc;
173 float par_isoTowerEneR;
175 int par_isoStripMargin;
178 enum{ mxhS=16, mxhC=256};
179 TH1 *hS[mxBSmd][mxhS];
182 TH1 *hStrip[mxCutH][mxBSmd];
185 void initHistosSMD(
int iep,
int modID);
186 void initHistosIsoSmdCluster();
187 void initHistosStrips(
int iep,
int iCut);
189 void scanSmdEtaModule(
int modID);
190 void scanSmdPhiBand(
int iEtaBin_bsmdP);
191 bool scanStrips(
char plane,
int mxStr,
float *eneA,
int *usedA,
unsigned int *killA,
int *idA, BsmdCluster1D &cluster);
192 void pickIsoSmdCluster();
193 float sum3x3towerADC(
int towID,
int size);
194 void sete3x3TwoAdc(
float x,
float y) {par_isoMinT3x3adc=x; par_isoMaxT3x3adc=y;}
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...