StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
bfcFms.C
1 //
2 // Pibero Djawotho <pibero@tamu.edu>
3 // Texas A&M
4 // 18 July 2012
5 //
6 // Run bfc.C with FMS fast simulator in the chain to import FPD/FMS hits
7 // from GEANT to StEvent to MuDst.
8 //
9 // Note, as of July 18, 2012, this way of running the FMS simulator is no
10 // longer necessary. Instead, it is recommended to use the "fmsSim" chain option
11 // directly with bfc.C:
12 //
13 // root4star -q -b bfc.C'(1000,"DbV20110923 tpcRS y2011 fmsDb fmsSim MakeEvent ITTF NoSsdIt NoSvtIt Idst BAna l0 Tree logger Sti VFPPVnoCTB beamLine tpcDB TpcHitMover TpxClu bbcSim btofsim tags emcY2 EEfs evout -dstout IdTruth geantout big fzin MiniMcMk clearmem sdt20110417.193427")'
14 //
15 
16 class StBFChain;
17 StBFChain* chain = 0;
18 
19 void bfcFms(int nevents = 1000,
20  const char* fzfile = "test.fzd",
21  const char* chainopt = "DbV20110923 tpcRS y2011 fmsDb MakeEvent ITTF NoSsdIt NoSvtIt Idst BAna l0 Tree logger Sti VFPPVnoCTB beamLine tpcDB TpcHitMover TpxClu bbcSim btofsim tags emcY2 EEfs evout -dstout IdTruth geantout big fzin MiniMcMk clearmem sdt20110417.193427")
22 {
23  gROOT->LoadMacro("bfc.C");
24  bfc(-1,chainopt,fzfile);
25  gSystem->Load("StFmsSimulatorMaker");
27  chain->AddAfter("fmsDb",fmsSim);
28  chain->Init();
29  chain->EventLoop(nevents);
30 }