StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
plotTiming.C
1 void plotTiming(TString directory = "crate1/") {
2 
3  // load shared libs
4  Bool_t useStarLibs = kTRUE;
5  if (useStarLibs) {
6  gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
7  loadSharedLibraries();
8  gSystem->Load("StMcEvent");
9  gSystem->Load("StMcEventMaker");
10  gSystem->Load("StAssociationMaker");
11  // load EMC libraries
12  gSystem->Load("StDaqLib");
13  gSystem->Load("StEmcRawMaker");
14  gSystem->Load("StEmcADCtoEMaker");
15  gSystem->Load("StPreEclMaker");
16  gSystem->Load("StEpcMaker");
17  }
18  assert(gSystem->Load("StEEmcPoolTIMING")==0);
19  cout<<"All libs loaded"<<endl;
20 
22  tsp.setAxisRange(0.,55.);
23  tsp.normalize();
24  tsp.legend();
25  tsp.scan(directory);
26 }
void legend()
Add a TLegend to the plots.
Int_t scan(TString directory)
void setAxisRange(Float_t min, Float_t max)