Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing E/p calibration and monitoring in external classes #81

Open
wants to merge 117 commits into
base: newMaster
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
175d22d
fixed a bug in the dumper: for some electrons the parentSuperCluster …
lbrianza Jul 13, 2015
6501126
start new cfg file for 2015 monitoring
lbrianza Jul 14, 2015
8c2d0fc
change variable name for 2015 ntuples
lbrianza Jul 14, 2015
3249327
fixed some stuff for 2015
lbrianza Jul 14, 2015
e856d07
some changes to PlotDataMCs functions (style and plot print)
lbrianza Jul 14, 2015
e7ddc19
a lot of changes in order to fix some bugs when running macros
lbrianza Jul 14, 2015
8038ef4
added eleIDMap class, and use it inside the dumper in order to fill t…
lbrianza Jul 15, 2015
1d878f0
fix eleID for 50ns run2
lbrianza Jul 16, 2015
4ff535f
eleID map for electronCategory_class
lbrianza Jul 16, 2015
39ac237
new rereco tag: Run2015B_WF2_ICtransp2012_v5
lbrianza Jul 23, 2015
c8c103f
new rereco tag: Run2015B_WF2_ICtransp2012_v6
lbrianza Jul 23, 2015
120a447
new rereco tag: Run2015B_WF2_ICtransp2012_v7
lbrianza Jul 23, 2015
04dd92c
new rereco tag: Run2015B_WF2_ICtransp2012_v8
lbrianza Jul 23, 2015
6d43430
resolve merge conflicts
lbrianza Sep 25, 2015
4df0995
Merge remote branch 'upstream2/newMaster' into newMaster
lbrianza Oct 6, 2015
563470e
Merge remote branch 'upstream/newMaster' into newMaster
lbrianza Nov 10, 2015
5e37fea
bug in dumper compilation fixed. ID values for run2 corrected - sigma…
lbrianza Nov 10, 2015
b1d7ef1
move from sigmaIetaIeta to full5x5_sigmaIetaIeta
lbrianza Nov 10, 2015
88b98ff
fix merge conflict
lbrianza Nov 11, 2015
ccb5716
improve precision of effective sigma from 250 MeV to 10 MeV, and algo…
lbrianza Nov 12, 2015
c63ba51
Merge remote-tracking branch 'upstream/newMaster' into newMaster
lbrianza Nov 12, 2015
5712f76
GetByToken in ZNtupleDumper
Jan 26, 2016
f40e31e
Changes for miniAOD photon energy
Feb 9, 2016
2e4fa60
Merge remote-tracking branch 'upstream/newMaster' into newMaster
lbrianza Apr 1, 2016
e40c287
add calomet rtto dumper
lbrianza Jul 4, 2015
4a10b17
add sequences for electron stream
lbrianza Jul 4, 2015
c932e47
add W and Z skim for electron stream
lbrianza Jul 4, 2015
fbd9460
calomet and rho in input to dumper in case of electron stream
lbrianza Jul 4, 2015
80a323e
add sequences for electron stream
lbrianza Jul 4, 2015
824dbb8
adapt dumper for electron stream
lbrianza Jul 4, 2015
43121f7
add selection on calo met for wstream case
lbrianza Jul 5, 2015
d567883
add calomet in rechitsvalitdation
lbrianza Jul 5, 2015
fafacc4
change filter seq for Z stream
lbrianza Jul 5, 2015
89f8c92
changes values for electron ID run2; changed electron isolation, usin…
lbrianza Jul 5, 2015
527e90e
give in input to dumper hltRho (probably not useful)
lbrianza Jul 5, 2015
69641b9
new tight id for electron stream: similar to the standard one, but no…
lbrianza Jul 5, 2015
74262c2
add electron sequence for stream
lbrianza Jul 10, 2015
65fee72
bug in eleSelectionProducer
lbrianza Aug 11, 2015
a94f741
fix ZEE sequence for the stream
lbrianza Aug 11, 2015
7e48cdc
tightelectronstream ID
lbrianza Aug 11, 2015
3e48663
add pfIso selections for the stream
lbrianza Oct 3, 2015
66779db
add python anc crab cfg to run reco of electron stream
lbrianza Dec 28, 2015
04ea7d1
synchronize electron IDs
lbrianza Dec 30, 2015
4072804
crab cfg for running alcareco
lbrianza Dec 30, 2015
7106db0
move from lumibased to filebased
lbrianza Dec 31, 2015
688dd9f
add cfg file for crab for ntuples
lbrianza Jan 1, 2016
d1fc86e
update
lbrianza Jan 1, 2016
1ea5e2d
fix python for reco of stream
lbrianza Jan 6, 2016
f35c831
update
lbrianza Jan 13, 2016
a275ea2
EcalAlCaRecoProducers/test/run_reco_alcastreamElectron_crab.py
lbrianza Apr 1, 2016
8edcaf8
add nEle requirement for the electron stream
lbrianza Apr 1, 2016
a47b6cb
add noDrop sequence for electron stream
lbrianza Apr 11, 2016
492053b
fix conflicts in dumper
lbrianza Apr 11, 2016
9d88772
GetByToken in EleSelectionProducer
lbrianza Apr 11, 2016
5bf7366
add option to run the ntuple step for the stream
lbrianza Apr 12, 2016
71e60e7
restore right selections for W enu case
lbrianza Apr 12, 2016
ae261a9
delete old crab file
lbrianza Apr 12, 2016
cb5f5d9
add momentum correction option in ZFitter
lbrianza Nov 6, 2015
e2493df
update calibration utils
lbrianza Nov 6, 2015
69ac767
update calibration cfg files
lbrianza Nov 6, 2015
9752f0e
add some options for momentum correction
lbrianza Nov 7, 2015
f538ab2
script to do every calibration
lbrianza Nov 7, 2015
55514bb
added some options for momentum and energy corrections
lbrianza Nov 8, 2015
efe444b
update submission script
lbrianza Nov 12, 2015
bc93bb6
move to eventNumber when splitting stats
lbrianza Nov 12, 2015
28da986
fixed a bug in reweighing EoP
lbrianza Nov 15, 2015
42eb168
update compareICset
lbrianza Nov 15, 2015
e84aa83
update on FastCalibrator class, script to submit the jobs
lbrianza Dec 21, 2015
fe709f1
calibration momentum stuff
lbrianza Dec 21, 2015
5903c05
delete some old files
lbrianza Dec 21, 2015
7e47f6c
update on submission script
lbrianza Dec 21, 2015
9add909
add functions to plot IC a-posteriori corrections
lbrianza Dec 21, 2015
6c24a7d
gitignore
lbrianza Dec 21, 2015
1e11853
change names of the momentum correction graphs
lbrianza Dec 21, 2015
12b47f1
changes to allow running the code immediately
lbrianza Dec 22, 2015
93baf80
bug fixed
lbrianza Jan 5, 2016
4dd7730
bug fix
lbrianza Jan 8, 2016
7b52ff1
bug fix on application of momentum corrections
lbrianza Jan 11, 2016
747328a
add production of absolute IC
lbrianza Jan 12, 2016
3ac41f4
update on the compareICset code
lbrianza Jan 18, 2016
3b9ec64
switch to mustache SC for E/p calibration
lbrianza Mar 11, 2016
603ffad
changed ntuple location
lbrianza Mar 11, 2016
0937e80
update calibration script
lbrianza Mar 11, 2016
e5149c3
bug fix
lbrianza Mar 11, 2016
e4870fb
add some library for laser monitoring with E/p
lbrianza Jul 16, 2015
52ab05e
add cfg file for laser monitoring with EP
lbrianza Jul 16, 2015
1a1b0ba
ZFitter: include new option for E/p monitoring
lbrianza Jul 16, 2015
d6bcdfb
dumper: save seedLaserAlpha info in the extracalibtree
lbrianza Jul 16, 2015
a789af2
plot style
lbrianza Jul 17, 2015
565800a
minor fix for E/p calibration
lbrianza Jul 17, 2015
8d5961a
remove hard-coded PU corrections for 2012
lbrianza Jul 17, 2015
b410c8f
some modification DateToInt and histos
ffede Sep 25, 2015
4ce54ff
save fit plot
ffede Sep 29, 2015
2943b6b
ntuples
ffede Sep 29, 2015
c5f9d5f
some modifies
ffede Oct 1, 2015
9b24ba4
added PileUp option
ffede Oct 5, 2015
e6593ab
labels etc
ffede Oct 8, 2015
56a023b
new ntuples
ffede Oct 8, 2015
a9b4ad8
changes
ffede Oct 23, 2015
38eb638
new ntuples
ffede Oct 23, 2015
dffab2d
add script for the laser monitoring
lbrianza Dec 21, 2015
9dc7a14
update laser monitoring
lbrianza Apr 12, 2016
3285606
update script for laser monitoring
lbrianza Apr 12, 2016
cd6d812
2016 data
lbrianza Jun 7, 2016
56c8751
update monitoring script
lbrianza Jun 15, 2016
a2118e2
working version of ZFitter for 2016
lbrianza Aug 15, 2016
9317f10
update for running on 2016 data
lbrianza Sep 1, 2016
2b02219
pile-up file
lbrianza Sep 1, 2016
a7d5657
update buildfile
lbrianza Sep 1, 2016
ed6d927
run on full 2016 dataset
lbrianza Oct 1, 2016
5d060b1
updates in the scripts
mrappo Dec 6, 2016
7a0284d
reduce EoP part in ZFitter code
mrappo Dec 8, 2016
d94645d
put laser monitoring in an external class
mrappo Dec 8, 2016
95eae80
fix laser monitoring bug
mrappo Dec 9, 2016
9adc77d
update DrawingUtils
mrappo Dec 12, 2016
c5096fe
update DrawingUtils
mrappo Dec 13, 2016
5f0ed36
fix bugs in compilation in 80x
mrappo Dec 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ prod_alcarereco
*.png
*.eps
*.pdf

