54 delta_et_Over_et_VS_et_ = book2D(
"delta_et_Over_et_VS_et_",
55 ";ME_{T, true} (GeV);#DeltaME_{T}/ME_{T}",
56 ptPS.
n, ptPS.
m, ptPS.
M,
57 dptOvptPS.
n, dptOvptPS.
m, dptOvptPS.
M );
59 delta_et_VS_et_ = book2D(
"delta_et_VS_et_",
60 ";ME_{T, true} (GeV);#DeltaME_{T}",
61 ptPS.
n, ptPS.
m, ptPS.
M,
62 dptPS.
n, dptPS.
m, dptPS.
M );
64 delta_phi_VS_et_ = book2D(
"delta_phi_VS_et_",
65 ";ME_{T, true} (GeV);#Delta#phi",
66 ptPS.
n, ptPS.
m, ptPS.
M,
67 dphiPS.
n, dphiPS.
m, dphiPS.
M );
69 delta_ex_ = book1D(
"delta_ex_",
71 dptPS.
n, dptPS.
m, dptPS.
M );
73 RecEt_VS_TrueEt_ = book2D(
"RecEt_VS_TrueEt_",
74 ";ME_{T, true} (GeV);ME_{T}",
75 ptPS.
n, ptPS.
m, ptPS.
M,
76 ptPS.
n, ptPS.
m, ptPS.
M );
78 delta_set_VS_set_ = book2D(
"delta_set_VS_set_",
79 ";SE_{T, true} (GeV);#DeltaSE_{T}",
80 setPS.
n, setPS.
m, setPS.
M,
81 dsetPS.
n, dsetPS.
m, dsetPS.
M );
83 delta_set_Over_set_VS_set_ = book2D(
"delta_set_Over_set_VS_set_",
84 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
85 setPS.
n, setPS.
m, setPS.
M,
86 dptOvptPS.
n, dptOvptPS.
m, dptOvptPS.
M );
88 delta_ex_VS_set_ = book2D(
"delta_ex_VS_set_",
89 ";SE_{T, true} (GeV);#DeltaE_{X}",
90 setPS.
n, setPS.
m, setPS.
M,
91 ptPS.
n, -ptPS.
M, ptPS.
M );
93 RecSet_Over_TrueSet_VS_TrueSet_ = book2D(
"RecSet_Over_TrueSet_VS_TrueSet_",
94 ";SE_{T, true} (GeV);SE_{T}/SE_{T}",
95 setPS.
n, setPS.
m, setPS.
M,
96 setOvsetPS.
n, setOvsetPS.
m, setOvsetPS.
M );
102 if( !isInRange(cand.
pt(), cand.
eta(), cand.
phi() ) )
return;
104 if ( matchedCand.
pt()>0.001 ) delta_et_Over_et_VS_et_->Fill( matchedCand.
pt(), (cand.
pt() - matchedCand.
pt())/matchedCand.
pt() );
105 else edm::LogWarning(
"MatchMETBenchmark") <<
" matchedCand.pt()<0.001";
106 delta_et_VS_et_->Fill( matchedCand.
pt(), cand.
pt() - matchedCand.
pt() );
107 delta_phi_VS_et_->Fill( matchedCand.
pt(), cand.
phi() - matchedCand.
phi() );
108 delta_ex_->Fill(cand.
px()-matchedCand.
px());
109 delta_ex_->Fill(cand.
py()-matchedCand.
py());
110 RecEt_VS_TrueEt_->Fill(matchedCand.
pt(),cand.
pt());
111 delta_set_VS_set_->Fill(matchedCand.
sumEt(),cand.
sumEt()-matchedCand.
sumEt());
112 if ( matchedCand.
sumEt()>0.001 ) delta_set_Over_set_VS_set_->Fill(matchedCand.
sumEt(),(cand.
sumEt()-matchedCand.
sumEt())/matchedCand.
sumEt());
113 else edm::LogWarning(
"MatchMETBenchmark") <<
" matchedCand.sumEt()<0.001";
114 delta_ex_VS_set_->Fill(matchedCand.
sumEt(),cand.
px()-matchedCand.
px());
115 delta_ex_VS_set_->Fill(matchedCand.
sumEt(),cand.
py()-matchedCand.
py());
116 if ( matchedCand.
sumEt()>0.001 ) RecSet_Over_TrueSet_VS_TrueSet_->Fill(matchedCand.
sumEt(),cand.
sumEt()/matchedCand.
sumEt());
virtual float pt() const
transverse momentum
virtual float phi() const
momentum azimuthal angle
void setup()
book histograms
virtual ~MatchMETBenchmark()
void fillOne(const reco::MET &candidate, const reco::MET &matchedCandidate)
fill histograms with a given particle
virtual float eta() const
momentum pseudorapidity
virtual double px() const
x coordinate of momentum vector
virtual double py() const
y coordinate of momentum vector