00001 void makeStatusPlots(TString dir="/star/data07/EMC/staszak/2006pp/longpre/day079/",
00002
00003 TString filter=".cal.total.hist.root",
00004 const TString plotDir="/star/data07/EMC/staszak/2006pp/longpre/day079/out/") {
00005
00006
00007
00008 gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
00009 loadSharedLibraries();
00010 gSystem->Load("StMcEvent");
00011 gSystem->Load("StMcEventMaker");
00012 gSystem->Load("StAssociationMaker");
00013
00014 gSystem->Load("StDaqLib");
00015 gSystem->Load("StEmcRawMaker");
00016 gSystem->Load("StEmcADCtoEMaker");
00017 gSystem->Load("StPreEclMaker");
00018 gSystem->Load("StEpcMaker");
00019 assert(gSystem->Load("StEmcPoolCSMStatusUtils")==0);
00020 cout<<"All libs loaded"<<endl;
00021
00022
00023
00024
00025 CSMStatusUtils myUtils;
00026 myUtils.initializeHistFileFromDir(dir,filter);
00027 myUtils.setDetectorFlavor("bemc");
00028 myUtils.makeStatusPlots(plotDir);
00029
00030
00031 }