#include <L1TCorrelatorLayer1PatternFileWriter.h>
Public Member Functions | |
void | flush () |
L1TCorrelatorLayer1PatternFileWriter (const edm::ParameterSet &iConfig, const l1ct::Event &eventTemplate) | |
void | write (const l1ct::Event &event) |
~L1TCorrelatorLayer1PatternFileWriter () | |
Static Public Member Functions | |
static edm::ParameterSetDescription | getParameterSetDescription () |
Private Types | |
enum | Partition { Partition::Barrel, Partition::HGCal, Partition::HGCalNoTk, Partition::HF } |
Private Member Functions | |
void | configLinks (const edm::ParameterSet &iConfig, const std::string &prefix, unsigned int linksFactor, unsigned int offset) |
void | configSectors (const edm::ParameterSet &iConfig, const std::string &prefix, unsigned int nSectors, unsigned int linksFactor) |
void | configTimeSlices (const edm::ParameterSet &iConfig, const std::string &prefix, unsigned int nSectors, unsigned int nTimeSlices, unsigned int linksFactor) |
void | writeBarrelGCT (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writeEgamma (const l1ct::OutputBoard &egboard, std::vector< ap_uint< 64 >> &out) |
void | writeEgamma (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writeGMT (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writeGTT (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writeHGC (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writePuppi (const l1ct::Event &event, l1t::demo::EventData &out) |
void | writeTF (const l1ct::Event &event, l1t::demo::EventData &out) |
Static Private Member Functions | |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeEG () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeGCT () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeGMT () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeGTT () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeHGC () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeLinks (const std::string &prefix) |
static std::unique_ptr< edm::ParameterDescriptionNode > | describePuppi () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeSectors (const std::string &prefix) |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeTF () |
static std::unique_ptr< edm::ParameterDescriptionNode > | describeTimeSlices (const std::string &prefix) |
static Partition | parsePartition (const std::string &partition) |
Private Attributes | |
std::map< l1t::demo::LinkId, std::vector< size_t > > | channelIdsInput_ |
std::map< l1t::demo::LinkId, std::vector< size_t > > | channelIdsOutput_ |
std::map< std::string, l1t::demo::ChannelSpec > | channelSpecsInput_ |
std::map< std::string, l1t::demo::ChannelSpec > | channelSpecsOutput_ |
uint32_t | eventIndex_ |
const uint32_t | eventsPerFile_ |
const std::string | fileFormat_ |
const unsigned int | gctLinksEcal_ = 1 |
const unsigned int | gctLinksHad_ = 2 |
const unsigned int | gctSectors_ = 3 |
const unsigned int | gctTimeslices_ |
const unsigned int | gctTmuxFactor_ = 1 |
const unsigned int | gmtLinksFactor_ = 1 |
uint32_t | gmtNumberOfMuons_ |
const unsigned int | gmtTimeslices_ |
const unsigned int | gmtTmuxFactor_ = 18 |
uint32_t | gttLatency_ |
const unsigned int | gttLinksFactor_ = 1 |
uint32_t | gttNumberOfPVs_ |
const unsigned int | gttTimeslices_ |
const unsigned int | gttTmuxFactor_ = 6 |
const unsigned int | hgcLinksFactor_ = 4 |
const unsigned int | hgcTimeslices_ |
const unsigned int | hgcTmuxFactor_ = 18 |
std::unique_ptr< l1t::demo::BoardDataWriter > | inputFileWriter_ |
uint32_t | nEgammaObjectsOut_ |
uint32_t | nInputFramesPerBX_ |
uint32_t | nOutputFramesPerBX_ |
unsigned int | nPuppiFramesPerRegion_ |
int32_t | outputBoard_ |
std::unique_ptr< l1t::demo::BoardDataWriter > | outputFileWriter_ |
int32_t | outputLinkEgamma_ |
std::vector< uint32_t > | outputLinksPuppi_ |
std::vector< uint32_t > | outputRegions_ |
Partition | partition_ |
const unsigned int | tfLinksFactor_ = 1 |
const unsigned int | tfTimeslices_ |
const unsigned int | tfTmuxFactor_ = 18 |
const unsigned int | tmuxFactor_ |
bool | writeInputs_ |
bool | writeOutputs_ |
Definition at line 11 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
strongprivate |
Enumerator | |
---|---|
Barrel | |
HGCal | |
HGCalNoTk | |
HF |
Definition at line 22 of file L1TCorrelatorLayer1PatternFileWriter.h.
L1TCorrelatorLayer1PatternFileWriter::L1TCorrelatorLayer1PatternFileWriter | ( | const edm::ParameterSet & | iConfig, |
const l1ct::Event & | eventTemplate | ||
) |
Definition at line 6 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References Barrel, channelIdsInput_, channelIdsOutput_, channelSpecsInput_, channelSpecsOutput_, configTimeSlices(), fileFormat_, gctLinksEcal_, gctLinksHad_, gctSectors_, gctTimeslices_, edm::ParameterSet::getParameter(), gmtLinksFactor_, gmtNumberOfMuons_, gmtTimeslices_, gttLatency_, gttLinksFactor_, gttNumberOfPVs_, gttTimeslices_, HGCal, l1ct::RawInputs::hgcalcluster, HGCalNoTk, hgcLinksFactor_, hgcTimeslices_, mps_fire::i, inputFileWriter_, nEgammaObjectsOut_, nInputFramesPerBX_, nOutputFramesPerBX_, nPuppiFramesPerRegion_, outputBoard_, outputFileWriter_, outputLinkEgamma_, outputLinksPuppi_, outputRegions_, l1t::demo::parseFileFormat(), partition_, l1ct::Event::raw, AlCaHLTBitMon_QueryRunRegistry::string, tfLinksFactor_, tfTimeslices_, tfTmuxFactor_, tmuxFactor_, l1ct::RawInputs::track, writeInputs_, and writeOutputs_.
L1TCorrelatorLayer1PatternFileWriter::~L1TCorrelatorLayer1PatternFileWriter | ( | ) |
Definition at line 113 of file L1TCorrelatorLayer1PatternFileWriter.cc.
|
private |
Definition at line 271 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, edm::ParameterSet::getParameter(), mps_fire::i, electronStore::links, hltrates_dqm_sourceclient-live_cfg::offset, and hcallasereventfilter2012_cfi::prefix.
Referenced by configSectors().
|
private |
Definition at line 246 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References configLinks(), edm::ParameterSet::getParameter(), and hcallasereventfilter2012_cfi::prefix.
Referenced by configTimeSlices().
|
private |
Definition at line 220 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References configSectors(), edm::ParameterSet::getParameter(), and hcallasereventfilter2012_cfi::prefix.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
staticprivate |
Definition at line 163 of file L1TCorrelatorLayer1PatternFileWriter.cc.
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 142 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References edm::ParameterSetDescription::add().
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 151 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References describeTimeSlices().
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 154 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References describeTimeSlices().
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 148 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References describeTimeSlices().
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 293 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References hcallasereventfilter2012_cfi::prefix.
Referenced by describeSectors().
|
staticprivate |
Definition at line 159 of file L1TCorrelatorLayer1PatternFileWriter.cc.
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 263 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References edm::ParameterSetDescription::addNode(), describeLinks(), and hcallasereventfilter2012_cfi::prefix.
Referenced by describeTimeSlices().
|
staticprivate |
Definition at line 139 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References describeTimeSlices().
Referenced by getParameterSetDescription().
|
staticprivate |
Definition at line 238 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References edm::ParameterSetDescription::addNode(), describeSectors(), and hcallasereventfilter2012_cfi::prefix.
Referenced by describeGMT(), describeGTT(), describeHGC(), and describeTF().
void L1TCorrelatorLayer1PatternFileWriter::flush | ( | ) |
Definition at line 449 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References inputFileWriter_, and outputFileWriter_.
|
static |
Definition at line 115 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References describeEG(), describeGCT(), describeGMT(), describeGTT(), describeHGC(), describePuppi(), describeTF(), makeListRunsInFiles::description, or, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1TCorrelatorLayer1Producer::fillDescriptions().
|
staticprivate |
Definition at line 207 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References Barrel, Exception, HF, HGCal, HGCalNoTk, and l1ctLayer1_patternWriters_cff::partition.
void L1TCorrelatorLayer1PatternFileWriter::write | ( | const l1ct::Event & | event | ) |
Definition at line 169 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References Barrel, eventIndex_, eventsPerFile_, HGCal, HGCalNoTk, inputFileWriter_, PixelMapPlotter::inputs, outputFileWriter_, outputLinkEgamma_, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, partition_, writeBarrelGCT(), writeEgamma(), writeGMT(), writeGTT(), writeHGC(), writeInputs_, writeOutputs_, writePuppi(), and writeTF().
|
private |
Definition at line 355 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, gctLinksEcal_, gctLinksHad_, gctSectors_, mps_fire::i, MillePedeFileConverter_cfg::out, timeUnitHelper::pack(), and runTheMatrix::ret.
Referenced by write().
|
private |
Definition at line 418 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References l1ct::OutputBoard::egelectron, l1ct::OutputBoard::egphoton, nEgammaObjectsOut_, AlCaHLTBitMon_ParallelJobs::p, and runTheMatrix::ret.
Referenced by write(), and writeEgamma().
|
private |
Definition at line 436 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References HGCal, nOutputFramesPerBX_, MillePedeFileConverter_cfg::out, outputBoard_, partition_, runTheMatrix::ret, tmuxFactor_, and writeEgamma().
|
private |
Definition at line 385 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, gmtNumberOfMuons_, submitPVResolutionJobs::key, DiMuonV_cfg::muons, and MillePedeFileConverter_cfg::out.
Referenced by write().
|
private |
Definition at line 394 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, gttNumberOfPVs_, submitPVResolutionJobs::key, MillePedeFileConverter_cfg::out, and FSQDQM_cfi::pvs.
Referenced by write().
|
private |
Definition at line 323 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References cms::cuda::assert(), channelIdsInput_, eventIndex_, hgcLinksFactor_, hgcTimeslices_, dqmiolumiharvest::j, MillePedeFileConverter_cfg::out, runTheMatrix::ret, and tmuxFactor_.
Referenced by write().
|
private |
Definition at line 403 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References mps_fire::i, electronStore::links, dqmiodumpmetadata::n, nPuppiFramesPerRegion_, MillePedeFileConverter_cfg::out, outputLinksPuppi_, outputRegions_, and timeUnitHelper::pack().
Referenced by write().
|
private |
Definition at line 299 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, mps_fire::i, submitPVResolutionJobs::key, dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, runTheMatrix::ret, and DiMuonV_cfg::tracks.
Referenced by write().
|
private |
Definition at line 27 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by configLinks(), L1TCorrelatorLayer1PatternFileWriter(), writeBarrelGCT(), writeGMT(), writeGTT(), writeHGC(), and writeTF().
|
private |
Definition at line 27 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 28 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 28 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 52 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by write(), and writeHGC().
|
private |
Definition at line 51 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by write().
|
private |
Definition at line 48 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 33 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 33 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 32 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 36 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 32 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
private |
Definition at line 34 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 37 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeGMT().
|
private |
Definition at line 36 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 34 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
private |
Definition at line 39 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 35 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 38 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeGTT().
|
private |
Definition at line 36 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 35 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
private |
Definition at line 31 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeHGC().
|
private |
Definition at line 36 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeHGC().
|
private |
Definition at line 31 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
private |
Definition at line 53 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by flush(), L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 44 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeEgamma().
|
private |
Definition at line 47 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 47 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeEgamma().
|
private |
Definition at line 42 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 43 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeEgamma().
|
private |
Definition at line 53 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by flush(), L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 43 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 41 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 41 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 24 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), write(), and writeEgamma().
|
private |
Definition at line 30 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 36 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 30 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 25 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), writeEgamma(), and writeHGC().
|
private |
Definition at line 26 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 26 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().