1 TString opt =
"in MakeEvent evout tpcDb trgd fcsDat fcsWFF fcsCluster fcsPoint";
3 void runBfc(
const Char_t *file=
"/gpfs01/star/subsysg/FPS/fcs2021/st_physics_22066021_raw_0000002.daq",
4 Int_t nevents=10, Int_t pedLedPhy=2, Int_t eventDisplay=10, Int_t debug=1){
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");
52 fcsDb->setDebug(debug);
62 hitmk->setDebug(debug);
66 wff->setEnergySelect(10);
72 wff->setCenterTimeBins(207,190,240);
74 wff->setCenterTimeBins(207+8,190+8,240+8);
79 wff->setCenterTimeBins(50,30,100);
81 sprintf(wffout,
"%d/%d.wff",day,run);
83 sprintf(wffout2,
"%d/%d.wfftime.png",day,run);
84 wff->setMeasureTime(wffout2);
91 poi->setShowerShape(3);
94 gSystem->Load(
"StFcsEventDisplay");
96 if(pedLedPhy>0 && eventDisplay>0){
97 gSystem->Load(
"StEpdUtil");
99 fcsed->setMaxEvents(eventDisplay);
100 sprintf(edout,
"%d/%d.eventDisplay.png",day,run);
101 fcsed->setFileName(edout);
106 gSystem->Load(
"StFcsQaMaker");
111 hitmk->setReadMode(0);
112 qaMkr->setMaxTimeBins(1024);
113 qaMkr->setMaxAdc(512);
114 }
else if(pedLedPhy==1){
115 hitmk->setReadMode(0);
116 qaMkr->setMaxTimeBins(256);
117 qaMkr->setSumTimeBins(210,225);
118 qaMkr->setMaxAdc(2048);
119 qaMkr->setMaxAdcSum(20000);
120 }
else if(pedLedPhy==2){
121 hitmk->setReadMode(1);
122 qaMkr->setMaxTimeBins(160);
123 qaMkr->setSumTimeBins(35,60);
124 qaMkr->setMaxAdc(1024);
125 qaMkr->setMaxAdcSum(2000);
132 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)