CMS 3D CMS Logo

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.

EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:80

Member Function Documentation

◆ makeBaseVector()

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

Definition at line 66 of file IPProducer.h.

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

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  }
transient_vector_type::const_iterator const_iterator
const_iterator begin() const
int iEvent
Definition: GenABIO.cc:224
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:80
const_iterator end() const

◆ tracks()

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

Definition at line 65 of file IPProducer.h.

References reco::JTATagInfo::tracks().

65 { return it.tracks(); }
TrackRefVector tracks(void) const override
returns a list of tracks associated to the jet
Definition: JTATagInfo.h:20

Member Data Documentation

◆ token_associator

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

Definition at line 80 of file IPProducer.h.

Referenced by makeBaseVector().