17 m_etaBins {-3., -2.5, -2.4, -1.918, -1.623, -1.348, -1.2329, -1.1479, -1.05, -0.908, -0.791,
18 -0.652, -0.476, -0.324, -0.132, 0, 0.132, 0.324, 0.476, 0.652, 0.791, 0.908,
19 1.05, 1.1479, 1.2329, 1.348, 1.623, 1.918, 2.4, 2.5, 3.}
26 150., 100, -0.25, 0.25);
28 Book2D(
"Res" +
m_sType +
"_eta_vs_pT",
"Res" +
m_sType +
"_eta vs pT;pT [GeV];eta-RECOeta", 150, 0., 150., 200, -0.02, 0.02);
30 Book2D(
"Res" +
m_sType +
"_phi_vs_pT",
"Res" +
m_sType +
"_phi vs pT;pT [GeV];phi-RECOphi", 150, 0., 150., 200, -0.005, 0.005);
36 for (
unsigned int i = 0; i <
m_pt_slices.size() - 1; i++) {
39 " GeV; eta;(1/pT-1/RECOpT)/(1/RECOpT)",
43 " GeV;phi;(1/pT-1/RECOpT)/(1/RECOpT)",
47 " GeV;phi;(1/pT-1/RECOpT)/(1/RECOpT)",
58 float pt = 0.001 * Recomu.
pt();
62 float respt = (1. / Trigmu.
pt() - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
65 const float d_eta = Trigmu.
eta() -
eta;
74 for (
unsigned int i = 0; i <
m_pt_slices.size() - 1; i++) {
77 if (
pt >= pt_min &&
pt < pt_max) {
87 float pt = 0.001 * Recomu.
pt();
91 if (L2SAmu.
pt() > 0.) respt = (1. / (1000. * L2SAmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
92 if (L2SAmu.
pt() < 0.) respt = (1. / (-1000. * L2SAmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
94 const float d_eta = L2SAmu.
eta() -
eta;
104 for (
unsigned int i = 0; i <
m_pt_slices.size() - 1; i++) {
107 if (
pt >= pt_min &&
pt < pt_max) {
117 float pt = 0.001 * Recomu.
pt();
120 float respt = (1. / (L2CBmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
124 const float d_eta = L2CBmu.
eta() -
eta;
133 for (
unsigned int i = 0; i <
m_pt_slices.size() - 1; i++) {
136 if (
pt >= pt_min &&
pt < pt_max) {
Scalar eta() const
pseudorapidity method
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Scalar phi() const
phi method
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)
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
void fill(const xAOD::Muon &Trigmu, const xAOD::Muon &Recomu)
std::vector< double > m_etaBins
std::vector< TH2 * > Res_eta_vs_eta
std::vector< TH2 * > Res_pT_vs_eta
std::vector< TH2 * > Res_pT_vs_phi
std::vector< TH2 * > Res_phi_vs_phi
std::vector< std::string > m_pt_slices
ResoTriggerMuonPlots(PlotBase *pParent, const std::string &sDir, std::string sType="")
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.
setRcore setEtHad setFside pt
L2CombinedMuon_v1 L2CombinedMuon
Define the latest version of the muon CB class.
Muon_v1 Muon
Reference the current persistent version:
L2StandAloneMuon_v2 L2StandAloneMuon
Define the latest version of the muon SA class.