240 std::cout << __FUNCTION__ <<
":" << __LINE__ <<
":pvHandle handle not found!" << std::endl;
243 const int nvtx = pvHandle->size();
271 met = caloMETs->front();
274 met = pfMETs->front();
277 met = genMETs->front();
280 met = patMET->front();
283 const double SumET = met.
sumEt();
284 const double METSig = met.
mEtSig();
285 const double MET = met.
pt();
286 const double MEx = met.
px();
287 const double MEy = met.
py();
288 const double METPhi = met.
phi();
300 bool isvalidgenmet =
false;
306 isvalidgenmet =
true;
308 genMetTrue = &(genmetcol->front());
311 genMetTrue = patMET->front().genMET();
312 isvalidgenmet =
true;
316 double genMET = genMetTrue->
pt();
317 double genMETPhi = genMetTrue->
phi();
324 if (MET > 0 && MET < 20)
326 else if (MET > 20 && MET < 40)
328 else if (MET > 40 && MET < 60)
330 else if (MET > 60 && MET < 80)
332 else if (MET > 80 && MET < 100)
334 else if (MET > 100 && MET < 150)
336 else if (MET > 150 && MET < 200)
338 else if (MET > 200 && MET < 300)
340 else if (MET > 300 && MET < 400)
342 else if (MET > 400 && MET < 500)
348 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetTrue";
357 const double genMET = genMetCalo->
pt();
358 const double genMETPhi = genMetCalo->
phi();
363 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetCalo";
373 const double caloEmEtFraction = calomet->
emEtFraction();
374 const double caloHadEtInHB = calomet->
hadEtInHB();
375 const double caloHadEtInHO = calomet->
hadEtInHO();
376 const double caloHadEtInHE = calomet->
hadEtInHE();
377 const double caloHadEtInHF = calomet->
hadEtInHF();
378 const double caloEmEtInEB = calomet->
emEtInEB();
379 const double caloEmEtInEE = calomet->
emEtInEE();
380 const double caloEmEtInHF = calomet->
emEtInHF();
401 genmet = &(genMETs->front());
436 const pat::MET *patmet = &(patMET->front());
Analysis-level MET class.
MonitorElement * mChargedEMEtFraction
MonitorElement * mMuonEtFraction
double HFEMEtFraction() const
double ChargedHadEtFraction() const
MonitorElement * mMETDifference_GenMETTrue
MonitorElement * mMETUnc_MuonEnUp
double CaloSETInmHF() const
MonitorElement * mMETUnc_ElectronEnDown
double MuonEtFraction() const
MonitorElement * mMETUnc_ElectronEnUp
MonitorElement * mMETDifference_GenMETTrue_MET400to500
MonitorElement * mMETUnc_TauEnDown
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * mPFelectronEtFraction
double maxEtInHadTowers() const
double neutralHadronEtFraction() const
MonitorElement * mCaloMaxEtInEmTowers
MonitorElement * mCaloSETInpHF
double px() const final
x coordinate of momentum vector
genmet
do same things for GEN
MonitorElement * mCaloHadEtInHF
double MuonEtFraction() const
MonitorElement * mPFphotonEtFraction
double pt() const final
transverse momentum
double NeutralEMFraction() const
double ChargedEMEtFraction() const
MonitorElement * mPFHFEMEt
genMetCalo
____________________________________________________________________________||
double maxEtInEmTowers() const
MonitorElement * mMETDifference_GenMETTrue_MET40to60
double Type6EtFraction() const
double Type7EtFraction() const
MonitorElement * mCaloEmEtFraction
MonitorElement * mCaloEmEtInEE
MonitorElement * mCaloSETInmHF
double NeutralHadEtFraction() const
MonitorElement * mNeutralEMEtFraction
MonitorElement * mMETDifference_GenMETTrue_MET20to40
MonitorElement * mMETDifference_GenMETTrue_MET60to80
MonitorElement * mCaloMaxEtInHadTowers
bool isPFMET() const
True if this pat::MET was made from a reco::pfMET.
MonitorElement * mInvisibleEtFraction
MonitorElement * mCaloEtFractionHadronic
MonitorElement * mPFmuonEt
MonitorElement * mMETUnc_UnclusteredEnUp
MonitorElement * mPFelectronEt
MonitorElement * mPFphotonEt
MonitorElement * mCaloEmEtInEB
MonitorElement * mMETUnc_JetEnUp
MonitorElement * mCaloHadEtInHE
double HFHadronEtFraction() const
edm::EDGetTokenT< reco::PFMETCollection > pfMETsToken_
edm::EDGetTokenT< reco::CaloMETCollection > caloMETsToken_
MonitorElement * mPFneutralHadronEtFraction
double muonEtFraction() const
MonitorElement * mMETUnc_JetResUp
double HFHadronEt() const
MonitorElement * mPFHFHadronEt
double photonEtFraction() const
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
double ChargedEMEtFraction() const
edm::EDGetTokenT< reco::GenMETCollection > genMETsToken_
MonitorElement * mMETUnc_JetEnDown
MonitorElement * mMETDifference_GenMETTrue_MET150to200
MonitorElement * mMETDeltaPhi_GenMETCalo
MonitorElement * mMETDifference_GenMETTrue_MET100to150
MonitorElement * mCaloHadEtInHB
MonitorElement * mMETUnc_PhotonEnDown
double CaloSETInpHF() const
double InvisibleEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET300to400
MonitorElement * mMETDifference_GenMETCalo
MonitorElement * mMETUnc_JetResDown
double shiftedPt(METUncertainty shift, METCorrectionLevel level=Type1) const
MonitorElement * mCaloHadEtInHO
double electronEt() const
MonitorElement * mMETDifference_GenMETTrue_MET500
MonitorElement * mPFchargedHadronEt
double etFractionHadronic() const
T const * product() const
MonitorElement * mChargedHadEtFraction
MonitorElement * mMETDeltaPhi_GenMETTrue
MonitorElement * mPFneutralHadronEt
MonitorElement * mMETUnc_TauEnUp
edm::EDGetTokenT< reco::GenMETCollection > genMETsCaloToken_
double py() const final
y coordinate of momentum vector
edm::EDGetTokenT< reco::GenMETCollection > genMETsTrueToken_
MonitorElement * mPFmuonEtFraction
double NeutralEMEtFraction() const
double electronEtFraction() const
MonitorElement * mMETFine
MonitorElement * mMETUnc_MuonEnDown
double chargedHadronEtFraction() const
MonitorElement * mNeutralHadEtFraction
edm::EDGetTokenT< pat::METCollection > patMETToken_
MonitorElement * mPFHFEMEtFraction
MonitorElement * mMETUnc_UnclusteredEnDown
genMetTrue
____________________________________________________________________________||
double NeutralHadEtFraction() const
MonitorElement * mMETUnc_PhotonEnUp
MonitorElement * mNvertex
MonitorElement * mMET_Nvtx
MonitorElement * mPFchargedHadronEtFraction
MonitorElement * mMETDifference_GenMETTrue_MET0to20
double neutralHadronEt() const
double ChargedHadEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET200to300
double phi() const final
momentum azimuthal angle
MonitorElement * mMETDifference_GenMETTrue_MET80to100
double emEtFraction() const
double chargedHadronEt() const
MonitorElement * mCaloEmEtInHF
MonitorElement * mPFHFHadronEtFraction