LSF*
ZFitter/output*
1 change: 1 addition & 0 deletions EOverPCalibration/bin/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<bin file="DrawPrecisionPlotsEB.cpp" name="DrawPrecisionPlotsEB"> </bin>
<bin file="DrawPrecisionPlotsEE.cpp" name="DrawPrecisionPlotsEE"> </bin>
<bin file="CompareICSet.cpp" name="CompareICSet"> </bin>
<bin file="CompareICSet_ratio.cpp" name="CompareICSet_ratio"> </bin>
<bin file="CalibrationPlots.cpp" name="CalibrationPlots"> </bin>
<bin file="CalibrationMomentum.cpp" name="CalibrationMomentum"> </bin>
<bin file="CompareSCalibMCTruth_EB.cpp" name="CompareSCalibMCTruth_EB"> </bin>
Expand Down
292 changes: 131 additions & 161 deletions EOverPCalibration/bin/CalibrationMomentum.cpp

Large diffs are not rendered by default.

85 changes: 79 additions & 6 deletions EOverPCalibration/bin/CalibrationPlots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ int main(int argc, char **argv)
}

std::string configFileName = argv[1];
#ifdef CMSSW_7_2_X
std::shared_ptr<edm::ParameterSet> parameterSet = edm::readConfig(configFileName);
#else
boost::shared_ptr<edm::ParameterSet> parameterSet = edm::readConfig(configFileName);
#endif
edm::ParameterSet Options = parameterSet -> getParameter<edm::ParameterSet>("Options");


