18 #if !defined(__CINT__) || defined(__MAKECINT__) 21 #include <TDirectoryFile.h> 39 #include <TGraphErrors.h> 60 Double_t energyBins[] = { 8, 10, 12, 14, 16, 18, 20 };
61 for(
Int_t ie = 0; ie < nEBins+1; ie++) binE[ie] = energyBins[ie];
67 if ( debug ) printf(
"N prod %d\n",nProd);
72 prod [nproditer++] = Form(
"data/module/TCardChannel2/LHC11cd_EMC7");
73 prodLeg[nproditer-1] = Form(
"Data, pp @ 7 TeV, kEMC7, LHC11c+d");
75 prod [nproditer++] = Form(
"data/LHC16l_EG1");
76 prodLeg[nproditer-1] = Form(
"Data, pp @ 13 TeV, kEMCEGA-EG1, LHC16l");
78 TString titleData =
"pp_7_13_TeV";
79 TString daLeg =
"pp @ 7 & 13 TeV";
92 printf(
"iprod %d,\n \t file: %s,\n \t legend: %s\n",
93 iprod,prod[iprod].
Data(),prodLeg[iprod].
Data());
100 "SMM02NoCut",
"SMM02",
"SMNCell",
101 "SMM20LowM02NoCut",
"SMM20LowM02",
"SMM20HighM02NoCut",
"SMM20HighM02",
102 "SMEMaxEClusterRat",
"SMNCellModuleMax",
"SMNCellModuleOut",
103 "SMECellModuleMax",
"SMECellModuleOut",
"SMNCellModuleMaxOutRat",
"SMECellModuleMaxRat",
104 "SMECellModuleMaxOutRat",
"SMECellModuleMaxTot",
"SMECellModuleMaxTotRat",
"SMECellModuleMaxTotRatClus",
105 "SMNCellModuleOutModDiff",
"SMNCellModuleOutModSame",
"SMECellModuleOutModDiff",
"SMECellModuleOutModSame",
106 "TCardChannelNCellModMax",
"TCardChannelNCell",
"TCardChannelM02",
"TCardChannelM02NoCut" 112 Bool_t plotRatio = kFALSE;
113 Bool_t saveHisto = kFALSE;
119 for(
Int_t ihisto = 0; ihisto < 3; ihisto++)
121 if(histoName[ihisto].Contains(
"TCard")) lastP = 15;
122 printf(
"histogram %d %s\n",ihisto,histoName[ihisto].
Data());
126 histoName[ihisto], nProd, prod, prodLeg,
127 clusterization,tm,pid,
132 plotRatio, saveHisto,
Compare a cluster parameter (shower shape) between different productions.
Bool_t Data(TH1F *h, Double_t *rangefit, Bool_t writefit, Double_t &sgn, Double_t &errsgn, Double_t &bkg, Double_t &errbkg, Double_t &sgnf, Double_t &errsgnf, Double_t &sigmafit, Int_t &status)
void CompareTH3DataAndMCProd(TString &outputFileName, TString histoName="SMM02NoCut", const Int_t nProd=3, TString *prod=0x0, TString *prodLeg=0x0, TString clusterization="", TString tm="_TMDep", TString pid="_Neutral", TString titleMC="JJDecLow", TString mcLeg="MC: #gammaJ+JJ({p^{EMCal}_{T,#gamma}>3.5 GeV/#it{c})", TString titleData="LHC11cd_EMC7", TString daLeg="pp@7 TeV, LHC11c+d EMC7", Int_t firstP=0, Int_t lastP=9, TArrayD binE=0, Int_t firstMC=1, Bool_t plotRatio=kFALSE, Bool_t saveHisto=kFALSE, TString opt="", Bool_t debug=kFALSE)
void MakeNDataNMCComparisonPerSMClusterEbin(Bool_t debug=kFALSE)
TString prod[]
productions to be compared, directory name