CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes
IPProducerHelpers::FromJTA Class Reference

#include <IPProducer.h>

Public Member Functions

 FromJTA (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
std::vector< reco::JTATagInfomakeBaseVector (const edm::Event &iEvent)
 
reco::TrackRefVector tracks (const reco::JTATagInfo &it)
 

Public Attributes

edm::EDGetTokenT< reco::JetTracksAssociationCollectiontoken_associator
 

Detailed Description

Definition at line 60 of file IPProducer.h.

Constructor & Destructor Documentation

◆ FromJTA()

IPProducerHelpers::FromJTA::FromJTA ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 62 of file IPProducer.h.

Member Function Documentation

◆ makeBaseVector()

std::vector<reco::JTATagInfo> IPProducerHelpers::FromJTA::makeBaseVector ( const edm::Event iEvent)
inline

Definition at line 66 of file IPProducer.h.

66  {
68  iEvent.getByToken(token_associator, jetTracksAssociation);
69  std::vector<reco::JTATagInfo> bases;
70  size_t i = 0;
71  for (reco::JetTracksAssociationCollection::const_iterator it = jetTracksAssociation->begin();
72  it != jetTracksAssociation->end();
73  it++, i++) {
74  edm::Ref<reco::JetTracksAssociationCollection> jtaRef(jetTracksAssociation, i);
75  bases.push_back(reco::JTATagInfo(jtaRef));
76  }
77  return bases;
78  }

References edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::begin(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::end(), mps_fire::i, iEvent, and token_associator.

◆ tracks()

reco::TrackRefVector IPProducerHelpers::FromJTA::tracks ( const reco::JTATagInfo it)
inline

Definition at line 65 of file IPProducer.h.

65 { return it.tracks(); }

References reco::JTATagInfo::tracks().

Member Data Documentation

◆ token_associator

edm::EDGetTokenT<reco::JetTracksAssociationCollection> IPProducerHelpers::FromJTA::token_associator

Definition at line 80 of file IPProducer.h.

Referenced by makeBaseVector().

reco::JTATagInfo::tracks
TrackRefVector tracks(void) const override
returns a list of tracks associated to the jet
Definition: JTATagInfo.h:20
mps_fire.i
i
Definition: mps_fire.py:428
edm::Handle
Definition: AssociativeIterator.h:50
edm::Ref
Definition: AssociativeIterator.h:58
edm::AssociationVector::begin
const_iterator begin() const
Definition: AssociationVector.h:108
IPProducerHelpers::FromJTA::token_associator
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:80
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::AssociationVector::end
const_iterator end() const
Definition: AssociationVector.h:109
edm::AssociationVector
Definition: AssociationVector.h:67
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::AssociationVector::const_iterator
transient_vector_type::const_iterator const_iterator
Definition: AssociationVector.h:106
reco::JTATagInfo
Definition: JTATagInfo.h:10
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15