1 TString input_dir =
"fzd/";
2 TString output_dir =
"sim/";
3 TString input_chain =
"sdt20141215,fzin,geant,evout,y2015,FieldOn,logger,MakeEvent,McEvout,IdTruth,ReverseField,db,fmsDB,fmsSim,FmsPoint,-tpcDB";
7 void runSimBfc( Int_t nEvents=100, Int_t run=100,
const char* pid=
"gamma",
int merge=1,
9 TString myDir=input_dir, TString myOutDir=output_dir,
10 TString myChain=input_chain, Int_t mnEvents=1){
12 gROOT->LoadMacro(
"bfc.C");
13 gROOT->Macro(
"loadMuDst.C");
14 TString myDat=Form(
"test_%s_run%i.fzd",pid,run);
15 bfc( -1, myChain, myDir+myDat );
17 TString outfile = myOutDir + myDat.ReplaceAll(
".fzd",
".root");
19 cout <<
"output file=" <<outfile<<endl;
20 chain->SetOutputFile(outfile);
27 fmsdb->readRecParamFromFile();
31 fmssim->setFpsNPhotonPerMIP(100.0);
34 pointMaker->setMergeSmallToLarge(merge);
36 gSystem->Load(
"StFmsFpsMaker");
39 outfile.ReplaceAll(
".root",
".fmsfps.root");
40 fmsfps->setQA(outfile.Data());
43 gSystem->Load(
"StFmsEventDisplay");
45 fmsed->setMaxEvents(100);
47 outfile.ReplaceAll(
".fmsfps.root",
".eventDisplay.png");
48 fmsed->setFileName(outfile.Data());
49 if(print==10) fmsed->setFilter(1);
53 StMaker::lsMakers(chain);
54 chain->EventLoop(mnEvents,nEvents);
void setDebug(Int_t debug)
debug mode, 0 for minimal message, >0 for more debug messages