CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
L1GTObjectBoardWriter Class Reference
Inheritance diagram for L1GTObjectBoardWriter:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 L1GTObjectBoardWriter (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Types

enum  BufferType { INPUT, OUTPUT }
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void endJob () override
 

Private Attributes

demo::BoardDataWriter boardDataWriter_
 
const BufferType bufferFileType_
 
const edm::EDGetTokenT< TkElectronCollectioncl2ElectronToken_
 
const edm::EDGetTokenT< std::vector< EtSum > > cl2EtSumToken_
 
const edm::EDGetTokenT< std::vector< EtSum > > cl2HtSumToken_
 
const edm::EDGetTokenT< PFJetCollectioncl2JetSC4Token_
 
const edm::EDGetTokenT< PFJetCollectioncl2JetSC8Token_
 
const edm::EDGetTokenT< TkEmCollectioncl2PhotonToken_
 
const edm::EDGetTokenT< PFTauCollectioncl2TauToken_
 
unsigned int eventCounter_
 
const edm::EDGetTokenT< SAMuonCollectiongmtSaDisplacedMuonToken_
 
const edm::EDGetTokenT< SAMuonCollectiongmtSaPromptMuonToken_
 
const edm::EDGetTokenT< TrackerMuonCollectiongmtTkMuonToken_
 
const edm::EDGetTokenT< std::vector< EtSum > > gttDisplacedHtSumToken_
 
const edm::EDGetTokenT< TkJetWordCollectiongttDisplacedJetToken_
 
const edm::EDGetTokenT< std::vector< EtSum > > gttEtSumToken_
 
const edm::EDGetTokenT< VertexWordCollectiongttPrimaryVertexToken_
 
const edm::EDGetTokenT< std::vector< EtSum > > gttPromptHtSumToken_
 
const edm::EDGetTokenT< TkJetWordCollectiongttPromptJetToken_
 
unsigned int maxEvents_
 
std::unordered_map< std::string, std::size_t > numChannels_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 49 of file L1GTObjectBoardWriter.cc.

Member Enumeration Documentation

◆ BufferType

Constructor & Destructor Documentation

◆ L1GTObjectBoardWriter()

L1GTObjectBoardWriter::L1GTObjectBoardWriter ( const edm::ParameterSet config)
explicit

Definition at line 121 of file L1GTObjectBoardWriter.cc.

References AVAILABLE_COLLECTIONS, bufferFileType_, ewkTauDQM_cfi::channels, edm::ParameterSet::getUntrackedParameter(), mps_fire::i, INPUT, mergeVDriftHistosByStation::name, and numChannels_.

122  : bufferFileType_(config.getUntrackedParameter<std::string>("bufferFileType") == "input" ? INPUT : OUTPUT),
123  eventCounter_(0),
124  maxEvents_(config.getUntrackedParameter<unsigned int>("maxEvents")),
125  numChannels_(),
127  demo::parseFileFormat(config.getUntrackedParameter<std::string>("patternFormat")),
128  config.getUntrackedParameter<std::string>("filename"),
129  config.getUntrackedParameter<std::string>("fileExtension"),
130  9,
131  1,
132  config.getUntrackedParameter<unsigned int>("maxFrames"),
133  [&]() {
134  if (bufferFileType_ == INPUT) {
135  const edm::ParameterSet& iChannels = config.getUntrackedParameterSet("InputChannels");
136  demo::BoardDataWriter::ChannelMap_t channelMap;
137 
138  channelMap.insert(
139  {{"GCT", 1},
140  {{6, 0},
141  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GCT_1"))}});
142  channelMap.insert(
143  {{"GMT", 1},
144  {{18, 0},
145  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GMT_1"))}});
146  channelMap.insert(
147  {{"GTT", 1},
148  {{6, 0},
149  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GTT_1"))}});
150  channelMap.insert(
151  {{"GTT", 2},
152  {{6, 0},
153  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GTT_2"))}});
154  channelMap.insert(
155  {{"GTT", 3},
156  {{6, 0},
157  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GTT_3"))}});
158  channelMap.insert(
159  {{"GTT", 4},
160  {{6, 0},
161  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("GTT_4"))}});
162  channelMap.insert(
163  {{"CL2", 1},
164  {{6, 0},
165  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("CL2_1"))}});
166  channelMap.insert(
167  {{"CL2", 2},
168  {{6, 0},
169  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("CL2_2"))}});
170  channelMap.insert(
171  {{"CL2", 3},
172  {{6, 0},
173  vconvert<std::size_t>(iChannels.getUntrackedParameter<std::vector<unsigned int>>("CL2_3"))}});
174 
175  return channelMap;
176  } else {
177  const edm::ParameterSet& oChannels = config.getUntrackedParameterSet("OutputChannels");
178  demo::BoardDataWriter::ChannelMap_t channelMap;
179  for (const char* name : AVAILABLE_COLLECTIONS) {
180  std::vector<unsigned int> channels = oChannels.getUntrackedParameter<std::vector<unsigned int>>(name);
181  for (std::size_t i = 0; i < channels.size(); i++) {
182  channelMap.insert({{name, i}, {{1, 0}, {channels.at(i)}}});
183  }
184  numChannels_.insert({name, channels.size()});
185  }
186  return channelMap;
187  }
188  }()),
189  gttPromptJetToken_(consumes<TkJetWordCollection>(config.getUntrackedParameter<edm::InputTag>("GTTPromptJets"))),
191  consumes<TkJetWordCollection>(config.getUntrackedParameter<edm::InputTag>("GTTDisplacedJets"))),
192  gttPromptHtSumToken_(consumes<std::vector<EtSum>>(config.getUntrackedParameter<edm::InputTag>("GTTPromptHtSum"))),
194  consumes<std::vector<EtSum>>(config.getUntrackedParameter<edm::InputTag>("GTTDisplacedHtSum"))),
195  gttEtSumToken_(consumes<std::vector<EtSum>>(config.getUntrackedParameter<edm::InputTag>("GTTEtSum"))),
197  consumes<VertexWordCollection>(config.getUntrackedParameter<edm::InputTag>("GTTPrimaryVert"))),
199  consumes<SAMuonCollection>(config.getUntrackedParameter<edm::InputTag>("GMTSaPromptMuons"))),
201  consumes<SAMuonCollection>(config.getUntrackedParameter<edm::InputTag>("GMTSaDisplacedMuons"))),
202  gmtTkMuonToken_(consumes<TrackerMuonCollection>(config.getUntrackedParameter<edm::InputTag>("GMTTkMuons"))),
203  cl2JetSC4Token_(consumes<PFJetCollection>(config.getUntrackedParameter<edm::InputTag>("CL2JetsSC4"))),
204  cl2JetSC8Token_(consumes<PFJetCollection>(config.getUntrackedParameter<edm::InputTag>("CL2JetsSC8"))),
205  cl2PhotonToken_(consumes<TkEmCollection>(config.getUntrackedParameter<edm::InputTag>("CL2Photons"))),
206  cl2ElectronToken_(consumes<TkElectronCollection>(config.getUntrackedParameter<edm::InputTag>("CL2Electrons"))),
207  cl2TauToken_(consumes<PFTauCollection>(config.getUntrackedParameter<edm::InputTag>("CL2Taus"))),
208  cl2EtSumToken_(consumes<std::vector<EtSum>>(config.getUntrackedParameter<edm::InputTag>("CL2EtSum"))),
209  cl2HtSumToken_(consumes<std::vector<EtSum>>(config.getUntrackedParameter<edm::InputTag>("CL2HtSum"))) {}
const edm::EDGetTokenT< std::vector< EtSum > > gttPromptHtSumToken_
const edm::EDGetTokenT< PFJetCollection > cl2JetSC8Token_
const edm::EDGetTokenT< std::vector< EtSum > > gttDisplacedHtSumToken_
FileFormat parseFileFormat(const std::string &)
Definition: utilities.cc:73
Definition: config.py:1
const edm::EDGetTokenT< VertexWordCollection > gttPrimaryVertexToken_
const edm::EDGetTokenT< TkJetWordCollection > gttPromptJetToken_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EDGetTokenT< std::vector< EtSum > > cl2EtSumToken_
const edm::EDGetTokenT< TkElectronCollection > cl2ElectronToken_
const BufferType bufferFileType_
const edm::EDGetTokenT< std::vector< EtSum > > gttEtSumToken_
const edm::EDGetTokenT< TrackerMuonCollection > gmtTkMuonToken_
const edm::EDGetTokenT< TkEmCollection > cl2PhotonToken_
const edm::EDGetTokenT< PFJetCollection > cl2JetSC4Token_
std::unordered_map< std::string, std::size_t > numChannels_
const edm::EDGetTokenT< PFTauCollection > cl2TauToken_
const edm::EDGetTokenT< SAMuonCollection > gmtSaDisplacedMuonToken_
const edm::EDGetTokenT< TkJetWordCollection > gttDisplacedJetToken_
const edm::EDGetTokenT< std::vector< EtSum > > cl2HtSumToken_
demo::BoardDataWriter boardDataWriter_
const edm::EDGetTokenT< SAMuonCollection > gmtSaPromptMuonToken_

Member Function Documentation

◆ analyze()

void L1GTObjectBoardWriter::analyze ( const edm::Event event,
const edm::EventSetup  
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 316 of file L1GTObjectBoardWriter.cc.

References l1t::demo::BoardDataWriter::addEvent(), AVAILABLE_COLLECTIONS, boardDataWriter_, bufferFileType_, cl2ElectronToken_, cl2EtSumToken_, cl2HtSumToken_, cl2JetSC4Token_, cl2JetSC8Token_, cl2PhotonToken_, cl2TauToken_, data, eventCounter_, l1t::demo::BoardDataWriter::flush(), gmtSaDisplacedMuonToken_, gmtSaPromptMuonToken_, gmtTkMuons_cfi::gmtTkMuons, gmtTkMuonToken_, gttDisplacedHtSumToken_, gttDisplacedJetToken_, gttEtSumToken_, gttPrimaryVertexToken_, gttPromptHtSumToken_, gttPromptJetToken_, mps_fire::i, INPUT, dqmiolumiharvest::j, maxEvents_, mergeVDriftHistosByStation::name, numChannels_, packCollection(), and AlCaHLTBitMon_QueryRunRegistry::string.

316  {
317  const TkJetWordCollection& gttPromptJets = event.get(gttPromptJetToken_);
318  const TkJetWordCollection& gttDisplacedJets = event.get(gttDisplacedJetToken_);
319  const std::vector<EtSum>& gttPromptHtSum = event.get(gttPromptHtSumToken_);
320  const std::vector<EtSum>& gttDisplacedHtSum = event.get(gttDisplacedHtSumToken_);
321  const std::vector<EtSum>& gttEtSum = event.get(gttEtSumToken_);
322  const VertexWordCollection& gttPrimaryVertices = event.get(gttPrimaryVertexToken_);
323  const SAMuonCollection& gmtSaPromptMuons = event.get(gmtSaPromptMuonToken_);
324  const SAMuonCollection& gmtSaDisplacedMuons = event.get(gmtSaDisplacedMuonToken_);
326  const PFJetCollection& cl2JetsSC4 = event.get(cl2JetSC4Token_);
327  const PFJetCollection& cl2JetsSC8 = event.get(cl2JetSC8Token_);
328  const TkEmCollection& cl2Photons = event.get(cl2PhotonToken_);
329  const TkElectronCollection& cl2Electrons = event.get(cl2ElectronToken_);
330  const PFTauCollection& cl2Taus = event.get(cl2TauToken_);
331  const std::vector<EtSum>& cl2EtSum = event.get(cl2EtSumToken_);
332  const std::vector<EtSum>& cl2HtSum = event.get(cl2HtSumToken_);
333 
334  if (bufferFileType_ == INPUT) {
336  demo::EventData{{{{"GTT", 1},
337  packCollection(gttPromptJets) + packCollection(gttDisplacedJets) +
338  packCollection<EtSum, P2GTCandidate::GTTPromptHtSum>(gttPromptHtSum) +
339  packCollection<EtSum, P2GTCandidate::GTTDisplacedHtSum>(gttDisplacedHtSum) +
340  packCollection<EtSum, P2GTCandidate::GTTEtSum>(gttEtSum)},
341  {{"GTT", 2}, std::vector<ap_uint<64>>(18, 0)},
342  {{"CL2", 1},
343  packCollection(cl2JetsSC4) + packCollection<EtSum, P2GTCandidate::CL2HtSum>(cl2HtSum) +
344  packCollection<EtSum, P2GTCandidate::CL2EtSum>(cl2EtSum) + packCollection(cl2JetsSC8)},
345  {{"CL2", 2}, packCollection(cl2Taus)},
346  {{"GCT", 1}, std::vector<ap_uint<64>>(50, 0)},
347  {{"GMT", 1},
348  packCollection(gmtSaPromptMuons) + packCollection(gmtSaDisplacedMuons) +
349  packCollection(gmtTkMuons) + std::vector<ap_uint<64>>(12, 0)},
350  {{"CL2", 3}, packCollection(cl2Electrons) + packCollection(cl2Photons)},
351  {{"GTT", 3}, std::vector<ap_uint<64>>(39, 0)},
352  {{"GTT", 4}, std::vector<ap_uint<64>>(36, 0) + packCollection(gttPrimaryVertices)}}});
353  } else {
354  std::map<demo::LinkId, std::vector<ap_uint<64>>> eventData;
355 
356  for (const char* name : AVAILABLE_COLLECTIONS) {
357  std::vector<ap_uint<64>> data;
358 
359  if (std::string("GTTPromptJets") == name) {
360  data = packCollection(gttPromptJets);
361  } else if (std::string("GTTDisplacedJets") == name) {
362  data = packCollection(gttDisplacedJets);
363  } else if (std::string("GTTPromptHtSum") == name) {
364  data = packCollection<EtSum, P2GTCandidate::GTTPromptHtSum>(gttPromptHtSum);
365  } else if (std::string("GTTDisplacedHtSum") == name) {
366  data = packCollection<EtSum, P2GTCandidate::GTTDisplacedHtSum>(gttDisplacedHtSum);
367  } else if (std::string("GTTEtSum") == name) {
368  data = packCollection<EtSum, P2GTCandidate::GTTEtSum>(gttEtSum);
369  } else if (std::string("GTTPrimaryVert") == name) {
370  data = packCollection(gttPrimaryVertices);
371  } else if (std::string("GMTSaPromptMuons") == name) {
372  data = packCollection(gmtSaPromptMuons);
373  } else if (std::string("GMTSaDisplacedMuons") == name) {
374  data = packCollection(gmtSaDisplacedMuons);
375  } else if (std::string("GMTTkMuons") == name) {
377  } else if (std::string("CL2JetsSC4") == name) {
378  data = packCollection(cl2JetsSC4);
379  } else if (std::string("CL2JetsSC8") == name) {
380  data = packCollection(cl2JetsSC8);
381  } else if (std::string("CL2Photons") == name) {
382  data = packCollection(cl2Photons);
383  } else if (std::string("CL2Electrons") == name) {
384  data = packCollection(cl2Electrons);
385  } else if (std::string("CL2Taus") == name) {
386  data = packCollection(cl2Taus);
387  } else if (std::string("CL2EtSum") == name) {
388  data = packCollection<EtSum, P2GTCandidate::CL2EtSum>(cl2EtSum);
389  } else if (std::string("CL2HtSum") == name) {
390  data = packCollection<EtSum, P2GTCandidate::CL2HtSum>(cl2HtSum);
391  }
392 
393  for (std::size_t i = 0; i < numChannels_.at(name); i++) {
394  for (std::size_t j = i; j < data.size(); j += numChannels_.at(name)) {
395  eventData[{name, i}].push_back(data[j]);
396  }
397 
398  while (eventData[{name, i}].size() < 9) {
399  eventData[{name, i}].push_back(0);
400  }
401  }
402  }
403 
404  boardDataWriter_.addEvent(eventData);
405  }
406 
407  eventCounter_++;
408 
409  if (maxEvents_ != 0 && eventCounter_ == maxEvents_) {
411  eventCounter_ = 0;
412  }
413 }
const edm::EDGetTokenT< std::vector< EtSum > > gttPromptHtSumToken_
std::vector< l1t::TkJetWord > TkJetWordCollection
Definition: TkJetWord.h:191
std::vector< TkElectron > TkElectronCollection
Definition: TkElectronFwd.h:16
const edm::EDGetTokenT< PFJetCollection > cl2JetSC8Token_
std::vector< l1t::PFTau > PFTauCollection
Definition: PFTau.h:90
void addEvent(const EventData &data)
const edm::EDGetTokenT< std::vector< EtSum > > gttDisplacedHtSumToken_
const edm::EDGetTokenT< VertexWordCollection > gttPrimaryVertexToken_
const edm::EDGetTokenT< TkJetWordCollection > gttPromptJetToken_
std::vector< l1t::PFJet > PFJetCollection
Definition: PFJet.h:61
const edm::EDGetTokenT< std::vector< EtSum > > cl2EtSumToken_
const edm::EDGetTokenT< TkElectronCollection > cl2ElectronToken_
std::vector< TkEm > TkEmCollection
Definition: TkEmFwd.h:17
static constexpr std::array< const char *, 27 > AVAILABLE_COLLECTIONS
std::vector< VertexWord > VertexWordCollection
Definition: VertexWord.h:197
const BufferType bufferFileType_
const edm::EDGetTokenT< std::vector< EtSum > > gttEtSumToken_
const edm::EDGetTokenT< TrackerMuonCollection > gmtTkMuonToken_
std::vector< TrackerMuon > TrackerMuonCollection
Definition: TrackerMuon.h:17
std::vector< SAMuon > SAMuonCollection
Definition: SAMuon.h:15
const edm::EDGetTokenT< TkEmCollection > cl2PhotonToken_
const edm::EDGetTokenT< PFJetCollection > cl2JetSC4Token_
std::unordered_map< std::string, std::size_t > numChannels_
const edm::EDGetTokenT< PFTauCollection > cl2TauToken_
const edm::EDGetTokenT< SAMuonCollection > gmtSaDisplacedMuonToken_
const edm::EDGetTokenT< TkJetWordCollection > gttDisplacedJetToken_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
const edm::EDGetTokenT< std::vector< EtSum > > cl2HtSumToken_
static std::vector< ap_uint< 64 > > packCollection(const std::vector< T > &collection)
demo::BoardDataWriter boardDataWriter_
const edm::EDGetTokenT< SAMuonCollection > gmtSaPromptMuonToken_
Class representing information phase-2 ATCA I/O data corresponding to a single event, with logical channel IDs (essentially string-uint pairs, e.g. tracks-0 to tracks-17).
Definition: EventData.h:28

◆ endJob()

void L1GTObjectBoardWriter::endJob ( void  )
overrideprivatevirtual

◆ fillDescriptions()

void L1GTObjectBoardWriter::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 417 of file L1GTObjectBoardWriter.cc.

References edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), AVAILABLE_COLLECTIONS, submitPVResolutionJobs::desc, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

417  {
419  desc.addUntracked<std::string>("filename");
420  desc.addUntracked<std::string>("fileExtension", "txt");
421  desc.addUntracked<unsigned int>("maxFrames", 1024);
422  desc.addUntracked<unsigned int>("maxEvents", 0);
423  desc.addUntracked<std::string>("patternFormat", "EMPv2");
424  desc.ifValue(edm::ParameterDescription<std::string>("bufferFileType", "input", false),
425  edm::allowedValues<std::string>("input", "output"));
426 
427  desc.addUntracked<edm::InputTag>("GTTPromptJets");
428  desc.addUntracked<edm::InputTag>("GTTDisplacedJets");
429  desc.addUntracked<edm::InputTag>("GTTPromptHtSum");
430  desc.addUntracked<edm::InputTag>("GTTDisplacedHtSum");
431  desc.addUntracked<edm::InputTag>("GTTEtSum");
432  desc.addUntracked<edm::InputTag>("GTTPrimaryVert");
433 
434  desc.addUntracked<edm::InputTag>("GMTSaPromptMuons");
435  desc.addUntracked<edm::InputTag>("GMTSaDisplacedMuons");
436  desc.addUntracked<edm::InputTag>("GMTTkMuons");
437 
438  desc.addUntracked<edm::InputTag>("CL2JetsSC4");
439  desc.addUntracked<edm::InputTag>("CL2JetsSC8");
440  desc.addUntracked<edm::InputTag>("CL2Photons");
441  desc.addUntracked<edm::InputTag>("CL2Electrons");
442  desc.addUntracked<edm::InputTag>("CL2Taus");
443  desc.addUntracked<edm::InputTag>("CL2EtSum");
444  desc.addUntracked<edm::InputTag>("CL2HtSum");
445 
446  edm::ParameterSetDescription inputChannelDesc;
447  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GCT_1");
448  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GMT_1");
449  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GTT_1");
450  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GTT_2");
451  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GTT_3");
452  inputChannelDesc.addUntracked<std::vector<unsigned int>>("GTT_4");
453  inputChannelDesc.addUntracked<std::vector<unsigned int>>("CL2_1");
454  inputChannelDesc.addUntracked<std::vector<unsigned int>>("CL2_2");
455  inputChannelDesc.addUntracked<std::vector<unsigned int>>("CL2_3");
456 
457  desc.addOptionalUntracked<edm::ParameterSetDescription>("InputChannels", inputChannelDesc);
458 
459  edm::ParameterSetDescription outputChannelDesc;
460  for (const char* name : AVAILABLE_COLLECTIONS) {
461  outputChannelDesc.addUntracked<std::vector<unsigned int>>(name);
462  }
463 
464  desc.addOptionalUntracked<edm::ParameterSetDescription>("OutputChannels", outputChannelDesc);
465 
466  descriptions.addDefault(desc);
467 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void addDefault(ParameterSetDescription const &psetDescription)
static constexpr std::array< const char *, 27 > AVAILABLE_COLLECTIONS

Member Data Documentation

◆ boardDataWriter_

demo::BoardDataWriter L1GTObjectBoardWriter::boardDataWriter_
private

Definition at line 65 of file L1GTObjectBoardWriter.cc.

Referenced by analyze(), and endJob().

◆ bufferFileType_

const BufferType L1GTObjectBoardWriter::bufferFileType_
private

Definition at line 61 of file L1GTObjectBoardWriter.cc.

Referenced by analyze(), and L1GTObjectBoardWriter().

◆ cl2ElectronToken_

const edm::EDGetTokenT<TkElectronCollection> L1GTObjectBoardWriter::cl2ElectronToken_
private

Definition at line 82 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2EtSumToken_

const edm::EDGetTokenT<std::vector<EtSum> > L1GTObjectBoardWriter::cl2EtSumToken_
private

Definition at line 84 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2HtSumToken_

const edm::EDGetTokenT<std::vector<EtSum> > L1GTObjectBoardWriter::cl2HtSumToken_
private

Definition at line 85 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2JetSC4Token_

const edm::EDGetTokenT<PFJetCollection> L1GTObjectBoardWriter::cl2JetSC4Token_
private

Definition at line 79 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2JetSC8Token_

const edm::EDGetTokenT<PFJetCollection> L1GTObjectBoardWriter::cl2JetSC8Token_
private

Definition at line 80 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2PhotonToken_

const edm::EDGetTokenT<TkEmCollection> L1GTObjectBoardWriter::cl2PhotonToken_
private

Definition at line 81 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ cl2TauToken_

const edm::EDGetTokenT<PFTauCollection> L1GTObjectBoardWriter::cl2TauToken_
private

Definition at line 83 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ eventCounter_

unsigned int L1GTObjectBoardWriter::eventCounter_
private

Definition at line 62 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gmtSaDisplacedMuonToken_

const edm::EDGetTokenT<SAMuonCollection> L1GTObjectBoardWriter::gmtSaDisplacedMuonToken_
private

Definition at line 76 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gmtSaPromptMuonToken_

const edm::EDGetTokenT<SAMuonCollection> L1GTObjectBoardWriter::gmtSaPromptMuonToken_
private

Definition at line 75 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gmtTkMuonToken_

const edm::EDGetTokenT<TrackerMuonCollection> L1GTObjectBoardWriter::gmtTkMuonToken_
private

Definition at line 77 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttDisplacedHtSumToken_

const edm::EDGetTokenT<std::vector<EtSum> > L1GTObjectBoardWriter::gttDisplacedHtSumToken_
private

Definition at line 71 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttDisplacedJetToken_

const edm::EDGetTokenT<TkJetWordCollection> L1GTObjectBoardWriter::gttDisplacedJetToken_
private

Definition at line 69 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttEtSumToken_

const edm::EDGetTokenT<std::vector<EtSum> > L1GTObjectBoardWriter::gttEtSumToken_
private

Definition at line 72 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttPrimaryVertexToken_

const edm::EDGetTokenT<VertexWordCollection> L1GTObjectBoardWriter::gttPrimaryVertexToken_
private

Definition at line 73 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttPromptHtSumToken_

const edm::EDGetTokenT<std::vector<EtSum> > L1GTObjectBoardWriter::gttPromptHtSumToken_
private

Definition at line 70 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ gttPromptJetToken_

const edm::EDGetTokenT<TkJetWordCollection> L1GTObjectBoardWriter::gttPromptJetToken_
private

Definition at line 68 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ maxEvents_

unsigned int L1GTObjectBoardWriter::maxEvents_
private

Definition at line 63 of file L1GTObjectBoardWriter.cc.

Referenced by analyze().

◆ numChannels_

std::unordered_map<std::string, std::size_t> L1GTObjectBoardWriter::numChannels_
private

Definition at line 64 of file L1GTObjectBoardWriter.cc.

Referenced by analyze(), and L1GTObjectBoardWriter().