202 std::cout << __FUNCTION__ <<
":" << __LINE__ <<
":pvHandle handle not found!" << std::endl;
205 const int nvtx = pvHandle->size();
224 if (
isCaloMET) { met = caloMETs->front();}
225 if (
isPFMET) { met = pfMETs->front() ;}
226 if (
isGenMET) { met = genMETs->front() ;}
229 const double SumET = met.
sumEt();
230 const double METSig = met.
mEtSig();
231 const double MET = met.
pt();
232 const double MEx = met.
px();
233 const double MEy = met.
py();
234 const double METPhi = met.
phi();
246 bool isvalidgenmet=
false;
254 genMetTrue = &(genmetcol->front());
257 genMetTrue=patMET->front().genMET();
262 double genMET = genMetTrue->
pt();
263 double genMETPhi = genMetTrue->
phi();
283 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetTrue";
292 const double genMET = genMetCalo->
pt();
293 const double genMETPhi = genMetCalo->
phi();
298 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetCalo";
308 const double caloEmEtFraction = calomet->
emEtFraction();
309 const double caloHadEtInHB = calomet->
hadEtInHB();
310 const double caloHadEtInHO = calomet->
hadEtInHO();
311 const double caloHadEtInHE = calomet->
hadEtInHE();
312 const double caloHadEtInHF = calomet->
hadEtInHF();
313 const double caloEmEtInEB = calomet->
emEtInEB();
314 const double caloEmEtInEE = calomet->
emEtInEE();
315 const double caloEmEtInHF = calomet->
emEtInHF();
337 genmet = &(genMETs->front());
374 const pat::MET *patmet = &(patMET->front());
Analysis-level MET class.
MonitorElement * mChargedEMEtFraction
MonitorElement * mMuonEtFraction
double HFEMEtFraction() const
double ChargedHadEtFraction() const
MonitorElement * mMETDifference_GenMETTrue
double CaloSETInmHF() const
double MuonEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET400to500
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * mPFelectronEtFraction
double maxEtInHadTowers() const
double neutralHadronEtFraction() const
MonitorElement * mCaloMaxEtInEmTowers
MonitorElement * mCaloSETInpHF
MonitorElement * mCaloHadEtInHF
tuple genMetCalo
____________________________________________________________________________||
virtual double phi() const final
momentum azimuthal angle
double MuonEtFraction() const
MonitorElement * mPFphotonEtFraction
double NeutralEMFraction() const
double ChargedEMEtFraction() const
MonitorElement * mPFHFEMEt
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 * mPFelectronEt
MonitorElement * mPFphotonEt
MonitorElement * mCaloEmEtInEB
MonitorElement * mCaloHadEtInHE
double HFHadronEtFraction() const
edm::EDGetTokenT< reco::PFMETCollection > pfMETsToken_
edm::EDGetTokenT< reco::CaloMETCollection > caloMETsToken_
MonitorElement * mPFneutralHadronEtFraction
double muonEtFraction() const
double HFHadronEt() const
MonitorElement * mPFHFHadronEt
double photonEtFraction() const
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
double ChargedEMEtFraction() const
edm::EDGetTokenT< reco::GenMETCollection > genMETsToken_
MonitorElement * mMETDifference_GenMETTrue_MET150to200
virtual double py() const final
y coordinate of momentum vector
MonitorElement * mMETDeltaPhi_GenMETCalo
MonitorElement * mMETDifference_GenMETTrue_MET100to150
MonitorElement * mCaloHadEtInHB
double CaloSETInpHF() const
double InvisibleEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET300to400
MonitorElement * mMETDifference_GenMETCalo
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
edm::EDGetTokenT< reco::GenMETCollection > genMETsCaloToken_
edm::EDGetTokenT< reco::GenMETCollection > genMETsTrueToken_
MonitorElement * mPFmuonEtFraction
double NeutralEMEtFraction() const
double electronEtFraction() const
MonitorElement * mMETFine
double chargedHadronEtFraction() const
MonitorElement * mNeutralHadEtFraction
edm::EDGetTokenT< pat::METCollection > patMETToken_
MonitorElement * mPFHFEMEtFraction
double NeutralHadEtFraction() const
MonitorElement * mNvertex
MonitorElement * mMET_Nvtx
MonitorElement * mPFchargedHadronEtFraction
virtual double px() const final
x coordinate of momentum vector
MonitorElement * mMETDifference_GenMETTrue_MET0to20
double neutralHadronEt() const
double ChargedHadEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET200to300
MonitorElement * mMETDifference_GenMETTrue_MET80to100
double emEtFraction() const
double chargedHadronEt() const
MonitorElement * mCaloEmEtInHF
virtual double pt() const final
transverse momentum
MonitorElement * mPFHFHadronEtFraction