CMS 3D CMS Logo

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::EgammaObjectCollectionegTrigObjs
 
std::vector< std::pair< edm::EDGetTokenT< HGCRecHitCollection >, std::string > > hgcal
 
edm::EDGetTokenT< reco::CaloClusterCollectionhgcalLayerClusters
 
edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > hgcalLayerClustersTime
 
edm::EDGetTokenT< L1TrackCollectionl1Trks
 
edm::EDGetTokenT< TTTrackAssociationMap< Ref_Phase2TrackerDigi_ > > l1TrkToTrkPartMap
 
edm::EDGetTokenT< TrackingParticleCollectiontrkParts
 

Detailed Description

Definition at line 103 of file EgammaHLTPhase2ExtraProducer.cc.

Constructor & Destructor Documentation

◆ Tokens()

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

Definition at line 163 of file EgammaHLTPhase2ExtraProducer.cc.

References gpuPixelDoublets::cc, egTrigObjs, hgcalLayerClusters, hgcalLayerClustersTime, l1Trks, l1TrkToTrkPartMap, muonDTDigis_cfi::pset, 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 }
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
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

Member Function Documentation

◆ setToken() [1/3]

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

◆ setToken() [2/3]

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 gpuPixelDoublets::cc, HLTMuonOfflineAnalyzer_cfi::inputTags, muonDTDigis_cfi::pset, 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  }
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
inputTags
All input tags are specified in this pset for convenience.
long double T

◆ setToken() [3/3]

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 gpuPixelDoublets::cc, label, muonDTDigis_cfi::pset, 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  }
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
char const * label
long double T

Member Data Documentation

◆ egTrigObjs

edm::EDGetTokenT<trigger::EgammaObjectCollection> EgammaHLTPhase2ExtraProducer::Tokens::egTrigObjs

◆ hgcal

std::vector<std::pair<edm::EDGetTokenT<HGCRecHitCollection>, std::string> > EgammaHLTPhase2ExtraProducer::Tokens::hgcal

◆ hgcalLayerClusters

edm::EDGetTokenT<reco::CaloClusterCollection> EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClusters

◆ hgcalLayerClustersTime

edm::EDGetTokenT<edm::ValueMap<std::pair<float, float> > > EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClustersTime

◆ l1Trks

edm::EDGetTokenT<L1TrackCollection> EgammaHLTPhase2ExtraProducer::Tokens::l1Trks

◆ l1TrkToTrkPartMap

edm::EDGetTokenT<TTTrackAssociationMap<Ref_Phase2TrackerDigi_> > EgammaHLTPhase2ExtraProducer::Tokens::l1TrkToTrkPartMap

◆ trkParts

edm::EDGetTokenT<TrackingParticleCollection> EgammaHLTPhase2ExtraProducer::Tokens::trkParts