CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
reco::SoftLeptonTagInfo Class Reference

#include <SoftLeptonTagInfo.h>

Inheritance diagram for reco::SoftLeptonTagInfo:
reco::JetTagInfo reco::BaseTagInfo

Public Types

typedef std::vector< std::pair
< edm::RefToBase< reco::Track >
, SoftLeptonProperties > > 
LeptonMap
 

Public Member Functions

virtual SoftLeptonTagInfoclone (void) const
 clone More...
 
void insert (const edm::RefToBase< reco::Track > &lepton, const SoftLeptonProperties &properties)
 
const edm::RefToBase
< reco::Track > & 
lepton (size_t i) const
 
unsigned int leptons (void) const
 
const SoftLeptonPropertiesproperties (size_t i) const
 
 SoftLeptonTagInfo (void)
 
virtual TaggingVariableList taggingVariables (void) const
 returns a description of the extended informations in a TaggingVariableList More...
 
virtual ~SoftLeptonTagInfo (void)
 
- Public Member Functions inherited from reco::JetTagInfo
virtual edm::RefToBase< Jetjet (void) const
 returns a polymorphic reference to the tagged jet More...
 
 JetTagInfo (void)
 
template<typename T >
 JetTagInfo (const edm::Ref< T > &jetRef)
 
 JetTagInfo (const edm::RefToBase< Jet > &jetRef)
 
template<typename T >
void setJetRef (const edm::Ref< T > &jetRef)
 
void setJetRef (const edm::RefToBase< Jet > &jetRef)
 
virtual ~JetTagInfo (void)
 
- Public Member Functions inherited from reco::BaseTagInfo
 BaseTagInfo (void)
 
virtual bool hasTracks (void) const
 check if the algorithm is using the tracks or not More...
 
virtual TrackRefVector tracks (void) const
 returns a list of tracks associated to the jet More...
 
virtual ~BaseTagInfo (void)
 

Private Attributes

LeptonMap m_leptons
 

Additional Inherited Members

- Protected Attributes inherited from reco::JetTagInfo
edm::RefToBase< Jetm_jet
 

Detailed Description

Definition at line 105 of file SoftLeptonTagInfo.h.

Member Typedef Documentation

Definition at line 107 of file SoftLeptonTagInfo.h.

Constructor & Destructor Documentation

reco::SoftLeptonTagInfo::SoftLeptonTagInfo ( void  )
inline

Definition at line 109 of file SoftLeptonTagInfo.h.

Referenced by clone().

109 : m_leptons() {}
virtual reco::SoftLeptonTagInfo::~SoftLeptonTagInfo ( void  )
inlinevirtual

Definition at line 111 of file SoftLeptonTagInfo.h.

111 {}

Member Function Documentation

virtual SoftLeptonTagInfo* reco::SoftLeptonTagInfo::clone ( void  ) const
inlinevirtual

clone

Reimplemented from reco::JetTagInfo.

Definition at line 113 of file SoftLeptonTagInfo.h.

References SoftLeptonTagInfo().

113 { return new SoftLeptonTagInfo(*this); }
void reco::SoftLeptonTagInfo::insert ( const edm::RefToBase< reco::Track > &  lepton,
const SoftLeptonProperties properties 
)
inline

Definition at line 127 of file SoftLeptonTagInfo.h.

References m_leptons.

Referenced by BeautifulSoup.PageElement::_invert(), SoftLepton::tag(), SoftPFElectronTagInfoProducer::tagElec(), and SoftPFMuonTagInfoProducer::tagMuon().

127  {
128  m_leptons.push_back( std::pair< edm::RefToBase<reco::Track>, SoftLeptonProperties > (lepton, properties) );
129  }
const SoftLeptonProperties & properties(size_t i) const
const edm::RefToBase<reco::Track>& reco::SoftLeptonTagInfo::lepton ( size_t  i) const
inline

Definition at line 119 of file SoftLeptonTagInfo.h.

References i, and m_leptons.

Referenced by HLTMonBTagMuSource::analyze(), SoftLeptonTagPlotter::analyzeTag(), and L6SLBCorrector::correction().

