8 Int_t iEvt=0,istat=0,nEvents=0;
9 void doMuDstEvents(
const Char_t *fileList =
"StRoot/StTofPool/macros/test.lis",
10 const Char_t *histname =
"test.hist.root",
11 const Char_t *ntuplename =
"test.ntuple.root");
13 void doMuDstEvents(
const Char_t *fileList,
const Char_t *histname,
const Char_t *ntuplename)
21 if (gClassTable->GetID(
"TTable") < 0) {
22 gSystem->Load(
"libStar");
23 gSystem->Load(
"libPhysics");
25 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
26 loadSharedLibraries();
27 gSystem->Load(
"StarMagField");
28 gSystem->Load(
"StMagF");
29 gSystem->Load(
"StTpcDb");
31 gSystem->Load(
"StDaqLib");
32 gSystem->Load(
"StDbBroker");
33 gSystem->Load(
"StDetectorDbMaker");
34 gSystem->Load(
"StDbUtilities");
35 gSystem->Load(
"St_db_Maker");
37 gSystem->Load(
"StEvent");
38 gSystem->Load(
"StEventMaker");
39 gSystem->Load(
"StarMagField");
40 gSystem->Load(
"StTofUtil");
41 gSystem->Load(
"StTofMaker");
43 gSystem->Load(
"libtpc_Tables");
44 gSystem->Load(
"libGeom");
45 gSystem->Load(
"St_g2t");
46 gSystem->Load(
"geometry");
47 gSystem->Load(
"St_geant_Maker");
49 gSystem->Load(
"StTofrMatchMaker");
53 gSystem->Load(
"StTofrNtupleMaker");
66 int NwGeant=5000000, IwType=0, NwPaw=0;
75 cout<<endl<<
"============ Data Base ========="<<endl;
76 dbMk =
new St_db_Maker(
"db",
"MySQL:StarDb",
"$STAR/StarDb",
"StarDb");
79 matchMaker->SetDebug(1);
80 matchMaker->SetMode(1);
81 matchMaker->setSaveGeometry(kTRUE);
82 matchMaker->setCreateHistoFlag(kTRUE);
83 matchMaker->setCreateTreeFlag(kFALSE);
84 matchMaker->setHistoFileName(histname);
91 tofrNtuple->SetDebug(0);
92 tofrNtuple->setInitGeomFromOther(kTRUE);
96 Int_t iInit = chain->Init();
97 if (iInit) chain->Fatal(iInit,
"on init");
102 int istat = 0, i = 1;
103 EventLoop:
if (i <= nEvents && istat != 2) {
105 cout << endl <<
"============================ Event " << i
106 <<
" start ============================" << endl;
109 istat = chain->
Make(i);
111 {cout <<
"Last event processed. Status = " << istat << endl;}
113 {cout <<
"Error event processed. Status = " << istat << endl;}
121 cout<<endl<<
"============================ Event "<<i<<
" finish ============================"<<endl;
virtual void Clear(Option_t *option="")
User defined functions.
virtual void SetActive(Bool_t k=kTRUE)
Setters for flags and switches.
virtual void LoadGeometry(const Char_t *option="detp geometry field_only")
Specifies GEANT3 geometry command.