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")
12 Int_t nEvents = 3000000;
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");
27 gSystem->Load(
"StDetectorDbMaker");
28 gSystem->Load(
"StTpcDb");
29 gSystem->Load(
"StDaqLib");
30 gSystem->Load(
"StDbBroker");
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");
60 cout<<endl<<
"============ Data Base ========="<<endl;
61 dbMk =
new St_db_Maker(
"db",
"MySQL:StarDb",
"$STAR/StarDb",
"StarDb");
68 matchMaker->
setAlignFileName(
"/star/u/huck/TofAlignment19GeV/geomAlign1.txt");
74 btofNtuple->SetDebug(0);
79 Int_t iInit = chain->Init();
80 if (iInit) chain->Fatal(iInit,
"on init");
86 EventLoop:
if (i <= nEvents && istat != 2) {
88 cout << endl <<
"============================ Event " << i
89 <<
" start ============================" << endl;
92 istat = chain->
Make(i);
94 {cout <<
"Last event processed. Status = " << istat << endl;}
96 {cout <<
"Error event processed. Status = " << istat << endl;}
104 cout<<endl<<
"============================ Event "<<i<<
" finish ============================"<<endl;
void setAlignFileName(const Char_t *infile="")
input file for alignment parameters
virtual void Clear(Option_t *option="")
User defined functions.
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
void setCalculateAlign(const Bool_t calcAlign=kTRUE)
switch for alignment calculation
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.