15 msInnerMatchChi2 =
Book1D(
"msInnerMatchChi2",
"inner match #chi^{2};inner match #chi^{2};;Entries",100,0.,100.);
16 msOuterMatchChi2 =
Book1D(
"msOuterMatchChi2",
"outer match #chi^{2};outer match #chi^{2};;Entries",100,0.,100.);
18 ELoss =
Book1D(
"ELoss",
"ELoss;ELoss [GeV];Entries",50,0,10);
19 ELossDiffTruth =
Book1D(
"ELossDiffTruth",
"Difference ELoss to truth ELoss);#Delta(fitted - truth) [GeV];Entries",100,-10.,10.);
20 ELossDiffTruthEta0_1p35 =
Book1D(
"ELossDiffTruthEta0_1p35",
"Difference ELoss to truth ELoss for 0<|#eta|<1.35;#Delta(fitted - truth) [GeV];Entries",100,-10.,10.);
21 ELossDiffTruthEta1p35_1p55 =
Book1D(
"ELossDiffTruthEta1p35_1p55",
"Difference ELoss to truth ELoss for 1.35<|#eta|<1.55;#Delta(fitted - truth) [GeV];Entries",100,-10.,10.);
22 ELossDiffTruthEta1p55_end =
Book1D(
"ELossDiffTruthEta1p55_end",
"Difference ELoss to truth ELoss for 1.55<|#eta|;#Delta(fitted - truth) [GeV];Entries",100,-10.,10.);
23 ELossSigma =
Book1D(
"ELossSigma",
"ELossSigma;ELossSgima [GeV];Entries",50,0,5);
25 paramELoss =
Book1D(
"paramELoss",
"paramELoss;paramELoss [GeV];Entries",50,0,10);
26 paramELossDiff =
Book1D(
"paramELossDiff",
"Difference paramELoss to fitted ELoss;#Delta(param-fitted) [GeV];Entries",100,-3.,1.);
27 paramELossDiffTruth =
Book1D(
"paramELossDiffTruth",
"Difference paramELoss to truth ELoss;#Delta(param-truth) [GeV];Entries",100,-10.,10.);
28 paramELossDiffTruthEta0_1p35 =
Book1D(
"paramELossDiffTruthEta0_1p35",
"Difference paramELoss to truth ELoss for 0<|#eta|<1.35;#Delta(param-truth) [GeV];Entries",100,-10.,10.);
29 paramELossDiffTruthEta1p35_1p55 =
Book1D(
"paramELossDiffTruthEta1p35_1p55",
"Difference paramELoss to truth ELoss for 1.35<|#eta|<1.55;#Delta(param-truth) [GeV];Entries",100,-10.,10.);
30 paramELossDiffTruthEta1p55_end =
Book1D(
"paramELossDiffTruthhEta1p55_end",
"Difference paramELoss to truth ELoss for 1.55<|#eta|;#Delta(param-truth) [GeV];Entries",100,-10.,10.);
32 measELoss =
Book1D(
"measELoss",
"measELoss;measELoss [GeV];Entries",50,0,10);
33 measELossDiff =
Book1D(
"measELossDiff",
"Difference measELoss to fitted ELoss);#Delta(meas- fitted) [GeV];Entries",100,-3.,1.);
34 measELossDiffTruth =
Book1D(
"measELossDiffTruth",
"Difference measELoss to truth ELoss);#Delta(meas- truth) [GeV];Entries",100,-10.,10.);
35 measELossDiffTruthEta0_1p35 =
Book1D(
"measELossDiffTruthEta0_1p35",
"Difference measELoss to truth ELoss for 0<|#eta|<1.35;#Delta(meas- truth) [GeV];Entries",100,-10.,10.);
36 measELossDiffTruthEta1p35_1p55 =
Book1D(
"measELossDiffTruthEta1p35_1p55",
"Difference measELoss to truth ELoss for 1.35<|#eta|<1.55;#Delta(meas- truth) [GeV];Entries",100,-10.,10.);
37 measELossDiffTruthEta1p55_end =
Book1D(
"measELossDiffTruthEta1p55_end",
"Difference measELoss to truth ELoss for 1.55<|#eta|;#Delta(meas- truth) [GeV];Entries",100,-10.,10.);
62 if (mu.author()==xAOD::Muon::CaloTag || mu.author()==xAOD::Muon::CaloLikelihood || mu.author()==xAOD::Muon::ExtrapolateMuonToIP)
return;
66 if (mu.parameter(fpar, paramDef))
67 hist->Fill(scale*fpar,weight);
72 if (mu.author()==xAOD::Muon::CaloTag || mu.author()==xAOD::Muon::CaloLikelihood || mu.author()==xAOD::Muon::ExtrapolateMuonToIP)
return;
76 if (mu.parameter(fpar, paramDef))
77 hist->Fill(scale*fpar,weight);
99 muonEnt_pyAcc(truthprt),
100 muonEnt_pzAcc(truthprt)};
101 float dpTruth=vecCaloEntry.mag()-vecMuonExit.mag();
102 hist_DiffTruth->Fill(scale*(fpar-dpTruth),weight);
104 if (std::abs(mu.eta())<1.35) hist_DiffTruthEta0_1p35->Fill(scale*(fpar-dpTruth),weight);
106 if (std::abs(mu.eta())<1.55) hist_DiffTruthEta1p35_1p55->Fill(scale*(fpar-dpTruth),weight);
107 else hist_DiffTruthEta1p55_end->Fill(scale*(fpar-dpTruth),weight);
113 if (mu.author()==xAOD::Muon::CaloTag || mu.author()==xAOD::Muon::CaloLikelihood || mu.author()==xAOD::Muon::ExtrapolateMuonToIP)
return;
116 hist->Fill(mu.energyLossType(), weight);
121 if (mu.parameter(
used, xAOD::Muon::EnergyLoss) && mu.parameter(param, xAOD::Muon::ParamEnergyLoss) && mu.parameter(meas, xAOD::Muon::MeasEnergyLoss ) ){
123 if (mu.energyLossType()==xAOD::Muon::Parametrized){
126 if (mu.energyLossType()==xAOD::Muon::Tail){
134 if (mu.author()==xAOD::Muon::CaloTag || mu.author()==xAOD::Muon::CaloLikelihood || mu.author()==xAOD::Muon::ExtrapolateMuonToIP)
return;
137 if (mu.energyLossType()==
type) hist->Fill(mu.pt()*scale,weight);
Helper class to provide constant type-safe access to aux data.
TH1 * paramELossDiffTruthEta1p55_end
void FillPlotELossType(TH1 *hist, const xAOD::Muon &mu, float scale=1, float weight=1.0)
TH1 * paramELossDiffTruth
TH1 * measELossDiffTruthEta1p55_end
MuonParamElossPlots(PlotBase *pParent, const std::string &sDir)
TH1 * paramELossDiffTruthEta1p35_1p55
void FillPlot(TH1 *hist, const xAOD::Muon &mu, const xAOD::Muon::ParamDef paramDef, float scale=1, float weight=1.0)
TH1 * ELossDiffTruthEta1p55_end
TH1 * measELossDiffTruthEta1p35_1p55
TH1 * measELossDiffTruthEta0_1p35
TH1 * ELossDiffTruthEta0_1p35
TH1 * ELossDiffTruthEta1p35_1p55
TH1 * ELossTypeParametrPt
void fill(const xAOD::TruthParticle &truthMu, const xAOD::Muon &mu, float weight=1.0)
TH1 * paramELossDiffTruthEta0_1p35
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
holding In fact this class is here in order to allow STL container for all features This class is sho...
Eigen::Matrix< double, 3, 1 > Vector3D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
TruthParticle_v1 TruthParticle
Typedef to implementation.
Muon_v1 Muon
Reference the current persistent version: