56 delta_et_Over_et_VS_et_ = book2D(b,
"delta_et_Over_et_VS_et_",
57 ";ME_{T, true} (GeV);#DeltaME_{T}/ME_{T}",
58 ptPS.
n, ptPS.
m, ptPS.
M,
59 dptOvptPS.
n, dptOvptPS.
m, dptOvptPS.
M );
61 delta_et_VS_et_ = book2D(b,
"delta_et_VS_et_",
62 ";ME_{T, true} (GeV);#DeltaME_{T}",
63 ptPS.
n, ptPS.
m, ptPS.
M,
64 dptPS.
n, dptPS.
m, dptPS.
M );
66 delta_phi_VS_et_ = book2D(b,
"delta_phi_VS_et_",
67 ";ME_{T, true} (GeV);#Delta#phi",
68 ptPS.
n, ptPS.
m, ptPS.
M,
69 dphiPS.
n, dphiPS.
m, dphiPS.
M );
71 delta_ex_ = book1D(b,
"delta_ex_",
73 dptPS.
n, dptPS.
m, dptPS.
M );
75 RecEt_VS_TrueEt_ = book2D(b,
"RecEt_VS_TrueEt_",
76 ";ME_{T, true} (GeV);ME_{T}",
77 ptPS.
n, ptPS.
m, ptPS.
M,
78 ptPS.
n, ptPS.
m, ptPS.
M );
80 delta_set_VS_set_ = book2D(b,
"delta_set_VS_set_",
81 ";SE_{T, true} (GeV);#DeltaSE_{T}",
82 setPS.
n, setPS.
m, setPS.
M,
83 dsetPS.
n, dsetPS.
m, dsetPS.
M );
85 delta_set_Over_set_VS_set_ = book2D(b,
"delta_set_Over_set_VS_set_",
86 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
87 setPS.
n, setPS.
m, setPS.
M,
88 dptOvptPS.
n, dptOvptPS.
m, dptOvptPS.
M );
90 delta_ex_VS_set_ = book2D(b,
"delta_ex_VS_set_",
91 ";SE_{T, true} (GeV);#DeltaE_{X}",
92 setPS.
n, setPS.
m, setPS.
M,
93 ptPS.
n, -ptPS.
M, ptPS.
M );
95 RecSet_Over_TrueSet_VS_TrueSet_ = book2D(b,
"RecSet_Over_TrueSet_VS_TrueSet_",
96 ";SE_{T, true} (GeV);SE_{T}/SE_{T}",
97 setPS.
n, setPS.
m, setPS.
M,
98 setOvsetPS.
n, setOvsetPS.
m, setOvsetPS.
M );
104 if( !isInRange(cand.
pt(), cand.
eta(), cand.
phi() ) )
return;
106 if ( matchedCand.
pt()>0.001 ) delta_et_Over_et_VS_et_->Fill( matchedCand.
pt(), (cand.
pt() - matchedCand.
pt())/matchedCand.
pt() );
107 else edm::LogWarning(
"MatchMETBenchmark") <<
" matchedCand.pt()<0.001";
108 delta_et_VS_et_->Fill( matchedCand.
pt(), cand.
pt() - matchedCand.
pt() );
109 delta_phi_VS_et_->Fill( matchedCand.
pt(), cand.
phi() - matchedCand.
phi() );
110 delta_ex_->Fill(cand.
px()-matchedCand.
px());
111 delta_ex_->Fill(cand.
py()-matchedCand.
py());
112 RecEt_VS_TrueEt_->Fill(matchedCand.
pt(),cand.
pt());
113 delta_set_VS_set_->Fill(matchedCand.
sumEt(),cand.
sumEt()-matchedCand.
sumEt());
114 if ( matchedCand.
sumEt()>0.001 ) delta_set_Over_set_VS_set_->Fill(matchedCand.
sumEt(),(cand.
sumEt()-matchedCand.
sumEt())/matchedCand.
sumEt());
115 else edm::LogWarning(
"MatchMETBenchmark") <<
" matchedCand.sumEt()<0.001";
116 delta_ex_VS_set_->Fill(matchedCand.
sumEt(),cand.
px()-matchedCand.
px());
117 delta_ex_VS_set_->Fill(matchedCand.
sumEt(),cand.
py()-matchedCand.
py());
118 if ( matchedCand.
sumEt()>0.001 ) RecSet_Over_TrueSet_VS_TrueSet_->Fill(matchedCand.
sumEt(),cand.
sumEt()/matchedCand.
sumEt());
virtual float pt() const
transverse momentum
void setup(DQMStore::IBooker &b)
book histograms
virtual float phi() const
momentum azimuthal angle
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