10 void fast(
char *inFile =
"sim.fzd",
12 bool useFstForSeedFinding =
true,
13 bool enableTrackRefit =
true,
14 bool realisticSim =
true,
18 cout <<
"inFile = " << inFile << endl;
19 cout <<
"n = " << n << endl;
20 cout <<
"useFstForSeedFinding = " << useFstForSeedFinding << endl;
21 cout <<
"enableTrackRefit = " << enableTrackRefit << endl;
22 cout <<
"realisticSim = " << realisticSim << endl;
23 cout <<
"useZeroB = " << useZeroB << endl;
24 const char *geom =
"";
29 bool useConstBz =
false;
39 _chain = Form(
"fzin %s sdt20211016 fwdTrack MakeEvent bigbig evout cmudst tree", _geom.Data() );
42 gSystem->Load(
"libStarRoot.so" );
43 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");
44 gROOT->LoadMacro(
"bfc.C");
45 bfc(-1, _chain, inFile);
47 gSystem->Load(
"libStFttSimMaker" );
48 gSystem->Load(
"libStFcsTrackMatchMaker" );
50 gSystem->Load(
"libMathMore.so" );
51 gSystem->Load(
"libStarGeneratorUtil" );
54 gSystem->Load(
"StFwdUtils.so");
62 fwdTrack->SetDebug(1);
65 cout <<
"Using the Geometry cache: fGeom.root" << endl;
70 if (useFstForSeedFinding)
81 fwdTrack->
setOutputFilename( TString::Format(
"%s.output.root", inFile ).Data() );
82 fwdTrack->SetVisualize(
false );
88 cout <<
"Setting B = 0" << endl;
94 StFwdFitQAMaker *fwdFitQA =
new StFwdFitQAMaker();
96 TString fitqaoutname(gSystem->BaseName(inFile));
97 fitqaoutname.ReplaceAll(
".fzd",
".FwdFitQA.root");
98 fwdFitQA->setOutputFilename( fitqaoutname );
99 chain->AddAfter(
"fwdTrack", fwdFitQA);
101 cout <<
"fwd tracker setup" << endl;
109 TString fwdqaname(gSystem->BaseName(inFile));
110 fwdqaname.ReplaceAll(
".fzd",
".FwdTree.root");
111 fwdQA->setTreeFilename(fwdqaname);
112 chain->AddAfter(
"MuDst", fwdQA);
116 gSystem->Load(
"libStPicoEvent");
117 gSystem->Load(
"libStPicoDstMaker");
119 cout <<
"picoMk = " << picoMk << endl;
129 for (
int i = 0; i < n; i++) {
130 cout <<
"--------->START EVENT: " << i << endl;
134 cout <<
"<---------- END EVENT" << endl;
Class that converts MuDst into PicoDst.
void setZeroB(bool zeroB=true)
Set B-field to zero (for zero field running)
virtual void Clear(Option_t *option="")
User defined functions.
void setConstB(bool constB=true)
Set B-field to constant (even outside of TPC)
void setSeedFindingWithFtt()
Use Ftt hits in the Seed Finding.
void setVtxMode(const PicoVtxMode vtxMode)
Set vertex selection mode.
void setOutputFilename(std::string fn)
Set the filename for output ROOT file.
void setTrackRefit(bool refit=true)
Sets the tracking to refit This adds compatible hits from whichever detector was NOT used in seed fin...
void setGeoCache(TString gc)
Sets geometry cache filename.
void setSeedFindingWithFst()
Use Fst hits in the Seed Finding.