CMS 3D CMS Logo

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

Public Member Functions

 L1GTOutputObjectWriter (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 &descriptions)
 
- 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 Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void endJob () override
 
template<typename T >
std::vector< std::unique_ptr< L1TGT_BaseInterface > > fillCollection (const edm::Event &event, const edm::EDGetTokenT< P2GTCandidateCollection > &token) const
 

Private Attributes

l1t::demo::BoardDataWriter boardDataWriter_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2ElectronsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2EtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2HtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2JetsSc4Token_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2JetsSc8Token_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2PhotonsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectioncl2TausToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctEtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctHtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctIsoEgToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctJetsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctNonIsoEgToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongctTausToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongmtSaDisplacedMuonsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongmtSaPromptMuonsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongmtTkMuonsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongmtTopoToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttBsCandidatesToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttDisplacedHtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttDisplacedJetsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttEtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttHadronicTausToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttPhiCandidatesToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttPrimaryVertToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttPromptHtSumToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttPromptJetsToken_
 
const edm::EDGetTokenT< P2GTCandidateCollectiongttRhoCandidatesToken_
 
const std::array< std::tuple< const char *, std::size_t, std::size_t >, 27 > outputChannelDef_
 

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 89 of file L1GTOutputObjectWriter.cc.

Constructor & Destructor Documentation

◆ L1GTOutputObjectWriter()

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

Definition at line 133 of file L1GTOutputObjectWriter.cc.

References mps_fire::end, mps_fire::i, Skims_PA_cff::name, and outputChannelDef_.

