CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
reco::TemplatedSoftLeptonTagInfo< REF > Class Template Reference

#include <TemplatedSoftLeptonTagInfo.h>

Inheritance diagram for reco::TemplatedSoftLeptonTagInfo< REF >:
reco::JetTagInfo reco::BaseTagInfo

Public Types

typedef std::vector< std::pair< REF, SoftLeptonProperties > > LeptonMap
 

Public Member Functions

TemplatedSoftLeptonTagInfoclone (void) const override
 clone More...
 
void insert (const REF &lepton, const SoftLeptonProperties &properties)
 
const REF & lepton (size_t i) const
 
unsigned int leptons (void) const
 
const SoftLeptonPropertiesproperties (size_t i) const
 
TaggingVariableList taggingVariables (void) const override
 returns a description of the extended informations in a TaggingVariableList More...
 
 TemplatedSoftLeptonTagInfo (void)
 
 ~TemplatedSoftLeptonTagInfo (void) override
 
- Public Member Functions inherited from reco::JetTagInfo
edm::RefToBase< Jetjet (void) const override
 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)
 
 ~JetTagInfo (void) override
 
- 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)
 

Static Public Member Functions

static short Class_Version ()
 

Private Attributes

LeptonMap m_leptons
 

Additional Inherited Members

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

Detailed Description

template<class REF>
class reco::TemplatedSoftLeptonTagInfo< REF >

Definition at line 117 of file TemplatedSoftLeptonTagInfo.h.

Member Typedef Documentation

template<class REF >
typedef std::vector< std::pair< REF, SoftLeptonProperties > > reco::TemplatedSoftLeptonTagInfo< REF >::LeptonMap

Definition at line 119 of file TemplatedSoftLeptonTagInfo.h.

Constructor & Destructor Documentation

template<class REF >
reco::TemplatedSoftLeptonTagInfo< REF >::TemplatedSoftLeptonTagInfo ( void  )
inline
template<class REF >
reco::TemplatedSoftLeptonTagInfo< REF >::~TemplatedSoftLeptonTagInfo ( void  )
inlineoverride

Definition at line 123 of file TemplatedSoftLeptonTagInfo.h.

123 {}

Member Function Documentation

template<class REF >
static short reco::TemplatedSoftLeptonTagInfo< REF >::Class_Version ( )
inlinestatic

Definition at line 147 of file TemplatedSoftLeptonTagInfo.h.

149 :
std::vector< std::pair< REF, SoftLeptonProperties > > LeptonMap
template<class REF >
TemplatedSoftLeptonTagInfo* reco::TemplatedSoftLeptonTagInfo< REF >::clone ( void  ) const
inlineoverridevirtual

clone

Reimplemented from reco::JetTagInfo.

Definition at line 125 of file TemplatedSoftLeptonTagInfo.h.

template<class REF >
void reco::TemplatedSoftLeptonTagInfo< REF >::insert ( const REF &  lepton,
const SoftLeptonProperties properties 
)
inline

Definition at line 139 of file TemplatedSoftLeptonTagInfo.h.

Referenced by BeautifulSoup.PageElement::append(), SoftPFMuonTagInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), and SoftLepton::tag().

139  {
140  m_leptons.push_back( std::pair< REF, SoftLeptonProperties > (lepton, properties) );
141  }
const SoftLeptonProperties & properties(size_t i) const
template<class REF >
const REF& reco::TemplatedSoftLeptonTagInfo< REF >::lepton ( size_t  i) const
inline
template<class REF >
unsigned int reco::TemplatedSoftLeptonTagInfo< REF >::leptons ( void  ) const
inline
template<class REF >
const SoftLeptonProperties& reco::TemplatedSoftLeptonTagInfo< REF >::properties ( size_t  i) const
inline
template<class REF >
TaggingVariableList reco::TemplatedSoftLeptonTagInfo< REF >::taggingVariables ( void  ) const
overridevirtual

returns a description of the extended informations in a TaggingVariableList

Reimplemented from reco::BaseTagInfo.

Definition at line 155 of file TemplatedSoftLeptonTagInfo.h.

