1 TString input_dir =
"./";
2 TString output_dir =
"./";
3 TString input_chain =
"sdt20211025.120000,fzin,geant,FieldOn,logger,MakeEvent,CMuDst,fcsSim,fcsWFF,fcsCluster,fcsPoint";
7 void runSimBfc( Int_t nEvents=1000, Int_t run=1,
const char* pid=
"mu+",
int TrgVersion=202207,
8 int debug=0,
int e=0,
float pt=4.0,
float vz=0.0,
9 char* epdmask=
"0.0300",
12 TString myDir=input_dir, TString myOutDir=output_dir,
13 TString myChain=input_chain, Int_t mnEvents=0){
15 gROOT->LoadMacro(
"bfc.C");
19 if(proc.Contains(
"dy") || proc.Contains(
"mb") || proc.Contains(
"jet") || proc.Contains(
"dybg")){
20 myDat=Form(
"pythia.%s.vz%d.run%i.fzd",pid,(
int)vz,run);
22 myDat=Form(
"%s.e%d.vz%d.run%i.fzd",pid,e,(
int)vz,run);
24 myDat=Form(
"%s.pt%3.1f.vz%d.run%i.fzd",pid,pt,(
int)vz,run);
26 printf(
"Opening %s\n",(myDir+myDat).Data());
27 bfc( -1, myChain, myDir+myDat );
29 TString outfile = myOutDir + myDat.ReplaceAll(
".fzd",
".root");
30 cout <<
"output file=" <<outfile<<endl;
31 chain->SetOutputFile(outfile);
34 dbMk->SetAttr(
"blacklist",
"tpc");
35 dbMk->SetAttr(
"blacklist",
"svt");
36 dbMk->SetAttr(
"blacklist",
"ssd");
37 dbMk->SetAttr(
"blacklist",
"ist");
38 dbMk->SetAttr(
"blacklist",
"pxl");
39 dbMk->SetAttr(
"blacklist",
"pp2pp");
40 dbMk->SetAttr(
"blacklist",
"ftpc");
41 dbMk->SetAttr(
"blacklist",
"emc");
42 dbMk->SetAttr(
"blacklist",
"eemc");
43 dbMk->SetAttr(
"blacklist",
"mtd");
44 dbMk->SetAttr(
"blacklist",
"pmd");
45 dbMk->SetAttr(
"blacklist",
"tof");
46 dbMk->SetAttr(
"blacklist",
"etof");
47 dbMk->SetAttr(
"blacklist",
"rhicf");
48 dbMk->SetAttr(
"blacklist",
"Calibrations_rich");
51 cout <<
"fcsdbmkr="<<fcsdbmkr<<endl;
54 cout <<
"fcsdb="<<fcsdb<<endl;
61 wff->setEnergySelect(0);
69 poi->setShowerShape(3);
71 gSystem->Load(
"StFcsEcalHcalMipMaker");
98 gSystem->Load(
"StEpdUtil");
99 gSystem->Load(
"StFcsEventDisplay");
101 fcsed->setMaxEvents(eventDisplay);
102 outfile.ReplaceAll(
".root",
".eventDisplay.png");
103 fcsed->setFileName(outfile.Data());
107 StMaker::lsMakers(chain);
108 chain->EventLoop(mnEvents,nEvents);
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)