21 void RecoQA(
const char* inFile) {
22 gROOT->LoadMacro(
"bfcread_hist_prefixes_add_to_ps.C");
24 TString baseName = inFile;
25 if (baseName.EndsWith(
".daq"))
26 baseName.ReplaceAll(
".daq",
".hist.root");
27 else if (baseName.EndsWith(
".event.root"))
28 baseName.ReplaceAll(
".event.root",
".hist.root");
29 else if (baseName.EndsWith(
".MuDst.root"))
30 baseName.ReplaceAll(
".MuDst.root",
".hist.root");
32 TString histFile = baseName;
34 baseName.Remove(0,baseName.Last(
'/')+1);
36 TString outputName = baseName;
37 outputName.ReplaceAll(
".root",
".CC");
39 TString histList =
"StRoot/St_QA_Maker/QAhlist_Reco.h";
40 if (! gSystem->Which(
".",histList.Data()))
41 histList.Prepend(gSystem->ExpandPathName(
"$STAR/"));
43 bfcread_hist_prefixes_add_to_ps(histFile.Data(),
"EventQA",
44 "bfcTree",outputName.Data(),baseName.Data(),histList.Data());