References reco::SoftLeptonProperties::Quality::btagLeptonCands, reco::SoftLeptonProperties::charge, data, reco::SoftLeptonProperties::deltaR, reco::SoftLeptonProperties::elec_mva, reco::btau::electronMVA, reco::LeafCandidate::energy(), reco::LeafCandidate::et(), PVValHelper::eta, reco::LeafCandidate::eta(), reco::SoftLeptonProperties::etaRel, reco::TaggingVariableList::finalize(), mps_fire::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(), AlCaHLTBitMon_ParallelJobs::p, reco::SoftLeptonProperties::p0Par, reco::LeafCandidate::phi(), reco::SoftLeptonProperties::ptRel, reco::SoftLeptonProperties::quality(), reco::SoftLeptonProperties::ratioRel, reco::SoftLeptonProperties::sip2d, reco::SoftLeptonProperties::sip2dsig, reco::SoftLeptonProperties::sip3d, reco::SoftLeptonProperties::sip3dsig, reco::btag::toTrack(), reco::btau::trackCharge, 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, reco::btau::trackSip2dVal, reco::btau::trackSip3dSig, and reco::btau::trackSip3dVal.

155  {
156  TaggingVariableList list;
157 
158  const Jet & jet = *( this->jet() );
159  list.insert( TaggingVariable(btau::jetEnergy, jet.energy()), true );
160  list.insert( TaggingVariable(btau::jetPt, jet.et()), true );
161  list.insert( TaggingVariable(btau::jetEta, jet.eta()), true );
162  list.insert( TaggingVariable(btau::jetPhi, jet.phi()), true );
163 
164  for (unsigned int i = 0; i < m_leptons.size(); ++i) {
165  const REF & trackRef = m_leptons[i].first;
166  list.insert( TaggingVariable(btau::trackMomentum, reco::btag::toTrack(trackRef)->p()), true );
167  list.insert( TaggingVariable(btau::trackEta, reco::btag::toTrack(trackRef)->eta()), true );
168  list.insert( TaggingVariable(btau::trackPhi, reco::btag::toTrack(trackRef)->phi()), true );
169  list.insert( TaggingVariable(btau::trackChi2, reco::btag::toTrack(trackRef)->normalizedChi2()), true );
170  const SoftLeptonProperties & data = m_leptons[i].second;
171  list.insert( TaggingVariable(btau::leptonQuality, data.quality(SoftLeptonProperties::Quality::leptonId, false)), true );
172  list.insert( TaggingVariable(btau::leptonQuality2, data.quality(SoftLeptonProperties::Quality::btagLeptonCands, false)), true );
173  list.insert( TaggingVariable(btau::trackSip2dVal, data.sip2d), true );
174  list.insert( TaggingVariable(btau::trackSip3dVal, data.sip3d), true );
175  list.insert( TaggingVariable(btau::trackSip2dSig, data.sip2dsig), true );
176  list.insert( TaggingVariable(btau::trackSip3dSig, data.sip3dsig), true );
177  list.insert( TaggingVariable(btau::trackPtRel, data.ptRel), true );
178  list.insert( TaggingVariable(btau::trackP0Par, data.p0Par), true );
179  list.insert( TaggingVariable(btau::trackEtaRel, data.etaRel), true );
180  list.insert( TaggingVariable(btau::trackDeltaR, data.deltaR), true );
181  list.insert( TaggingVariable(btau::trackPParRatio, data.ratioRel), true );
182  list.insert( TaggingVariable(btau::electronMVA, data.elec_mva), true );
183  list.insert( TaggingVariable(btau::trackCharge, data.charge), true );
184  }
185 
186  list.finalize();
187  return list;
188 }
const reco::Track * toTrack(const reco::TrackBaseRef &t)
Definition: IPTagInfo.h:24
edm::RefToBase< Jet > jet(void) const override
returns a polymorphic reference to the tagged jet
Definition: JetTagInfo.h:22
Definition: Jet.py:1
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

template<class REF >
LeptonMap reco::TemplatedSoftLeptonTagInfo< REF >::m_leptons
private

Definition at line 150 of file TemplatedSoftLeptonTagInfo.h.