CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::PUSubMETCandInfo Class Reference

#include <PUSubMETData.h>

Public Types

enum  {
  kUndefined = 0, kHS, kChHS, kPU,
  kChPU, kNeutral
}
 

Public Member Functions

int charge () const
 
float chargedEnFrac () const
 
const float dZ () const
 
bool isWithinJet () const
 
const metsig::SigInputObjmetSignObj () const
 
float mva () const
 
float offsetEnCorr () const
 
bool operator< (const reco::PUSubMETCandInfo &) const
 
const reco::Candidate::LorentzVectorp4 () const
 
float passesLooseJetId () const
 
 PUSubMETCandInfo ()
 
void setCharge (int charge)
 
void setChargedEnFrac (float chEnF)
 
void setDZ (float dZ)
 
void setIsWithinJet (bool isWJ)
 
void setMEtSignObj (metsig::SigInputObj msig)
 
void setMvaVal (float mva)
 
void setOffsetEnCorr (float offset)
 
void setP4 (const reco::Candidate::LorentzVector p4)
 
void setPassesLooseJetId (float jetId)
 
void setType (int type)
 
int type () const
 
 ~PUSubMETCandInfo ()
 

Private Attributes

int charge_
 
float chargedEnFrac_
 
float dZ_
 
bool isWithinJet_
 
float mva_
 
float offsetEnCorr_
 
reco::Candidate::LorentzVector p4_
 
float passesLooseJetId_
 
metsig::SigInputObj pfMEtSignObj_
 
int type_
 

Detailed Description

Definition at line 21 of file PUSubMETData.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ PUSubMETCandInfo()

reco::PUSubMETCandInfo::PUSubMETCandInfo ( )

Definition at line 5 of file PUSubMETData.cc.

References charge_, chargedEnFrac_, dZ_, isWithinJet_, kUndefined, mva_, offsetEnCorr_, p4_, passesLooseJetId_, and type_.

5  {
6  p4_.SetXYZT(0., 0., 0., 0.);
7  dZ_ = 0.;
9  charge_ = 0;
10  isWithinJet_ = false;
11  passesLooseJetId_ = 0.;
12  offsetEnCorr_ = 0.;
13  mva_ = 0.;
14  chargedEnFrac_ = 0.;
15  }
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:66

◆ ~PUSubMETCandInfo()

reco::PUSubMETCandInfo::~PUSubMETCandInfo ( )

Definition at line 17 of file PUSubMETData.cc.

17 {}

Member Function Documentation

◆ charge()

int reco::PUSubMETCandInfo::charge ( ) const
inline

Definition at line 34 of file PUSubMETData.h.

References charge_.

Referenced by setCharge().

34 { return charge_; };

◆ chargedEnFrac()

float reco::PUSubMETCandInfo::chargedEnFrac ( ) const
inline

Definition at line 41 of file PUSubMETData.h.

References chargedEnFrac_.

Referenced by reco::PFMETProducerMVA::computeJetInfo().

41 { return chargedEnFrac_; };

◆ dZ()

const float reco::PUSubMETCandInfo::dZ ( ) const
inline

Definition at line 31 of file PUSubMETData.h.

References dZ_.

Referenced by setDZ().

31 { return dZ_; };

◆ isWithinJet()

bool reco::PUSubMETCandInfo::isWithinJet ( ) const
inline

Definition at line 37 of file PUSubMETData.h.

References isWithinJet_.

Referenced by printMVAMEtPFCandInfo(), and NoPileUpPFMEtDataProducer::produce().

37 { return isWithinJet_; };

◆ metSignObj()

const metsig::SigInputObj& reco::PUSubMETCandInfo::metSignObj ( ) const
inline

Definition at line 43 of file PUSubMETData.h.

References pfMEtSignObj_.

43 { return pfMEtSignObj_; };
metsig::SigInputObj pfMEtSignObj_
Definition: PUSubMETData.h:79

◆ mva()

float reco::PUSubMETCandInfo::mva ( ) const
inline

Definition at line 40 of file PUSubMETData.h.

References mva_.

Referenced by setMvaVal().

40 { return mva_; };

◆ offsetEnCorr()

float reco::PUSubMETCandInfo::offsetEnCorr ( ) const
inline

Definition at line 39 of file PUSubMETData.h.

References offsetEnCorr_.

39 { return offsetEnCorr_; };

◆ operator<()

bool reco::PUSubMETCandInfo::operator< ( const reco::PUSubMETCandInfo jet2) const

Definition at line 19 of file PUSubMETData.cc.

References p4(), and p4_.

19 { return p4_.pt() < jet2.p4().pt(); }
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:66
const reco::Candidate::LorentzVector & p4() const
Definition: PUSubMETData.h:30

◆ p4()

const reco::Candidate::LorentzVector& reco::PUSubMETCandInfo::p4 ( ) const
inline

Definition at line 30 of file PUSubMETData.h.

References p4_.

Referenced by reco::PFMETProducerMVA::computeJetInfo(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), operator<(), Lepton.Lepton::p4WithFSR(), printMVAMEtPFCandInfo(), and setP4().

30 { return p4_; };
reco::Candidate::LorentzVector p4_
Definition: PUSubMETData.h:66

