1 void runEvent(Int_t nevents=10, Int_t pedLedPhy=2, Int_t eventDisplay=0, Int_t debug=0,
2 const Char_t *file=
"/gpfs01/star/subsysg/FPS/fcs2019/event/liangxl/gain0015_20192002/st_physics_20192002_raw_1500002.event.root"){
4 cout<<
" Input Filename = "<<file<<endl;
5 TString opt =
"in fcsCluster";
10 TString dir(f); dir.Remove(l2+1,l1-l2);
11 TString fne(f); fne.Remove(0,l2+1);
13 int l3= crun.First(
'_'); crun.Remove(0,l3+1);
14 int l4= crun.First(
'_'); crun.Remove(0,l4+1);
16 int l5 =crun.Length();
17 int l6= crun.First(
'_'); crun.Remove(l6,l5-l6);
19 int l7=srun.First(
'_'); srun.Remove(0,l7+1);
20 int l8 = srun.First(
".");
21 int l9 = srun.Length();
22 srun.Remove(l8,l9-l8);
25 int subrun=srun.Atoi();
27 printf(
"Run=%d SubRun=%d yearday=%d\n",run,subrun,day);
29 gROOT->LoadMacro(
"bfc.C");
31 gROOT->Macro(
"load.C");
35 dbMk->SetAttr(
"blacklist",
"tpc");
36 dbMk->SetAttr(
"blacklist",
"svt");
37 dbMk->SetAttr(
"blacklist",
"ssd");
38 dbMk->SetAttr(
"blacklist",
"ist");
39 dbMk->SetAttr(
"blacklist",
"pxl");
40 dbMk->SetAttr(
"blacklist",
"pp2pp");
41 dbMk->SetAttr(
"blacklist",
"ftpc");
42 dbMk->SetAttr(
"blacklist",
"emc");
43 dbMk->SetAttr(
"blacklist",
"eemc");
44 dbMk->SetAttr(
"blacklist",
"mtd");
45 dbMk->SetAttr(
"blacklist",
"pmd");
46 dbMk->SetAttr(
"blacklist",
"tof");
47 dbMk->SetAttr(
"blacklist",
"etof");
48 dbMk->SetAttr(
"blacklist",
"rhicf");
52 fcsDbMkr->setRun(run);
53 fcsDbMkr->setDebug(debug);
54 fcsDbMkr->setRun19(1);
55 fcsDbMkr->readGainFromText();
56 fcsDbMkr->readGainCorrFromText();
60 gSystem->Load(
"StTriggerFilterMaker");
62 filterMaker->printTriggerId();
63 filterMaker->addTrigger(19);
64 filterMaker->addTrigger(20);
65 filterMaker->addTrigger(21);
66 filterMaker->addTrigger(22);
67 filterMaker->addTrigger(23);
68 filterMaker->addTrigger(24);
69 filterMaker->addTrigger(25);
70 filterMaker->addTrigger(26);
71 filterMaker->addTrigger(27);
72 filterMaker->addTrigger(28);
73 filterMaker->addTrigger(29);
74 filterMaker->addTrigger(30);
75 filterMaker->addTrigger(31);
76 filterMaker->addTrigger(700001);
77 filterMaker->addTrigger(700013);
102 gSystem->Load(
"StFcsMIPMaker");
105 MIPMkr->setSubRun(subrun);
109 qaMkr->setMaxTimeBins(1024);
110 qaMkr->setMaxAdc(512);
111 }
else if(pedLedPhy==1){
113 qaMkr->setMaxTimeBins(256);
114 qaMkr->setSumTimeBins(210,225);
115 qaMkr->setMaxAdc(2048);
116 qaMkr->setMaxAdcSum(20000);
117 clu->setEnergySelect(1);
118 clu->setSumTimeBins(210,225);
119 }
else if(pedLedPhy==2){
125 clu->setEnergySelect(1);
126 clu->setSumTimeBins(48,60);
133 chain->EventLoop(nevents);