5 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
8 gSystem->Load(
"libmysqlclient");
9 gSystem->Load(
"StEvent");
10 gSystem->Load(
"StDbLib");
11 gSystem->Load(
"StDbBroker");
12 gSystem->Load(
"St_db_Maker");
14 gSystem->Load(
"StEEmcUtil");
15 gSystem->Load(
"StEEmcDbMaker");
16 gSystem->Load(
"StEEmcPoolTTM");
21 readndst(
const char *fName=
"/star/current/ndst/run*.ndst.root")
24 TChain *chain =
new TChain(
"ttm");
26 Double_t nev = chain->GetEntries();
30 TList *matchlist =
new TList;
35 chain->SetBranchAddress(
"matches",&matchlist);
36 chain->SetBranchAddress(
"info" ,&evinfo);
37 chain->SetBranchAddress(
"summary",&evsumm);
38 chain->SetBranchAddress(
"trigger",&evtrig);
40 for(
int i=0; i<nev; i++) {
43 if(matchlist->IsEmpty())
continue;
45 cerr <<
"<Event id=\"" << evinfo->id() <<
"\" run=\" " << evinfo->runId() <<
"\" >\n";
46 cerr <<
"<MagneticField b=\"" << evsumm->magneticField() <<
"\" >\n";
47 TIter nextMatch(matchlist);
50 cerr <<
"</Event>\n" << endl;
EEmcTTMatch class contains results of TPC track to EEMC tower matching.
ostream & Out(ostream &out) const
Collection of trigger ids as stored in MuDst.