10 void close(
char *inFile =
"sim.fzd",
12 double primaryVertexSigmaXY = 0.001,
13 double primaryVertexSigmaZ = 0.001,
14 double fstRasterR = 3.0,
15 double fstRasterPhi = 0.0040906154,
20 cout <<
"inFile = " << inFile << endl;
21 cout <<
"nEvents = " << n << endl;
22 TString mOutput = TString::Format(
23 "closure_PV_XY%dum_Z%dum_FST_R%.2fcm_PHI%0.3frad_NumFTT%d%s",
24 (
int)(primaryVertexSigmaXY*1e4),
25 (
int)(primaryVertexSigmaZ*1e4),
32 mOutput.ReplaceAll(
".",
"p");
34 cout <<
"Output file = " << mOutput.Data() << endl;
38 _chain =
"fzin sdt20211016 MakeEvent bigbig evout cmudst tree";
41 gSystem->Load(
"libStarRoot.so" );
42 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");
43 gROOT->LoadMacro(
"bfc.C");
44 bfc(-1, _chain, inFile);
46 gSystem->Load(
"libStFttSimMaker" );
47 gSystem->Load(
"libStFcsTrackMatchMaker" );
49 gSystem->Load(
"libMathMore.so" );
50 gSystem->Load(
"libStarGeneratorUtil" );
52 gSystem->Load(
"libXMLIO.so");
53 gSystem->Load(
"libgenfit2.so");
54 gSystem->Load(
"libKiTrack.so");
55 gSystem->Load(
"StarGeneratorUtil");
57 gSystem->Load(
"StEventUtilities");
58 gSystem->Load(
"StEpdUtil");
59 gSystem->Load(
"StFwdTrackMaker");
61 gSystem->Load(
"StFwdUtils.so");
66 fwdClosure->SetDebug(1);
67 fwdClosure->mMaxIt = 4;
69 fwdClosure->mBlowUp = 1e3;
70 fwdClosure->mPVal = 1e-3;
71 fwdClosure->mRelChi2 = 1e-3;
73 fwdClosure->mFttMode = StFwdClosureMaker::kStrip;
75 fwdClosure->mPrimaryVertexSigXY = primaryVertexSigmaXY;
76 fwdClosure->mPrimaryVertexSigZ = primaryVertexSigmaZ;
77 fwdClosure->mRasterR = fstRasterR;
78 fwdClosure->mRasterPhi = fstRasterPhi;
79 fwdClosure->mNumFttToUse = numFttToUse;
80 fwdClosure->mOutFile = mOutput;
81 fwdClosure->SetDebug(1);
83 chain->AddBefore(
"MuDst", fwdClosure);
101 for (
int i = 0; i < n; i++) {
102 cout <<
"--------->START EVENT: " << i << endl;
106 cout <<
"<---------- END EVENT" << endl;
virtual void Clear(Option_t *option="")
User defined functions.