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 59 of file IPProducer.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file IPProducer.h.

62  {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:81

Member Function Documentation

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

Definition at line 67 of file IPProducer.h.

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

67  {
69  iEvent.getByToken(token_associator, jetTracksAssociation);
70  std::vector<reco::JTATagInfo> bases;
71  size_t i = 0;
73  jetTracksAssociation->begin();
74  it != jetTracksAssociation->end(); it++, i++) {
75  edm::Ref<reco::JetTracksAssociationCollection> jtaRef(jetTracksAssociation, i);
76  bases.push_back(reco::JTATagInfo(jtaRef));
77  }
78  return bases;
79  }
transient_vector_type::const_iterator const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
const_iterator end() const
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:81
const_iterator begin() const
reco::TrackRefVector IPProducerHelpers::FromJTA::tracks ( const reco::JTATagInfo it)
inline

Definition at line 63 of file IPProducer.h.

References reco::JTATagInfo::tracks().

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

Member Data Documentation

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

Definition at line 81 of file IPProducer.h.

Referenced by makeBaseVector().