Expand Down Expand Up @@ -113,6 +109,17 @@ int main(int argc, char **argv)
else{ std::cout<<" Exit from code, no odd input file"<<std::endl; std::exit(EXIT_FAILURE); }
}


TFile* f4 = new TFile("momentumCalibration2015_EE_ptK.root");
std::vector<std::vector<TGraphErrors*> > corrMomentum(1);

for (int k=0; k<1; k++) {
for(int i = 0; i <2; ++i){
std::cout<<k<<" "<<i<<std::endl;
TString Name = Form("g_pData_EE_%d_%d",k,i);
(corrMomentum.at(k)).push_back( (TGraphErrors*)(f4->Get(Name)) );
}
}


//------------
Expand Down Expand Up @@ -154,6 +161,8 @@ int main(int argc, char **argv)

//-----------------------
// map for dead TT centre

std::cout<<"debug"<<std::endl;

std::map<int, std::vector< std::pair<int,int> > > TT_centre;
if( isEB == true )
Expand Down Expand Up @@ -181,6 +190,7 @@ int main(int argc, char **argv)
}


std::cout<<"debug"<<std::endl;

//---------------
// define outfile
Expand All @@ -193,6 +203,7 @@ int main(int argc, char **argv)



std::cout<<"debug"<<std::endl;


