1 TString input_dir =
"./";
2 TString output_dir =
"./";
4 TString input_chain =
"sdt20211025.120000,fzin,geant,FieldOn,logger,MakeEvent,fcsSim,fcsWFF,fcsCluster,fcsPoint";
8 void runSimBfc( Int_t nEvents=1000, Int_t run=1,
const char* pid=
"jet",
9 int e=0,
float pt=1.5,
float vz=0.0,
10 int TrgVersion=202209,
12 char* epdmask=
"0.0100",
15 TString myDir=input_dir, TString myOutDir=output_dir,
16 TString myChain=input_chain, Int_t mnEvents=0){
18 gROOT->LoadMacro(
"bfc.C");
22 if(proc.Contains(
"dy") || proc.Contains(
"mb") || proc.Contains(
"jet") || proc.Contains(
"dybg")){
23 myDat=Form(
"pythia.%s.vz%d.run%i.fzd",pid,(
int)vz,run);
25 myDat=Form(
"%s.e%d.vz%d.run%i.fzd",pid,e,(
int)vz,run);
27 myDat=Form(
"%s.pt%3.1f.vz%d.run%i.fzd",pid,pt,(
int)vz,run);
29 printf(
"Opening %s\n",(myDir+myDat).Data());
30 bfc( -1, myChain, myDir+myDat );
32 TString outfile = myOutDir + myDat.ReplaceAll(
".fzd",
".root");
33 cout <<
"output file=" <<outfile<<endl;
34 chain->SetOutputFile(outfile);
37 dbMk->SetAttr(
"blacklist",
"tpc");
38 dbMk->SetAttr(
"blacklist",
"svt");
39 dbMk->SetAttr(
"blacklist",
"ssd");
40 dbMk->SetAttr(
"blacklist",
"ist");
41 dbMk->SetAttr(
"blacklist",
"pxl");
42 dbMk->SetAttr(
"blacklist",
"pp2pp");
43 dbMk->SetAttr(
"blacklist",
"ftpc");
44 dbMk->SetAttr(
"blacklist",
"emc");
45 dbMk->SetAttr(
"blacklist",
"eemc");
46 dbMk->SetAttr(
"blacklist",
"mtd");
47 dbMk->SetAttr(
"blacklist",
"pmd");
48 dbMk->SetAttr(
"blacklist",
"tof");
49 dbMk->SetAttr(
"blacklist",
"etof");
50 dbMk->SetAttr(
"blacklist",
"rhicf");
51 dbMk->SetAttr(
"blacklist",
"Calibrations_rich");
54 cout <<
"fcsdbmkr="<<fcsdbmkr<<endl;
55 fcsdbmkr->setDbAccess(0);
58 cout <<
"fcsdb="<<fcsdb<<endl;
82 gSystem->Load(
"StFcsTriggerSimMaker");
84 fcsTrgSim->setSimMode(1);
85 fcsTrgSim->setTrigger(TrgVersion);
86 fcsTrgSim->setDebug(debug);
87 fcsTrgSim->setEtGain(1.0);
92 TString qafile(outfile); qafile.ReplaceAll(
".root",
".qahist.root"); fcsTrgSim->setWriteQaHist(qafile.Data());
93 fcsTrgSim->setThresholdFile(
"stage_params.txt");
95 gSystem->Load(
"StFcsTrgQaMaker");
97 TString tqafile(outfile); tqafile.ReplaceAll(
".root",Form(
".thr%s.trgqa.root",epdmask));
98 fcsTrgQa->setFilename(tqafile.Data());
99 fcsTrgQa->setEcalPtThr(pt*0.75);
102 gSystem->Load(
"StEpdUtil");
103 gSystem->Load(
"StFcsEventDisplay");
105 fcsed->setMaxEvents(eventDisplay);
106 outfile.ReplaceAll(
".root",
".eventDisplay.png");
107 fcsed->setFileName(outfile.Data());
111 StMaker::lsMakers(chain);
112 chain->EventLoop(mnEvents,nEvents);
void setLeakyHcal(int v=1)
backward compatibility
void forceUniformGain(float ecal, float hcal=0.0053, float pres=0.01)
fixed default gaincorr
void forceUniformGainCorrection(float ecal, float hcal=1.0, float pres=0.5)