◆ passesLooseJetId()

float reco::PUSubMETCandInfo::passesLooseJetId ( ) const
inline

Definition at line 38 of file PUSubMETData.h.

References passesLooseJetId_.

Referenced by printMVAMEtPFCandInfo().

38 { return passesLooseJetId_; };

◆ setCharge()

void reco::PUSubMETCandInfo::setCharge ( int  charge)
inline

Definition at line 50 of file PUSubMETData.h.

References charge(), and charge_.

Referenced by NoPileUpPFMEtDataProducer::produce().

◆ setChargedEnFrac()

void reco::PUSubMETCandInfo::setChargedEnFrac ( float  chEnF)
inline

◆ setDZ()

void reco::PUSubMETCandInfo::setDZ ( float  dZ)
inline

Definition at line 47 of file PUSubMETData.h.

References dZ(), and dZ_.

Referenced by reco::PFMETProducerMVA::computeJetInfo(), and reco::PFMETProducerMVA::computePFCandidateInfo().

47 { dZ_ = dZ; };
const float dZ() const
Definition: PUSubMETData.h:31

◆ setIsWithinJet()

void reco::PUSubMETCandInfo::setIsWithinJet ( bool  isWJ)
inline

Definition at line 53 of file PUSubMETData.h.

References isWithinJet_.

Referenced by NoPileUpPFMEtDataProducer::produce().

53 { isWithinJet_ = isWJ; };

◆ setMEtSignObj()

void reco::PUSubMETCandInfo::setMEtSignObj ( metsig::SigInputObj  msig)
inline

Definition at line 59 of file PUSubMETData.h.

References pfMEtSignObj_.

Referenced by NoPileUpPFMEtDataProducer::produce().

59 { pfMEtSignObj_ = msig; };
metsig::SigInputObj pfMEtSignObj_
Definition: PUSubMETData.h:79

◆ setMvaVal()

void reco::PUSubMETCandInfo::setMvaVal ( float  mva)
inline

Definition at line 56 of file PUSubMETData.h.

References mva(), and mva_.

Referenced by reco::PFMETProducerMVA::computeJetInfo().

56 { mva_ = mva; };

◆ setOffsetEnCorr()

void reco::PUSubMETCandInfo::setOffsetEnCorr ( float  offset)
inline

◆ setP4()

void reco::PUSubMETCandInfo::setP4 ( const reco::Candidate::LorentzVector  p4)
inline

◆ setPassesLooseJetId()

void reco::PUSubMETCandInfo::setPassesLooseJetId ( float  jetId)
inline

◆ setType()

void reco::PUSubMETCandInfo::setType ( int  type)
inline

Definition at line 49 of file PUSubMETData.h.

References type(), and type_.

Referenced by NoPileUpPFMEtDataProducer::produce().

◆ type()

int reco::PUSubMETCandInfo::type ( ) const
inline

Definition at line 33 of file PUSubMETData.h.

References type_.

Referenced by printMVAMEtPFCandInfo(), and setType().

33 { return type_; };

Member Data Documentation

◆ charge_

int reco::PUSubMETCandInfo::charge_
private

Definition at line 70 of file PUSubMETData.h.

Referenced by charge(), PUSubMETCandInfo(), and setCharge().

◆ chargedEnFrac_

float reco::PUSubMETCandInfo::chargedEnFrac_
private

Definition at line 77 of file PUSubMETData.h.

Referenced by chargedEnFrac(), PUSubMETCandInfo(), and setChargedEnFrac().

◆ dZ_

float reco::PUSubMETCandInfo::dZ_
private

Definition at line 67 of file PUSubMETData.h.

Referenced by dZ(), PUSubMETCandInfo(), and setDZ().

◆ isWithinJet_

bool reco::PUSubMETCandInfo::isWithinJet_
private

Definition at line 73 of file PUSubMETData.h.

Referenced by isWithinJet(), PUSubMETCandInfo(), and setIsWithinJet().

◆ mva_

float reco::PUSubMETCandInfo::mva_
private

Definition at line 76 of file PUSubMETData.h.

Referenced by mva(), PUSubMETCandInfo(), and setMvaVal().

◆ offsetEnCorr_

float reco::PUSubMETCandInfo::offsetEnCorr_
private

Definition at line 75 of file PUSubMETData.h.

Referenced by offsetEnCorr(), PUSubMETCandInfo(), and setOffsetEnCorr().

◆ p4_

reco::Candidate::LorentzVector reco::PUSubMETCandInfo::p4_
private

Definition at line 66 of file PUSubMETData.h.

Referenced by operator<(), p4(), PUSubMETCandInfo(), and setP4().

◆ passesLooseJetId_

float reco::PUSubMETCandInfo::passesLooseJetId_
private

Definition at line 74 of file PUSubMETData.h.

Referenced by passesLooseJetId(), PUSubMETCandInfo(), and setPassesLooseJetId().

◆ pfMEtSignObj_

metsig::SigInputObj reco::PUSubMETCandInfo::pfMEtSignObj_
private

Definition at line 79 of file PUSubMETData.h.

Referenced by metSignObj(), and setMEtSignObj().

◆ type_

int reco::PUSubMETCandInfo::type_
private