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 | Static Public Member Functions | Public Attributes
EgammaHLTPhase2ExtraProducer::Tokens Struct Reference

Public Member Functions

 Tokens (const edm::ParameterSet &pset, edm::ConsumesCollector &&cc)
 

Static Public Member Functions

template<typename T >
static void setToken (edm::EDGetTokenT< T > &token, edm::ConsumesCollector &cc, const edm::ParameterSet &pset, const std::string &tagname)
 
template<typename T >
static void setToken (std::vector< edm::EDGetTokenT< T >> &tokens, edm::ConsumesCollector &cc, const edm::ParameterSet &pset, const std::string &tagname)
 
template<typename T >
static void setToken (std::vector< std::pair< edm::EDGetTokenT< T >, std::string >> &tokens, edm::ConsumesCollector &cc, const edm::ParameterSet &pset, const std::string &tagname)
 

Public Attributes

edm::EDGetTokenT
< trigger::EgammaObjectCollection
egTrigObjs
 
std::vector< std::pair
< edm::EDGetTokenT
< HGCRecHitCollection >
, std::string > > 
hgcal
 
edm::EDGetTokenT
< reco::CaloClusterCollection
hgcalLayerClusters
 
edm::EDGetTokenT
< edm::ValueMap< std::pair
< float, float > > > 
hgcalLayerClustersTime
 
edm::EDGetTokenT
< L1TrackCollection
l1Trks
 
edm::EDGetTokenT
< TTTrackAssociationMap
< Ref_Phase2TrackerDigi_ > > 
l1TrkToTrkPartMap
 
edm::EDGetTokenT
< TrackingParticleCollection
trkParts
 

Detailed Description

Definition at line 103 of file EgammaHLTPhase2ExtraProducer.cc.

Constructor & Destructor Documentation

EgammaHLTPhase2ExtraProducer::Tokens::Tokens ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  cc 
)

Definition at line 163 of file EgammaHLTPhase2ExtraProducer.cc.

References egTrigObjs, hgcal, hgcalLayerClusters, hgcalLayerClustersTime, l1Trks, l1TrkToTrkPartMap, setToken(), and trkParts.

163  {
164  setToken(egTrigObjs, cc, pset, "egTrigObjs");
165  setToken(l1Trks, cc, pset, "l1Trks");
166  setToken(trkParts, cc, pset, "trkParts");
167  setToken(l1TrkToTrkPartMap, cc, pset, "l1TrkToTrkPartMap");
168  setToken(hgcalLayerClusters, cc, pset, "hgcalLayerClusters");
169  setToken(hgcalLayerClustersTime, cc, pset, "hgcalLayerClustersTime");
170  setToken(hgcal, cc, pset, "hgcal");
171 }
edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > hgcalLayerClustersTime
edm::EDGetTokenT< L1TrackCollection > l1Trks
edm::EDGetTokenT< reco::CaloClusterCollection > hgcalLayerClusters
edm::EDGetTokenT< trigger::EgammaObjectCollection > egTrigObjs
edm::EDGetTokenT< TTTrackAssociationMap< Ref_Phase2TrackerDigi_ > > l1TrkToTrkPartMap
static void setToken(edm::EDGetTokenT< T > &token, edm::ConsumesCollector &cc, const edm::ParameterSet &pset, const std::string &tagname)
edm::EDGetTokenT< TrackingParticleCollection > trkParts
std::vector< std::pair< edm::EDGetTokenT< HGCRecHitCollection >, std::string > > hgcal

Member Function Documentation

template<typename T >
static void EgammaHLTPhase2ExtraProducer::Tokens::setToken ( edm::EDGetTokenT< T > &  token,
edm::ConsumesCollector cc,
const edm::ParameterSet pset,
const std::string &  tagname 
)
inlinestatic

Definition at line 113 of file EgammaHLTPhase2ExtraProducer.cc.

References edm::ConsumesCollector::consumes(), edm::ParameterSet::getParameter(), and createPayload::tagname.

Referenced by Tokens().

116  {
117  token = cc.consumes<T>(pset.getParameter<edm::InputTag>(tagname));
118  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
long double T
template<typename T >
static void EgammaHLTPhase2ExtraProducer::Tokens::setToken ( std::vector< edm::EDGetTokenT< T >> &  tokens,
edm::ConsumesCollector cc,
const edm::ParameterSet pset,
const std::string &  tagname 
)
inlinestatic

Definition at line 120 of file EgammaHLTPhase2ExtraProducer.cc.

References edm::ConsumesCollector::consumes(), edm::ParameterSet::getParameter(), and createPayload::tagname.

123  {
124  auto inputTags = pset.getParameter<std::vector<edm::InputTag>>(tagname);
125  tokens.resize(inputTags.size());
126  for (size_t tagNr = 0; tagNr < inputTags.size(); tagNr++) {
127  tokens[tagNr] = cc.consumes<T>(inputTags[tagNr]);
128  }
129  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
long double T
template<typename T >
static void EgammaHLTPhase2ExtraProducer::Tokens::setToken ( std::vector< std::pair< edm::EDGetTokenT< T >, std::string >> &  tokens,
edm::ConsumesCollector cc,
const edm::ParameterSet pset,
const std::string &  tagname 
)
inlinestatic

Definition at line 131 of file EgammaHLTPhase2ExtraProducer.cc.

References edm::ConsumesCollector::consumes(), edm::ParameterSet::getParameter(), label, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::tagname, and unpackBuffers-CaloStage2::token.

134  {
135  const auto& collectionPSets = pset.getParameter<std::vector<edm::ParameterSet>>(tagname);
136  for (const auto& collPSet : collectionPSets) {
137  edm::EDGetTokenT<T> token = cc.consumes<T>(collPSet.getParameter<edm::InputTag>("src"));
138  std::string label = collPSet.getParameter<std::string>("label");
139  tokens.emplace_back(std::make_pair(token, label));
140  }
141  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
char const * label
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
long double T

Member Data Documentation

edm::EDGetTokenT<trigger::EgammaObjectCollection> EgammaHLTPhase2ExtraProducer::Tokens::egTrigObjs
std::vector<std::pair<edm::EDGetTokenT<HGCRecHitCollection>, std::string> > EgammaHLTPhase2ExtraProducer::Tokens::hgcal
edm::EDGetTokenT<reco::CaloClusterCollection> EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClusters
edm::EDGetTokenT<edm::ValueMap<std::pair<float, float> > > EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClustersTime
edm::EDGetTokenT<L1TrackCollection> EgammaHLTPhase2ExtraProducer::Tokens::l1Trks
edm::EDGetTokenT<TTTrackAssociationMap<Ref_Phase2TrackerDigi_> > EgammaHLTPhase2ExtraProducer::Tokens::l1TrkToTrkPartMap
edm::EDGetTokenT<TrackingParticleCollection> EgammaHLTPhase2ExtraProducer::Tokens::trkParts