CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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::JetTracksAssociationCollection
token_associator
 

Detailed Description

Definition at line 60 of file IPProducer.h.

Constructor & Destructor Documentation

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)
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:80
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

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

Definition at line 66 of file IPProducer.h.

References edm::Event::getByToken(), mps_fire::i, 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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
edm::EDGetTokenT< reco::JetTracksAssociationCollection > token_associator
Definition: IPProducer.h:80
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

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

Definition at line 80 of file IPProducer.h.

Referenced by makeBaseVector().