StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
makeStatusPlots.C
1 void makeStatusPlots(TString dir="/star/data07/EMC/staszak/2006pp/longpre/day079/",
2  //TString dir="/star/institutions/ucla/staszak/bemc2006pp_pass2/longpost3/day154/special/",
3  TString filter=".cal.total.hist.root",
4  const TString plotDir="/star/data07/EMC/staszak/2006pp/longpre/day079/out/") {
5  //const TString plotDir="/star/institutions/ucla/staszak/bemc2006pp_pass2/longpost3/day154/special/out/") {
6  //
7  // load shared libs
8  gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
9  loadSharedLibraries();
10  gSystem->Load("StMcEvent");
11  gSystem->Load("StMcEventMaker");
12  gSystem->Load("StAssociationMaker");
13  // load EMC libraries
14  gSystem->Load("StDaqLib");
15  gSystem->Load("StEmcRawMaker");
16  gSystem->Load("StEmcADCtoEMaker");
17  gSystem->Load("StPreEclMaker");
18  gSystem->Load("StEpcMaker");
19  assert(gSystem->Load("StEmcPoolCSMStatusUtils")==0);
20  cout<<"All libs loaded"<<endl;
21 
22 
23  // all libs loaded
24 
25  CSMStatusUtils myUtils;
26  myUtils.initializeHistFileFromDir(dir,filter);
27  myUtils.setDetectorFlavor("bemc");
28  myUtils.makeStatusPlots(plotDir);
29  //myUtils.setDetectorFlavor("eemc");
30  //myUtils.makeStatusPlots(plotDir);
31 }
Int_t makeStatusPlots(TString plotDir)