CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 (edm::Event &iEvent)
 
reco::TrackRefVector tracks (edm::Event &, const reco::JTATagInfo &it)
 

Public Attributes

edm::EDGetTokenT
< 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.

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

Member Function Documentation

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

Definition at line 68 of file IPProducer.h.

References edm::Event::getByToken(), and i.

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

Definition at line 64 of file IPProducer.h.

References reco::JTATagInfo::tracks().

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

Member Data Documentation

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

Definition at line 82 of file IPProducer.h.