119  {
120  return m_leptons[i].first;
121  }
int i
Definition: DBlmapReader.cc:9
unsigned int reco::SoftLeptonTagInfo::leptons ( void  ) const
inline
const SoftLeptonProperties& reco::SoftLeptonTagInfo::properties ( size_t  i) const
inline
TaggingVariableList reco::SoftLeptonTagInfo::taggingVariables ( void  ) const
virtual

returns a description of the extended informations in a TaggingVariableList

Reimplemented from reco::BaseTagInfo.

Definition at line 64 of file SoftLeptonTagInfo.cc.

References reco::SoftLeptonProperties::quality::btagLeptonCands, data, reco::SoftLeptonProperties::deltaR, reco::LeafCandidate::energy(), reco::LeafCandidate::et(), reco::TrackBase::eta(), reco::LeafCandidate::eta(), reco::SoftLeptonProperties::etaRel, reco::TaggingVariableList::finalize(), i, reco::TaggingVariableList::insert(), metsig::jet, reco::btau::jetEnergy, reco::btau::jetEta, reco::btau::jetPhi, reco::btau::jetPt, reco::SoftLeptonProperties::quality::leptonId, reco::btau::leptonQuality, reco::btau::leptonQuality2, list(), reco::TrackBase::normalizedChi2(), reco::TrackBase::p(), reco::TrackBase::phi(), reco::LeafCandidate::phi(), reco::SoftLeptonProperties::ptRel, reco::SoftLeptonProperties::quality(), reco::SoftLeptonProperties::ratioRel, reco::SoftLeptonProperties::sip2d, reco::SoftLeptonProperties::sip3d, reco::btau::trackChi2, reco::btau::trackDeltaR, reco::btau::trackEta, reco::btau::trackEtaRel, reco::btau::trackMomentum, reco::btau::trackP0Par, reco::btau::trackPhi, reco::btau::trackPParRatio, reco::btau::trackPtRel, reco::btau::trackSip2dSig, and reco::btau::trackSip3dSig.

64  {
65  TaggingVariableList list;
66 
67  const Jet & jet = *( this->jet() );
68  list.insert( TaggingVariable(jetEnergy, jet.energy()), true );
69  list.insert( TaggingVariable(jetPt, jet.et()), true );
70  list.insert( TaggingVariable(jetEta, jet.eta()), true );
71  list.insert( TaggingVariable(jetPhi, jet.phi()), true );
72 
73  for (unsigned int i = 0; i < m_leptons.size(); ++i) {
74  const Track & track = *(m_leptons[i].first);
75  list.insert( TaggingVariable(trackMomentum, track.p()), true );
76  list.insert( TaggingVariable(trackEta, track.eta()), true );
77  list.insert( TaggingVariable(trackPhi, track.phi()), true );
78  list.insert( TaggingVariable(trackChi2, track.normalizedChi2()), true );
79  const SoftLeptonProperties & data = m_leptons[i].second;
80  list.insert( TaggingVariable(leptonQuality, data.quality(SoftLeptonProperties::quality::leptonId, false)), true );
81  list.insert( TaggingVariable(leptonQuality2, data.quality(SoftLeptonProperties::quality::btagLeptonCands, false)), true );
82  list.insert( TaggingVariable(trackSip2dSig, data.sip2d), true );
83  list.insert( TaggingVariable(trackSip3dSig, data.sip3d), true );
84  list.insert( TaggingVariable(trackPtRel, data.ptRel), true );
85  list.insert( TaggingVariable(trackP0Par, data.ptRel), true );
86  list.insert( TaggingVariable(trackEtaRel, data.etaRel), true );
87  list.insert( TaggingVariable(trackDeltaR, data.deltaR), true );
88  list.insert( TaggingVariable(trackPParRatio, data.ratioRel), true );
89  }
90 
91  list.finalize();
92  return list;
93 }
int i
Definition: DBlmapReader.cc:9
virtual edm::RefToBase< Jet > jet(void) const
returns a polymorphic reference to the tagged jet
Definition: JetTagInfo.h:22
std::pair< TaggingVariableName, TaggingValue > TaggingVariable
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Data Documentation

LeptonMap reco::SoftLeptonTagInfo::m_leptons
private

Definition at line 135 of file SoftLeptonTagInfo.h.

Referenced by insert(), lepton(), leptons(), and properties().