1 TString opt =
"in fcsWFF fcsCluster fcsPoint";
3 void runEvent(Int_t nevents=100, Int_t pedLedPhy=2, Int_t eventDisplay=100, Int_t debug=0,
4 const Char_t *file=
"st_physics_22066021_raw_0000002.event.root"){
9 TString dir(f); dir.Remove(l2+1,l1-l2);
10 TString fne(f); fne.Remove(0,l2+1);
12 int l3= crun.First(
'_'); crun.Remove(0,l3+1);
13 int l4= crun.First(
'_'); crun.Remove(0,l4+1);
14 int l5 =crun.Length();
int l6= crun.First(
'_'); crun.Remove(l6,l5-l6);
22 printf(
"Run=%d yearday=%d\n",run,day);
25 gROOT->LoadMacro(
"bfc.C");
30 dbMk->SetAttr(
"blacklist",
"tpc");
31 dbMk->SetAttr(
"blacklist",
"svt");
32 dbMk->SetAttr(
"blacklist",
"ssd");
33 dbMk->SetAttr(
"blacklist",
"ist");
34 dbMk->SetAttr(
"blacklist",
"pxl");
35 dbMk->SetAttr(
"blacklist",
"pp2pp");
36 dbMk->SetAttr(
"blacklist",
"ftpc");
37 dbMk->SetAttr(
"blacklist",
"emc");
38 dbMk->SetAttr(
"blacklist",
"eemc");
39 dbMk->SetAttr(
"blacklist",
"mtd");
40 dbMk->SetAttr(
"blacklist",
"pmd");
41 dbMk->SetAttr(
"blacklist",
"tof");
42 dbMk->SetAttr(
"blacklist",
"etof");
43 dbMk->SetAttr(
"blacklist",
"rhicf");
49 fcsDb->setDebug(debug);
57 wff->setEnergySelect(10);
62 wff->setCenterTimeBins(207,190,240);
64 wff->setCenterTimeBins(207+8,190+8,240+8);
69 wff->setCenterTimeBins(50,30,100);
71 sprintf(wffout,
"%d/%d.wff",day,run);
73 sprintf(wffout2,
"%d/%d.wfftime.png",day,run);
74 wff->setMeasureTime(wffout2);
76 gSystem->Load(
"StFcsEventDisplay");
78 if(pedLedPhy>0 && eventDisplay>0){
79 gSystem->Load(
"StEpdUtil");
81 fcsed->setMaxEvents(eventDisplay);
82 sprintf(edout,
"%d/%d.eventDisplay.png",day,run);
83 fcsed->setFileName(edout);
87 gSystem->Load(
"StFcsQaMaker");
91 qaMkr->setMaxTimeBins(1024);
92 qaMkr->setMaxAdc(512);
93 }
else if(pedLedPhy==1){
94 qaMkr->setMaxTimeBins(256);
95 qaMkr->setSumTimeBins(210,225);
96 qaMkr->setMaxAdc(2048);
97 qaMkr->setMaxAdcSum(20000);
98 }
else if(pedLedPhy==2){
99 qaMkr->setMaxTimeBins(160);
100 qaMkr->setSumTimeBins(35,60);
101 qaMkr->setMaxAdc(1024);
102 qaMkr->setMaxAdcSum(2000);
109 chain->EventLoop(nevents);
void forceUniformGain(float ecal, float hcal=0.0053, float pres=0.01)
fixed default gaincorr
void setDbAccess(int v=1)
debug level
void forceUniformGainCorrection(float ecal, float hcal=1.0, float pres=0.5)