16 hMass =
new TH1F(
"hMass",
"Inv mass",120,0.,1.2);
26 chainFiles(
"/auto/pdsfdv34/starspin/jwebb/2006/tests/");
27 nevents = reader->getNumberOfEvents();
40 realEvent = reader->event();
43 for ( Int_t i=0;i<
nPairs;i++ )
45 Float_t mass = reader->event()->mMass[i];
51 std::cout <<
"[" <<
event <<
"/" << nevents <<
"]"
52 <<
" npair=" << realEvent->
nPairs
53 <<
" mass=" << realEvent->mMass[i]
54 <<
" pt=" << realEvent->mPT[i]
55 <<
" bx=" << realEvent->bxStar
56 <<
" zgg=" << realEvent->mZgg[i]
57 <<
" spin4=" << realEvent->mSpin4
58 <<
" dsmvtx=" << realEvent->mBbcTrigger.onlineTimeDifference()
74 void chainFiles(
const Char_t *path)
77 TSystemDirectory dir(
"dir",path);
78 TIter next( dir.GetListOfFiles() );
80 while ( file = (TObject*)next() )
82 TString name=file->GetName();
83 if ( name.Contains(
"root") ) reader->chainFile(name);
94 gROOT -> LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
95 loadSharedLibraries();
97 gSystem->Load(
"StDbLib");
98 gSystem->Load(
"StDbBroker");
99 gSystem->Load(
"St_db_Maker");
100 gSystem->Load(
"StEEmcUtil");
101 gSystem->Load(
"StEEmcDbMaker");
102 gSystem->Load(
"StEEmcSimulatorMaker");
104 gSystem->Load(
"StEEmcA2EMaker");
105 gSystem->Load(
"StEEmcClusterMaker");
106 gSystem->Load(
"StEEmcPointMaker");
107 gSystem->Load(
"StEEmcPi0Mixer");
108 gSystem->Load(
"StSpinDbMaker");
Int_t nPairs
From EEMC point-maker.
virtual void ls(Option_t *option="") const