134  : gctNonIsoEgToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTNonIsoEg"))),
135  gctIsoEgToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTIsoEg"))),
136  gctJetsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTJets"))),
137  gctTausToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTTaus"))),
138  gctHtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTHtSum"))),
139  gctEtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GCTEtSum"))),
140  gmtSaPromptMuonsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GMTSaPromptMuons"))),
142  consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GMTSaDisplacedMuons"))),
143  gmtTkMuonsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GMTTkMuons"))),
144  gmtTopoToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GMTTopo"))),
145  gttPromptJetsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTPromptJets"))),
146  gttDisplacedJetsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTDisplacedJets"))),
147  gttPhiCandidatesToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTPhiCandidates"))),
148  gttRhoCandidatesToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTRhoCandidates"))),
149  gttBsCandidatesToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTBsCandidates"))),
150  gttHadronicTausToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTHadronicTaus"))),
151  gttPrimaryVertToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTPrimaryVert"))),
152  gttPromptHtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTPromptHtSum"))),
154  consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTDisplacedHtSum"))),
155  gttEtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("GTTEtSum"))),
156  cl2JetsSc4Token_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2JetsSC4"))),
157  cl2JetsSc8Token_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2JetsSC8"))),
158  cl2TausToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2Taus"))),
159  cl2ElectronsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2Electrons"))),
160  cl2PhotonsToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2Photons"))),
161  cl2HtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2HtSum"))),
162  cl2EtSumToken_(consumes<P2GTCandidateCollection>(config.getParameter<edm::InputTag>("CL2EtSum"))),
163  outputChannelDef_(config.getParameter<std::string>("platform") == "VU13P" ? OUTPUT_CHANNELS_VU13P
165  boardDataWriter_(l1t::demo::parseFileFormat(config.getParameter<std::string>("patternFormat")),
166  config.getParameter<std::string>("outputFilename"),
167  config.getParameter<std::string>("outputFileExtension"),
168  9,
169  1,
170  config.getParameter<unsigned int>("maxLines"),
171  [&]() {
172  demo::BoardDataWriter::ChannelMap_t channelMap;
173  for (const auto& [name, start, end] : outputChannelDef_) {
174  for (std::size_t i = start; i < end; i++) {
175  channelMap.insert({{name, i - start}, {{1, 0}, {i}}});
176  }
177  }
178  return channelMap;
179  }()) {}
const edm::EDGetTokenT< P2GTCandidateCollection > gttPromptHtSumToken_
static constexpr std::array< std::tuple< const char *, std::size_t, std::size_t >, 27 > OUTPUT_CHANNELS_VU13P
const edm::EDGetTokenT< P2GTCandidateCollection > gttEtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2HtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctEtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtSaDisplacedMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttBsCandidatesToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttDisplacedJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2TausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttDisplacedHtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2EtSumToken_
l1t::demo::BoardDataWriter boardDataWriter_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtTkMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctTausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctNonIsoEgToken_
FileFormat parseFileFormat(const std::string &)
Definition: utilities.cc:73
Definition: config.py:1
const edm::EDGetTokenT< P2GTCandidateCollection > cl2ElectronsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2JetsSc4Token_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2JetsSc8Token_
const edm::EDGetTokenT< P2GTCandidateCollection > gctIsoEgToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttPromptJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctHtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttPhiCandidatesToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttHadronicTausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtSaPromptMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2PhotonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtTopoToken_
const std::array< std::tuple< const char *, std::size_t, std::size_t >, 27 > outputChannelDef_
const edm::EDGetTokenT< P2GTCandidateCollection > gttRhoCandidatesToken_
static constexpr std::array< std::tuple< const char *, std::size_t, std::size_t >, 27 > OUTPUT_CHANNELS_VU9P
const edm::EDGetTokenT< P2GTCandidateCollection > gttPrimaryVertToken_

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 269 of file L1GTOutputObjectWriter.cc.

References l1t::demo::BoardDataWriter::addEvent(), boardDataWriter_, cl2ElectronsToken_, cl2EtSumToken_, cl2HtSumToken_, cl2JetsSc4Token_, cl2JetsSc8Token_, cl2PhotonsToken_, cl2TausToken_, data, mps_fire::end, fillCollection(), gctEtSumToken_, gctHtSumToken_, gctIsoEgToken_, gctJetsToken_, gctNonIsoEgToken_, gctTausToken_, gmtSaDisplacedMuonsToken_, gmtSaPromptMuonsToken_, gmtTkMuonsToken_, gmtTopoToken_, gttBsCandidatesToken_, gttDisplacedHtSumToken_, gttDisplacedJetsToken_, gttEtSumToken_, gttHadronicTausToken_, gttPhiCandidatesToken_, gttPrimaryVertToken_, gttPromptHtSumToken_, gttPromptJetsToken_, gttRhoCandidatesToken_, mps_fire::i, dqmiolumiharvest::j, Skims_PA_cff::name, outputChannelDef_, command_line::start, and vpack().

269  {
270  std::map<std::string, std::vector<std::unique_ptr<L1TGT_BaseInterface>>> outputObjects;
271 
272  outputObjects.emplace("GCTNonIsoEg", fillCollection<L1TGT_Common3Vector<64>>(event, gctNonIsoEgToken_));
273  outputObjects.emplace("GCTIsoEg", fillCollection<L1TGT_Common3Vector<64>>(event, gctIsoEgToken_));
274  outputObjects.emplace("GCTJets", fillCollection<L1TGT_Common3Vector<64>>(event, gctJetsToken_));
275  outputObjects.emplace("GCTTaus", fillCollection<L1TGT_GCT_tau6p6>(event, gctTausToken_));
276  outputObjects.emplace("GCTHtSum", fillCollection<L1TGT_CommonSum>(event, gctHtSumToken_));
277  outputObjects.emplace("GCTEtSum", fillCollection<L1TGT_CommonSum>(event, gctEtSumToken_));
278  outputObjects.emplace("GMTSaPromptMuons",
279  fillCollection<L1TGT_GMT_PromptDisplacedMuon>(event, gmtSaPromptMuonsToken_));
280  outputObjects.emplace("GMTSaDisplacedMuons",
281  fillCollection<L1TGT_GMT_PromptDisplacedMuon>(event, gmtSaDisplacedMuonsToken_));
282  outputObjects.emplace("GMTTkMuons", fillCollection<L1TGT_GMT_TrackMatchedmuon>(event, gmtTkMuonsToken_));
283  outputObjects.emplace("GMTTopo", fillCollection<L1TGT_GMT_TopoObject>(event, gmtTopoToken_));
284  outputObjects.emplace("GTTPromptJets", fillCollection<L1TGT_GTT_PromptJet>(event, gttPromptJetsToken_));
285  outputObjects.emplace("GTTDisplacedJets", fillCollection<L1TGT_GTT_DisplacedJet>(event, gttDisplacedJetsToken_));
286  outputObjects.emplace("GTTPhiCandidates", fillCollection<L1TGT_GTT_LightMeson>(event, gttPhiCandidatesToken_));
287  outputObjects.emplace("GTTRhoCandidates", fillCollection<L1TGT_GTT_LightMeson>(event, gttRhoCandidatesToken_));
288  outputObjects.emplace("GTTBsCandidates", fillCollection<L1TGT_GTT_LightMeson>(event, gttBsCandidatesToken_));
289  outputObjects.emplace("GTTHadronicTaus", fillCollection<L1TGT_GTT_HadronicTau>(event, gttHadronicTausToken_));
290  outputObjects.emplace("GTTPrimaryVert", fillCollection<L1TGT_GTT_PrimaryVert>(event, gttPrimaryVertToken_));
291  outputObjects.emplace("GTTPromptHtSum", fillCollection<L1TGT_CommonSum>(event, gttPromptHtSumToken_));
292  outputObjects.emplace("GTTDisplacedHtSum", fillCollection<L1TGT_CommonSum>(event, gttDisplacedHtSumToken_));
293  outputObjects.emplace("GTTEtSum", fillCollection<L1TGT_CommonSum>(event, gttEtSumToken_));
294  outputObjects.emplace("CL2JetsSC4", fillCollection<L1TGT_CL2_Jet>(event, cl2JetsSc4Token_));
295  outputObjects.emplace("CL2JetsSC8", fillCollection<L1TGT_CL2_Jet>(event, cl2JetsSc8Token_));
296  outputObjects.emplace("CL2Taus", fillCollection<L1TGT_CL2_Tau>(event, cl2TausToken_));
297  outputObjects.emplace("CL2Electrons", fillCollection<L1TGT_CL2_Electron>(event, cl2ElectronsToken_));
298  outputObjects.emplace("CL2Photons", fillCollection<L1TGT_CL2_Photon>(event, cl2PhotonsToken_));
299  outputObjects.emplace("CL2HtSum", fillCollection<L1TGT_CommonSum>(event, cl2HtSumToken_));
300  outputObjects.emplace("CL2EtSum", fillCollection<L1TGT_CommonSum>(event, cl2EtSumToken_));
301 
302  std::map<demo::LinkId, std::vector<ap_uint<64>>> eventData;
303 
304  for (const auto& [name, start, end] : outputChannelDef_) {
305  std::vector<ap_uint<64>> data = vpack(outputObjects[name]);
306  std::size_t numChannels = end - start;
307  for (std::size_t i = start; i < end; i++) {
308  for (std::size_t j = i - start; j < data.size(); j += numChannels) {
309  eventData[{name, i - start}].push_back(data[j]);
310  }
311 
312  while (eventData[{name, i - start}].size() < 9) {
313  eventData[{name, i - start}].push_back(0);
314  }
315  }
316  }
317 
318  boardDataWriter_.addEvent(eventData);
319 }
Definition: start.py:1
const edm::EDGetTokenT< P2GTCandidateCollection > gttPromptHtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttEtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2HtSumToken_
static std::vector< ap_uint< 64 > > vpack(const Args &... vobjects)
const edm::EDGetTokenT< P2GTCandidateCollection > gctEtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtSaDisplacedMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttBsCandidatesToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttDisplacedJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2TausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttDisplacedHtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2EtSumToken_
l1t::demo::BoardDataWriter boardDataWriter_
void addEvent(const EventData &data)
const edm::EDGetTokenT< P2GTCandidateCollection > gmtTkMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctTausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctNonIsoEgToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2ElectronsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2JetsSc4Token_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2JetsSc8Token_
const edm::EDGetTokenT< P2GTCandidateCollection > gctIsoEgToken_
std::vector< std::unique_ptr< L1TGT_BaseInterface > > fillCollection(const edm::Event &event, const edm::EDGetTokenT< P2GTCandidateCollection > &token) const
const edm::EDGetTokenT< P2GTCandidateCollection > gttPromptJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctHtSumToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttPhiCandidatesToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gctJetsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttHadronicTausToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtSaPromptMuonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > cl2PhotonsToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gmtTopoToken_
const std::array< std::tuple< const char *, std::size_t, std::size_t >, 27 > outputChannelDef_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
const edm::EDGetTokenT< P2GTCandidateCollection > gttRhoCandidatesToken_
const edm::EDGetTokenT< P2GTCandidateCollection > gttPrimaryVertToken_
Definition: event.py:1

◆ endJob()

void L1GTOutputObjectWriter::endJob ( void  )
overrideprivatevirtual

◆ fillCollection()

template<typename T >
std::vector< std::unique_ptr< L1TGT_BaseInterface > > L1GTOutputObjectWriter::fillCollection ( const edm::Event event,
const edm::EDGetTokenT< P2GTCandidateCollection > &  token 
) const
private

Definition at line 222 of file L1GTOutputObjectWriter.cc.

References unpackBuffers-CaloStage2::token.

Referenced by analyze().

223  {
224  std::vector<std::unique_ptr<L1TGT_BaseInterface>> outputCollection;
225 
226  for (const P2GTCandidate& object : event.get(token)) {
227  outputCollection.push_back(std::make_unique<T>(T::from_GTObject(object)));
228  }
229 
230  return outputCollection;
231 }
Definition: event.py:1

◆ fillDescriptions()

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

Definition at line 181 of file L1GTOutputObjectWriter.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

181  {
183  desc.add<edm::InputTag>("GCTNonIsoEg");
184  desc.add<edm::InputTag>("GCTIsoEg");
185  desc.add<edm::InputTag>("GCTJets");
186  desc.add<edm::InputTag>("GCTTaus");
187  desc.add<edm::InputTag>("GCTHtSum");
188  desc.add<edm::InputTag>("GCTEtSum");
189  desc.add<edm::InputTag>("GMTSaPromptMuons");
190  desc.add<edm::InputTag>("GMTSaDisplacedMuons");
191  desc.add<edm::InputTag>("GMTTkMuons");
192  desc.add<edm::InputTag>("GMTTopo");
193  desc.add<edm::InputTag>("GTTPromptJets");
194  desc.add<edm::InputTag>("GTTDisplacedJets");
195  desc.add<edm::InputTag>("GTTPhiCandidates");
196  desc.add<edm::InputTag>("GTTRhoCandidates");
197  desc.add<edm::InputTag>("GTTBsCandidates");
198  desc.add<edm::InputTag>("GTTHadronicTaus");
199  desc.add<edm::InputTag>("GTTPrimaryVert");
200  desc.add<edm::InputTag>("GTTPromptHtSum");
201  desc.add<edm::InputTag>("GTTDisplacedHtSum");
202  desc.add<edm::InputTag>("GTTEtSum");
203  desc.add<edm::InputTag>("CL2JetsSC4");
204  desc.add<edm::InputTag>("CL2JetsSC8");
205  desc.add<edm::InputTag>("CL2Taus");
206  desc.add<edm::InputTag>("CL2Electrons");
207  desc.add<edm::InputTag>("CL2Photons");
208  desc.add<edm::InputTag>("CL2HtSum");
209  desc.add<edm::InputTag>("CL2EtSum");
210 
211  desc.add<unsigned int>("maxLines", 1024);
212  desc.add<std::string>("outputFilename");
213  desc.add<std::string>("outputFileExtension", "txt");
214  desc.add<std::string>("patternFormat", "EMPv2");
215  desc.ifValue(edm::ParameterDescription<std::string>("platform", "VU9P", true),
216  edm::allowedValues<std::string>("VU9P", "VU13P"));
217 
218  descriptions.addWithDefaultLabel(desc);
219 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ boardDataWriter_

l1t::demo::BoardDataWriter L1GTOutputObjectWriter::boardDataWriter_
private

Definition at line 130 of file L1GTOutputObjectWriter.cc.

Referenced by analyze(), and endJob().

◆ cl2ElectronsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2ElectronsToken_
private

Definition at line 125 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2EtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2EtSumToken_
private

Definition at line 128 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2HtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2HtSumToken_
private

Definition at line 127 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2JetsSc4Token_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2JetsSc4Token_
private

Definition at line 122 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2JetsSc8Token_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2JetsSc8Token_
private

Definition at line 123 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2PhotonsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2PhotonsToken_
private

Definition at line 126 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ cl2TausToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::cl2TausToken_
private

Definition at line 124 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctEtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctEtSumToken_
private

Definition at line 107 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctHtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctHtSumToken_
private

Definition at line 106 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctIsoEgToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctIsoEgToken_
private

Definition at line 103 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctJetsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctJetsToken_
private

Definition at line 104 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctNonIsoEgToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctNonIsoEgToken_
private

Definition at line 102 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gctTausToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gctTausToken_
private

Definition at line 105 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gmtSaDisplacedMuonsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gmtSaDisplacedMuonsToken_
private

Definition at line 109 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gmtSaPromptMuonsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gmtSaPromptMuonsToken_
private

Definition at line 108 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gmtTkMuonsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gmtTkMuonsToken_
private

Definition at line 110 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gmtTopoToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gmtTopoToken_
private

Definition at line 111 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttBsCandidatesToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttBsCandidatesToken_
private

Definition at line 116 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttDisplacedHtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttDisplacedHtSumToken_
private

Definition at line 120 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttDisplacedJetsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttDisplacedJetsToken_
private

Definition at line 113 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttEtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttEtSumToken_
private

Definition at line 121 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttHadronicTausToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttHadronicTausToken_
private

Definition at line 117 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttPhiCandidatesToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttPhiCandidatesToken_
private

Definition at line 114 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttPrimaryVertToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttPrimaryVertToken_
private

Definition at line 118 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttPromptHtSumToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttPromptHtSumToken_
private

Definition at line 119 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttPromptJetsToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttPromptJetsToken_
private

Definition at line 112 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ gttRhoCandidatesToken_

const edm::EDGetTokenT<P2GTCandidateCollection> L1GTOutputObjectWriter::gttRhoCandidatesToken_
private

Definition at line 115 of file L1GTOutputObjectWriter.cc.

Referenced by analyze().

◆ outputChannelDef_

const std::array<std::tuple<const char*, std::size_t, std::size_t>, 27> L1GTOutputObjectWriter::outputChannelDef_
private

Definition at line 129 of file L1GTOutputObjectWriter.cc.

Referenced by analyze(), and L1GTOutputObjectWriter().