1 TString opt =
"in MakeEvent Mudst evout trgd fcsDat fcsWFF fcsCluster fcsPoint Tpcdb";
3 void runBfc(Int_t nevents=1000000,
const Char_t *file=
"st_fcs_22179052_raw_0000001.daq", Int_t pedLedPhy=3, Int_t eventDisplay=1000, Int_t debug=0){
8 TString dir(f); dir.Remove(l2+1,l1-l2);
9 TString fne(f); fne.Remove(0,l2+1);
11 int l3= crun.First(
'_'); crun.Remove(0,l3+1);
12 int l4= crun.First(
'_'); crun.Remove(0,l4+1);
13 int l5 =crun.Length();
int l6= crun.First(
'_'); crun.Remove(l6,l5-l6);
21 printf(
"Run=%d yearday=%d\n",run,day);
24 gROOT->LoadMacro(
"bfc.C");
29 dbMk->SetAttr(
"blacklist",
"tpc");
30 dbMk->SetAttr(
"blacklist",
"svt");
31 dbMk->SetAttr(
"blacklist",
"ssd");
32 dbMk->SetAttr(
"blacklist",
"ist");
33 dbMk->SetAttr(
"blacklist",
"pxl");
34 dbMk->SetAttr(
"blacklist",
"pp2pp");
35 dbMk->SetAttr(
"blacklist",
"ftpc");
36 dbMk->SetAttr(
"blacklist",
"emc");
37 dbMk->SetAttr(
"blacklist",
"eemc");
38 dbMk->SetAttr(
"blacklist",
"mtd");
39 dbMk->SetAttr(
"blacklist",
"pmd");
40 dbMk->SetAttr(
"blacklist",
"tof");
41 dbMk->SetAttr(
"blacklist",
"etof");
42 dbMk->SetAttr(
"blacklist",
"rhicf");
51 fcsDb->setDebug(debug);
62 gSystem->Load(
"StTriggerFilterMaker");
64 filterMaker->printTriggerId();
65 filterMaker->addTrigger(860000);
67 filterMaker->addTofUpperLimit(20);
71 hitmk->setDebug(debug);
75 wff->setEnergySelect(10);
80 wff->setEnergySelect(2);
81 wff->setCenterTimeBins(50,30,100);
82 }
else if(pedLedPhy==1){
84 wff->setCenterTimeBins(207,190,240);
86 wff->setCenterTimeBins(207+8,190+8,240+8);
91 wff->setCenterTimeBins(50,30,100);
93 sprintf(wffout,
"%d/%d.wff",day,run);
95 sprintf(wffout2,
"%d/%d.wfftime.png",day,run);
96 wff->setMeasureTime(wffout2);
102 clu->setNeighborDistance(2.4,2.4);
103 clu->setTowerEThreshold(0.001,0.001);
104 clu->setTowerEThreMoment(0.001,0.001);
105 clu->setTowerERatio2Split(100,100);
111 poi->setShowerShape(3);
115 gSystem->Load(
"StFcsCosmicMaker");
120 gSystem->Load(
"StFcsEventDisplay");
122 if(pedLedPhy>0 && eventDisplay>0){
123 gSystem->Load(
"StEpdUtil");
125 fcsed->setMaxEvents(eventDisplay);
126 sprintf(edout,
"%d/%d.eventDisplay.png",day,run);
127 fcsed->setFileName(edout);
129 if(pedLedPhy==3) fcsed->setMinMax(-3,1);
132 gSystem->Load(
"StFcsQaMaker");
137 hitmk->setReadMode(0);
138 qaMkr->setMaxTimeBins(1024);
139 qaMkr->setMaxAdc(512);
140 }
else if(pedLedPhy==1){
141 hitmk->setReadMode(0);
142 qaMkr->setMaxTimeBins(256);
143 qaMkr->setSumTimeBins(210,225);
144 qaMkr->setMaxAdc(2048);
145 qaMkr->setMaxAdcSum(20000);
146 }
else if(pedLedPhy==2){
147 hitmk->setReadMode(1);
148 qaMkr->setMaxTimeBins(160);
149 qaMkr->setSumTimeBins(35,60);
150 qaMkr->setMaxAdc(1024);
151 qaMkr->setMaxAdcSum(2000);
158 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)