203 std::cout << __FUNCTION__ <<
":" << __LINE__ <<
":pvHandle handle not found!" << std::endl;
206 const int nvtx = pvHandle->size();
225 if (
isCaloMET) { met = caloMETs->front();}
226 if (
isPFMET) { met = pfMETs->front() ;}
227 if (
isGenMET) { met = genMETs->front() ;}
230 const double SumET = met.
sumEt();
231 const double METSig = met.
mEtSig();
232 const double MET = met.
pt();
233 const double MEx = met.
px();
234 const double MEy = met.
py();
235 const double METPhi = met.
phi();
247 bool isvalidgenmet=
false;
255 genMetTrue = &(genmetcol->front());
258 genMetTrue=patMET->front().genMET();
262 double genMET = genMetTrue->
pt();
263 double genMETPhi = genMetTrue->
phi();
282 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetTrue";
291 const double genMET = genMetCalo->
pt();
292 const double genMETPhi = genMetCalo->
phi();
297 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by MET Task: genMetCalo";
307 const double caloEmEtFraction = calomet->
emEtFraction();
308 const double caloHadEtInHB = calomet->
hadEtInHB();
309 const double caloHadEtInHO = calomet->
hadEtInHO();
310 const double caloHadEtInHE = calomet->
hadEtInHE();
311 const double caloHadEtInHF = calomet->
hadEtInHF();
312 const double caloEmEtInEB = calomet->
emEtInEB();
313 const double caloEmEtInEE = calomet->
emEtInEE();
314 const double caloEmEtInHF = calomet->
emEtInHF();
336 genmet = &(genMETs->front());
373 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
____________________________________________________________________________||
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
virtual double pt() const
transverse momentum
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
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 * mPFchargedHadronEt
double etFractionHadronic() const
T const * product() const
virtual double px() const
x coordinate of momentum vector
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
MonitorElement * mMETDifference_GenMETTrue_MET0to20
double neutralHadronEt() const
double ChargedHadEtFraction() const
MonitorElement * mMETDifference_GenMETTrue_MET200to300
virtual double phi() const
momentum azimuthal angle
MonitorElement * mMETDifference_GenMETTrue_MET80to100
virtual double py() const
y coordinate of momentum vector
double emEtFraction() const
double chargedHadronEt() const
MonitorElement * mCaloEmEtInHF
MonitorElement * mPFHFHadronEtFraction