//--------------------------------------------------------------
Expand All @@ -211,7 +222,10 @@ int main(int argc, char **argv)
inFileOdd = new TFile(inFileNameOdd.c_str(),"READ");
}

std::cout<<"debug"<<std::endl;

std::map<int, TH2F*> h2_corrP;
std::map<int, TH2F*> h2_IC_corr;

// get the IC maps as they come from the algorithm
std::map<int, TH2F*> h2_IC_raw;
Expand Down Expand Up @@ -267,29 +281,50 @@ int main(int argc, char **argv)
}
else
{
std::cout<<"debug"<<std::endl;
h2_IC_raw[-1] = (TH2F*)( inFile->Get("h_scale_EEM") );
h2_IC_raw[1] = (TH2F*)( inFile->Get("h_scale_EEP") );
std::cout<<"debug"<<std::endl;

h2_IC_raw_phiNorm[-1] = (TH2F*)( h2_IC_raw[-1]->Clone("h2_IC_raw_phiNorm_EEM") );
h2_IC_raw_phiNorm[1] = (TH2F*)( h2_IC_raw[1] ->Clone("h2_IC_raw_phiNorm_EEP") );
h2_IC_raw_phiNorm[-1] -> Reset("ICEMS");
h2_IC_raw_phiNorm[1] -> Reset("ICEMS");
h2_IC_raw_phiNorm[-1] -> ResetStats();
h2_IC_raw_phiNorm[1] -> ResetStats();

h2_corrP[-1] = (TH2F*)( h2_IC_raw[-1]->Clone("h2_corrP_EEM") );
h2_corrP[1] = (TH2F*)( h2_IC_raw[1] ->Clone("h2_corrP_EEP") );
h2_corrP[-1] -> Reset("ICEMS");
h2_corrP[1] -> Reset("ICEMS");
h2_corrP[-1] -> ResetStats();
h2_corrP[1] -> ResetStats();

h2_IC_corr[-1] = (TH2F*)( h2_IC_raw[-1]->Clone("h2_IC_corr_EEM") );
h2_IC_corr[1] = (TH2F*)( h2_IC_raw[1] ->Clone("h2_IC_corr_EEP") );
h2_IC_corr[-1] -> Reset("ICEMS");
h2_IC_corr[1] -> Reset("ICEMS");
h2_IC_corr[-1] -> ResetStats();
h2_IC_corr[1] -> ResetStats();


std::cout<<"debug"<<std::endl;
if( evalStat )
{
std::cout<<"debug"<<std::endl;
h2_ICEven_raw[-1] = (TH2F*)( inFileEven->Get("h_scale_EEM") );
h2_ICEven_raw[1] = (TH2F*)( inFileEven->Get("h_scale_EEP") );
h2_ICOdd_raw[-1 ] = (TH2F*)( inFileOdd ->Get("h_scale_EEM") );
h2_ICOdd_raw[1] = (TH2F*)( inFileOdd ->Get("h_scale_EEP") );
std::cout<<"debug"<<std::endl;

h2_IC_raw_phiNorm_even[-1] = (TH2F*)( h2_ICEven_raw[-1]->Clone("h2_IC_raw_phiNorm_even_EEM") );
h2_IC_raw_phiNorm_even[1] = (TH2F*)( h2_ICEven_raw[1] ->Clone("h2_IC_raw_phiNorm_even_EEP") );
h2_IC_raw_phiNorm_even[-1] -> Reset("ICEMS");
h2_IC_raw_phiNorm_even[1] -> Reset("ICEMS");
h2_IC_raw_phiNorm_even[-1] -> ResetStats();
h2_IC_raw_phiNorm_even[1] -> ResetStats();
std::cout<<"debug"<<std::endl;

h2_IC_raw_phiNorm_odd[-1] = (TH2F*)( h2_ICOdd_raw[-1]->Clone("h2_IC_raw_phiNorm_odd_EEM") );
h2_IC_raw_phiNorm_odd[1] = (TH2F*)( h2_ICOdd_raw[1] ->Clone("h2_IC_raw_phiNorm_odd_EEP") );
Expand All @@ -301,6 +336,7 @@ int main(int argc, char **argv)
}


std::cout<<"debug"<<std::endl;

// normalize each ring to the average IC of that eta ring
if( isEB == true )
Expand All @@ -315,6 +351,8 @@ int main(int argc, char **argv)
else
{
NormalizeIC_EE(h2_IC_raw[-1],h2_IC_raw[1],h2_IC_raw_phiNorm[-1],h2_IC_raw_phiNorm[1],TT_centre[-1],TT_centre[1],eRings);
// DrawCorr_EE(h2_IC_raw[-1],h2_IC_raw[1],h2_corrP[-1],h2_corrP[1],TT_centre[-1],TT_centre[1],corrMomentum,eRings,true,1);
// DrawICCorr_EE(h2_IC_raw[-1],h2_IC_raw[1],h2_IC_corr[-1],h2_IC_corr[1],TT_centre[-1],TT_centre[1],corrMomentum,eRings,true);
if( evalStat )
{
NormalizeIC_EE(h2_ICEven_raw[-1],h2_ICEven_raw[1],h2_IC_raw_phiNorm_even[-1],h2_IC_raw_phiNorm_even[1],TT_centre[-1],TT_centre[1],eRings);
Expand Down Expand Up @@ -580,7 +618,7 @@ int main(int argc, char **argv)
}
}

NormalizeIC_EB(h2_IC_crackCorr[0],h2_IC_crackCorr_phiNorm[0],TT_centre[0]);
NormalizeIC_EB(h2_IC_crackCorr[0],h2_IC_crackCorr_phiNorm[0],TT_centre[0],false);

outFile -> mkdir("crackCorr");
outFile -> cd("crackCorr");
Expand Down Expand Up @@ -688,47 +726,82 @@ int main(int argc, char **argv)
{
DrawICMap(h2_IC_raw_phiNorm[0], outputFolder+"/EB_h2_IC_raw_phiNorm", "png",isEB);
DrawICMap(h2_IC_crackCorr_phiNorm[0],outputFolder+"/EB_h2_IC_crackCorr_phiNorm","png",isEB);
DrawICMap(h2_IC_raw_phiNorm[0], outputFolder+"/EB_h2_IC_raw_phiNorm", "pdf",isEB);
DrawICMap(h2_IC_crackCorr_phiNorm[0],outputFolder+"/EB_h2_IC_crackCorr_phiNorm","pdf",isEB);

DrawSpreadHisto(h_spread[0], outputFolder+"/EB_h_spread", "f_EB_spread_vsEta", "png",isEB);
DrawSpreadHisto(h_spread_crackCorr,outputFolder+"/EB_h_spread_crackCorr","f_EB_spread_vsEta_crackCorr","png",isEB);
DrawSpreadHisto(h_spread[0], outputFolder+"/EB_h_spread", "f_EB_spread_vsEta", "pdf",isEB);
DrawSpreadHisto(h_spread_crackCorr,outputFolder+"/EB_h_spread_crackCorr","f_EB_spread_vsEta_crackCorr","pdf",isEB);

DrawSpreadGraph(g_spread_vsEta[0], outputFolder+"/EB_g_spread_vsEta", "png",isEB,g_stat_vsEta[0]);
DrawSpreadGraph(g_spread_vsEta_crackCorr,outputFolder+"/EB_g_spread_vsEta_crackCorr","png",isEB,g_stat_vsEta_crackCorr);
DrawSpreadGraph(g_spread_vsEta[0], outputFolder+"/EB_g_spread_vsEta", "pdf",isEB,g_stat_vsEta[0]);
DrawSpreadGraph(g_spread_vsEta_crackCorr,outputFolder+"/EB_g_spread_vsEta_crackCorr","pdf",isEB,g_stat_vsEta_crackCorr);

DrawResidualGraph(g_residual_vsEta[0], outputFolder+"/EB_g_residual_vsEta", "png",isEB);
DrawResidualGraph(g_residual_vsEta_crackCorr,outputFolder+"/EB_g_residual_vsEta_crackCorr","png",isEB);
DrawResidualGraph(g_residual_vsEta[0], outputFolder+"/EB_g_residual_vsEta", "pdf",isEB);
DrawResidualGraph(g_residual_vsEta_crackCorr,outputFolder+"/EB_g_residual_vsEta_crackCorr","pdf",isEB);

DrawPhiAvgICSpread(h_phiAvgICSpread[0], outputFolder+"/EB_h_phiAvgICSpread", "png",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread_crackCorr,outputFolder+"/EB_h_phiAvgICSpread_crackCorr","png",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread[0], outputFolder+"/EB_h_phiAvgICSpread", "pdf",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread_crackCorr,outputFolder+"/EB_h_phiAvgICSpread_crackCorr","pdf",isEB);

DrawAvgICVsPhiGraph(g_avgIC_vsPhi[0], outputFolder+"/EB_g_avgIC_vsPhi", "png",kRed+2, isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi_crackCorr,outputFolder+"/EB_g_avgIC_vsPhi_crackCorr","png",kGreen+2,isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi[0], outputFolder+"/EB_g_avgIC_vsPhi", "pdf",kRed+2, isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi_crackCorr,outputFolder+"/EB_g_avgIC_vsPhi_crackCorr","pdf",kGreen+2,isEB);

DrawAvgICVsPhiFoldGraph(g_avgIC_vsPhiFold_EBM,g_avgIC_vsPhiFold_crackCorr_EBM,outputFolder+"/EBM_g_avgIC_vsPhiFold","png",isEB);
DrawAvgICVsPhiFoldGraph(g_avgIC_vsPhiFold_EBP,g_avgIC_vsPhiFold_crackCorr_EBP,outputFolder+"/EBP_g_avgIC_vsPhiFold","png",isEB);
DrawAvgICVsPhiFoldGraph(g_avgIC_vsPhiFold_EBM,g_avgIC_vsPhiFold_crackCorr_EBM,outputFolder+"/EBM_g_avgIC_vsPhiFold","pdf",isEB);
DrawAvgICVsPhiFoldGraph(g_avgIC_vsPhiFold_EBP,g_avgIC_vsPhiFold_crackCorr_EBP,outputFolder+"/EBP_g_avgIC_vsPhiFold","pdf",isEB);
}
else
{
DrawICMap(h2_IC_raw_phiNorm[-1],outputFolder+"/EEM_h2_IC_raw_phiNorm","png",isEB);
DrawICMap(h2_IC_raw_phiNorm[+1],outputFolder+"/EEP_h2_IC_raw_phiNorm","png",isEB);
DrawICMap(h2_IC_raw_phiNorm[-1],outputFolder+"/EEM_h2_IC_raw_phiNorm","pdf",isEB);
DrawICMap(h2_IC_raw_phiNorm[+1],outputFolder+"/EEP_h2_IC_raw_phiNorm","pdf",isEB);

// DrawICMap(h2_corrP[-1],outputFolder+"/EEM_h2_corrP","png",isEB);
// DrawICMap(h2_corrP[+1],outputFolder+"/EEP_h2_corrP","png",isEB);

// DrawICMap(h2_IC_corr[-1],outputFolder+"/EEM_h2_IC_corr","png",isEB);
//DrawICMap(h2_IC_corr[+1],outputFolder+"/EEP_h2_IC_corr","png",isEB);

DrawSpreadHisto(h_spread[-1],outputFolder+"/EEM_h_spread","f_EE_spread_vsEta_EEM","png",isEB);
DrawSpreadHisto(h_spread[0], outputFolder+"/EE_h_spread","f_EE_spread_vsEta_EE", "png",isEB);
DrawSpreadHisto(h_spread[+1],outputFolder+"/EEP_h_spread","f_EE_spread_vsEta_EEP","png",isEB);
DrawSpreadHisto(h_spread[-1],outputFolder+"/EEM_h_spread","f_EE_spread_vsEta_EEM","pdf",isEB);
DrawSpreadHisto(h_spread[0], outputFolder+"/EE_h_spread","f_EE_spread_vsEta_EE", "pdf",isEB);
DrawSpreadHisto(h_spread[+1],outputFolder+"/EEP_h_spread","f_EE_spread_vsEta_EEP","pdf",isEB);

DrawSpreadGraph(g_spread_vsEta[-1],outputFolder+"/EEM_g_spread_vsEta","png",isEB,g_stat_vsEta[-1]);
DrawSpreadGraph(g_spread_vsEta[0], outputFolder+"/EE_g_spread_vsEta","png",isEB,g_stat_vsEta[0]);
DrawSpreadGraph(g_spread_vsEta[+1],outputFolder+"/EEP_g_spread_vsEta","png",isEB,g_stat_vsEta[+1]);
DrawSpreadGraph(g_spread_vsEta[-1],outputFolder+"/EEM_g_spread_vsEta","pdf",isEB,g_stat_vsEta[-1]);
DrawSpreadGraph(g_spread_vsEta[0], outputFolder+"/EE_g_spread_vsEta","pdf",isEB,g_stat_vsEta[0]);
DrawSpreadGraph(g_spread_vsEta[+1],outputFolder+"/EEP_g_spread_vsEta","pdf",isEB,g_stat_vsEta[+1]);

DrawResidualGraph(g_residual_vsEta[-1],outputFolder+"/EEM_g_residual_vsEta","png",isEB);
DrawResidualGraph(g_residual_vsEta[0], outputFolder+"/EE_g_residual_vsEta","png",isEB);
DrawResidualGraph(g_residual_vsEta[+1],outputFolder+"/EEP_g_residual_vsEta","png",isEB);
DrawResidualGraph(g_residual_vsEta[-1],outputFolder+"/EEM_g_residual_vsEta","pdf",isEB);
DrawResidualGraph(g_residual_vsEta[0], outputFolder+"/EE_g_residual_vsEta","pdf",isEB);
DrawResidualGraph(g_residual_vsEta[+1],outputFolder+"/EEP_g_residual_vsEta","pdf",isEB);

DrawPhiAvgICSpread(h_phiAvgICSpread[-1],outputFolder+"/EEM_h_phiAvgICSpread","png",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread[+1],outputFolder+"/EEP_h_phiAvgICSpread","png",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread[-1],outputFolder+"/EEM_h_phiAvgICSpread","pdf",isEB);
DrawPhiAvgICSpread(h_phiAvgICSpread[+1],outputFolder+"/EEP_h_phiAvgICSpread","pdf",isEB);

DrawAvgICVsPhiGraph(g_avgIC_vsPhi[-1],outputFolder+"/EEM_g_avgIC_vsPhi","png",kRed+2,isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi[+1],outputFolder+"/EEP_g_avgIC_vsPhi","png",kRed+2,isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi[-1],outputFolder+"/EEM_g_avgIC_vsPhi","pdf",kRed+2,isEB);
DrawAvgICVsPhiGraph(g_avgIC_vsPhi[+1],outputFolder+"/EEP_g_avgIC_vsPhi","pdf",kRed+2,isEB);
}

outFile -> Close();
Expand Down Expand Up @@ -835,7 +908,7 @@ int main(int argc, char **argv)
<< std::fixed << std::setprecision(0) << std::setw(10) << h2_final[iz]->GetYaxis()->GetBinLowEdge(iy)
<< std::fixed << std::setprecision(0) << std::setw(10) << iz
<< std::fixed << std::setprecision(6) << std::setw(15) << IC
<< std::fixed << std::setprecision(6) << std::setw(15) << sqrt( statPrec*statPrec + sysPrec*sysPrec )
<< std::fixed << std::setprecision(6) << std::setw(15) << sqrt( statPrec*statPrec )//+ sysPrec*sysPrec )
<< std::endl;
}
else
Expand Down
Loading