8 Int_t iEvt=0,istat=0,nEvents=0;
9 void doMuDstEvents(
const Char_t *fileList =
"test.lis",
10 const Char_t *ntuplename =
"test.ntuple.root")
18 if (gClassTable->GetID(
"TTable") < 0) {
19 gSystem->Load(
"libStar");
20 gSystem->Load(
"libPhysics");
22 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
23 loadSharedLibraries();
24 gSystem->Load(
"StarMagField");
25 gSystem->Load(
"StMagF");
26 gSystem->Load(
"StTpcDb");
28 gSystem->Load(
"StDaqLib");
29 gSystem->Load(
"StDbBroker");
30 gSystem->Load(
"StDetectorDbMaker");
31 gSystem->Load(
"StDbUtilities");
32 gSystem->Load(
"St_db_Maker");
34 gSystem->Load(
"StEvent");
35 gSystem->Load(
"StEventMaker");
36 gSystem->Load(
"StarMagField");
38 gSystem->Load(
"libtpc_Tables");
39 gSystem->Load(
"libGeom");
40 gSystem->Load(
"St_g2t");
41 gSystem->Load(
"geometry");
42 gSystem->Load(
"St_geant_Maker");
44 gSystem->Load(
"StBTofUtil");
45 gSystem->Load(
"StBTofMatchMaker");
46 gSystem->Load(
"StBTofNtupleMaker");
61 cout<<endl<<
"============ Data Base ========="<<endl;
62 dbMk =
new St_db_Maker(
"db",
"MySQL:StarDb",
"$STAR/StarDb",
"StarDb");
82 btofNtuple->SetDebug(1);
88 Int_t iInit = chain->Init();
89 if (iInit) chain->Fatal(iInit,
"on init");
95 EventLoop:
if (i <= nEvents && istat != 2) {
97 cout << endl <<
"============================ Event " << i
98 <<
" start ============================" << endl;
101 istat = chain->
Make(i);
103 {cout <<
"Last event processed. Status = " << istat << endl;}
105 {cout <<
"Error event processed. Status = " << istat << endl;}
113 cout<<endl<<
"============================ Event "<<i<<
" finish ============================"<<endl;
virtual void Clear(Option_t *option="")
User defined functions.
void setUseEventVertex(const Bool_t val=kTRUE)
switch to turn on the use of event vertex for dca
void setMuDstIn(Bool_t muDstIn=kTRUE)
switch to read in StEvent/MuDst
void setMuDstIn(const Bool_t muDstIn=kTRUE)
switch to read in StEvent/MuDst
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.