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 106 of file EgammaHLTPhase2ExtraProducer.cc.

Constructor & Destructor Documentation

◆ Tokens()

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

Definition at line 164 of file EgammaHLTPhase2ExtraProducer.cc.

164  {
165  setToken(egTrigObjs, cc, pset, "egTrigObjs");
166  setToken(l1Trks, cc, pset, "l1Trks");
167  setToken(trkParts, cc, pset, "trkParts");
168  setToken(l1TrkToTrkPartMap, cc, pset, "l1TrkToTrkPartMap");
169  setToken(hgcalLayerClusters, cc, pset, "hgcalLayerClusters");
170  setToken(hgcalLayerClustersTime, cc, pset, "hgcalLayerClustersTime");
171  setToken(hgcal, cc, pset, "hgcal");
172 }

References egTrigObjs, hgcalLayerClusters, hgcalLayerClustersTime, l1Trks, l1TrkToTrkPartMap, muonDTDigis_cfi::pset, setToken(), and 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

Definition at line 116 of file EgammaHLTPhase2ExtraProducer.cc.

119  {
120  token = cc.consumes<T>(pset.getParameter<edm::InputTag>(tagname));
121  }

References muonDTDigis_cfi::pset, createPayload::tagname, and unpackBuffers-CaloStage2::token.

Referenced by Tokens().

◆ 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 123 of file EgammaHLTPhase2ExtraProducer.cc.

126  {
127  auto inputTags = pset.getParameter<std::vector<edm::InputTag>>(tagname);
128  tokens.resize(inputTags.size());
129  for (size_t tagNr = 0; tagNr < inputTags.size(); tagNr++) {
130  tokens[tagNr] = cc.consumes<T>(inputTags[tagNr]);
131  }
132  }

References HLTMuonOfflineAnalyzer_cfi::inputTags, muonDTDigis_cfi::pset, and createPayload::tagname.

◆ 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 134 of file EgammaHLTPhase2ExtraProducer.cc.

137  {
138  const auto& collectionPSets = pset.getParameter<std::vector<edm::ParameterSet>>(tagname);
139  for (const auto& collPSet : collectionPSets) {
140  edm::EDGetTokenT<T> token = cc.consumes<T>(collPSet.getParameter<edm::InputTag>("src"));
141  std::string label = collPSet.getParameter<std::string>("label");
142  tokens.emplace_back(std::make_pair(token, label));
143  }
144  }

References label, muonDTDigis_cfi::pset, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::tagname, and unpackBuffers-CaloStage2::token.

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
edm::EDGetTokenT
Definition: EDGetToken.h:33
EgammaHLTPhase2ExtraProducer::Tokens::l1TrkToTrkPartMap
edm::EDGetTokenT< TTTrackAssociationMap< Ref_Phase2TrackerDigi_ > > l1TrkToTrkPartMap
Definition: EgammaHLTPhase2ExtraProducer.cc:110
hgcal
Definition: EgammaPCAHelper.h:31
HLTMuonOfflineAnalyzer_cfi.inputTags
inputTags
All input tags are specified in this pset for convenience.
Definition: HLTMuonOfflineAnalyzer_cfi.py:82
EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClusters
edm::EDGetTokenT< reco::CaloClusterCollection > hgcalLayerClusters
Definition: EgammaHLTPhase2ExtraProducer.cc:111
EgammaHLTPhase2ExtraProducer::Tokens::hgcalLayerClustersTime
edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > hgcalLayerClustersTime
Definition: EgammaHLTPhase2ExtraProducer.cc:112
cc
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
createPayload.tagname
tagname
Definition: createPayload.py:183
EgammaHLTPhase2ExtraProducer::Tokens::setToken
static void setToken(edm::EDGetTokenT< T > &token, edm::ConsumesCollector &cc, const edm::ParameterSet &pset, const std::string &tagname)
Definition: EgammaHLTPhase2ExtraProducer.cc:116
EgammaHLTPhase2ExtraProducer::Tokens::trkParts
edm::EDGetTokenT< TrackingParticleCollection > trkParts
Definition: EgammaHLTPhase2ExtraProducer.cc:109
EgammaHLTPhase2ExtraProducer::Tokens::l1Trks
edm::EDGetTokenT< L1TrackCollection > l1Trks
Definition: EgammaHLTPhase2ExtraProducer.cc:108
T
long double T
Definition: Basic3DVectorLD.h:48
EgammaHLTPhase2ExtraProducer::Tokens::egTrigObjs
edm::EDGetTokenT< trigger::EgammaObjectCollection > egTrigObjs
Definition: EgammaHLTPhase2ExtraProducer.cc:107
edm::InputTag
Definition: InputTag.h:15
label
const char * label
Definition: PFTauDecayModeTools.cc:11
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316