10 void fwd_tracking(
int n = 500,
11 const char *inFile =
"simu/seed.fzd",
12 std::string configFile =
"simu/seed.xml",
13 const char *geom =
"y2023") {
16 bool useConstBz =
false;
22 _chain = Form(
"fzin %s sdt20211016 fstFastSim fcsSim fcsWFF fcsCluster fwdTrack MakeEvent StEvent ReverseField agml usexgeom bigbig evout cmudst tree", _geom.Data());
24 _chain = Form(
"fzin %s sdt20211016 MakeEvent StEvent ReverseField agml usexgeom bigbig fstFastSim fcsSim fwdTrack evout cmudst tree", _geom.Data());
28 gSystem->Load(
"libStarRoot.so" );
29 gROOT->SetMacroPath(
".:/star-sw/StRoot/macros/:./StRoot/macros:./StRoot/macros/graphics:./StRoot/macros/analysis:./StRoot/macros/test:./StRoot/macros/examples:./StRoot/macros/html:./StRoot/macros/qa:./StRoot/macros/calib:./StRoot/macros/mudst:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/graphics:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/analysis:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/test:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/examples:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/html:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/qa:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/calib:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/mudst:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/macros:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/tutorials");
30 gROOT->LoadMacro(
"bfc.C");
31 bfc(-1, _chain, inFile);
34 StarMagField::setConstBz(
true);
37 gSystem->Load(
"libStFttSimMaker" );
39 gSystem->Load(
"libStFcsTrackMatchMaker" );
48 cout <<
"fcsdbmkr="<<fcsdbmkr<<endl;
50 cout <<
"fcsdb="<<fcsdb<<endl;
59 fcsWFF->setEnergySelect(0);
71 TString qaoutname(gSystem->BaseName(inFile));
72 qaoutname.ReplaceAll(
".fzd",
".FastSimu.QA.root");
76 fstFastSim->SetInEfficiency(0.1);
78 fstFastSim->SetQAFileName(qaoutname);
80 cout <<
"Adding StFstFastSimMaker to chain" << endl;
81 chain->AddMaker(fstFastSim);
88 cout <<
"Running FwdTracking with config: " << configFile << endl;
89 fwdTrack->SetConfigFile( configFile );
90 fwdTrack->SetGenerateTree(
true );
91 fwdTrack->SetGenerateHistograms(
true );
94 gSystem->Load(
"StFwdUtils.so");
98 chain->AddAfter(
"fwdTrack", fwdAna);
103 gSystem->Load(
"StFcsTrackMatchMaker");
105 match->setMaxDistance(6,10);
106 match->setFileName(
"fcstrk.root");
108 chain->AddMaker(match);
112 chain->AddAfter(
"FcsTrkMatch", fwdAna);
116 chain->AddAfter(
"FcsTrkMatch", muDstMaker );
125 for (
int i = 0; i < n; i++) {
127 cout <<
"--------->START EVENT: " << i << endl;
143 cout <<
"<---------- END EVENT" << endl;
virtual void Clear(Option_t *option="")
User defined functions.