#include <L1TCorrelatorLayer1PatternFileWriter.h>
Public Member Functions | |
void | flush () |
L1TCorrelatorLayer1PatternFileWriter (const edm::ParameterSet &iConfig, const l1ct::Event &eventTemplate) | |
void | write (const l1ct::Event &event) |
~L1TCorrelatorLayer1PatternFileWriter () | |
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::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 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_ = 1 |
const unsigned int | gmtLinksFactor_ = 1 |
uint32_t | gmtNumberOfMuons_ |
const unsigned int | gmtTimeslices_ = 3 |
uint32_t | gttLatency_ |
const unsigned int | gttLinksFactor_ = 1 |
uint32_t | gttNumberOfPVs_ |
const unsigned int | gttTimeslices_ = 1 |
const unsigned int | hgcLinksFactor_ = 4 |
const unsigned int | hgcTimeslices_ = 3 |
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_ = 3 |
const unsigned int | tmuxFactor_ = 6 |
bool | writeInputs_ |
bool | writeOutputs_ |
Definition at line 10 of file L1TCorrelatorLayer1PatternFileWriter.h.
|
strongprivate |
Enumerator | |
---|---|
Barrel | |
HGCal | |
HGCalNoTk | |
HF |
Definition at line 19 of file L1TCorrelatorLayer1PatternFileWriter.h.
L1TCorrelatorLayer1PatternFileWriter::L1TCorrelatorLayer1PatternFileWriter | ( | const edm::ParameterSet & | iConfig, |
const l1ct::Event & | eventTemplate | ||
) |
Definition at line 5 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References Barrel, channelIdsInput_, channelIdsOutput_, channelSpecsInput_, channelSpecsOutput_, configTimeSlices(), Exception, 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_, tmuxFactor_, l1ct::RawInputs::track, writeInputs_, and writeOutputs_.
L1TCorrelatorLayer1PatternFileWriter::~L1TCorrelatorLayer1PatternFileWriter | ( | ) |
Definition at line 104 of file L1TCorrelatorLayer1PatternFileWriter.cc.
|
private |
Definition at line 191 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, edm::ParameterSet::getParameter(), mps_fire::i, MainPageGenerator::link, electronStore::links, hltrates_dqm_sourceclient-live_cfg::offset, and hcallasereventfilter2012_cfi::prefix.
Referenced by configSectors().
|
private |
Definition at line 175 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References configLinks(), edm::ParameterSet::getParameter(), and hcallasereventfilter2012_cfi::prefix.
Referenced by configTimeSlices().
|
private |
Definition at line 157 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References configSectors(), edm::ParameterSet::getParameter(), and hcallasereventfilter2012_cfi::prefix.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
void L1TCorrelatorLayer1PatternFileWriter::flush | ( | ) |
Definition at line 350 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References inputFileWriter_, and outputFileWriter_.
|
staticprivate |
Definition at line 144 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 106 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 269 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 332 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References nEgammaObjectsOut_, MillePedeFileConverter_cfg::out, outputBoard_, AlCaHLTBitMon_ParallelJobs::p, and runTheMatrix::ret.
Referenced by write().
|
private |
Definition at line 299 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, gmtNumberOfMuons_, crabWrapper::key, PDWG_BPHSkim_cff::muons, and MillePedeFileConverter_cfg::out.
Referenced by write().
|
private |
Definition at line 308 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, gttNumberOfPVs_, crabWrapper::key, MillePedeFileConverter_cfg::out, and FSQDQM_cfi::pvs.
Referenced by write().
|
private |
Definition at line 237 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References cms::cuda::assert(), channelIdsInput_, eventIndex_, hgcLinksFactor_, dqmiolumiharvest::j, MillePedeFileConverter_cfg::out, and runTheMatrix::ret.
Referenced by write().
|
private |
Definition at line 317 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 213 of file L1TCorrelatorLayer1PatternFileWriter.cc.
References channelIdsInput_, mps_fire::i, crabWrapper::key, dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, runTheMatrix::ret, and pwdgSkimBPark_cfi::tracks.
Referenced by write().
|
private |
Definition at line 24 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by configLinks(), L1TCorrelatorLayer1PatternFileWriter(), writeBarrelGCT(), writeGMT(), writeGTT(), writeHGC(), and writeTF().
|
private |
Definition at line 24 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 25 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 25 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 48 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by write(), and writeHGC().
|
private |
Definition at line 47 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by write().
|
private |
Definition at line 44 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 30 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 30 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 29 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeBarrelGCT().
|
private |
Definition at line 29 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 31 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 33 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeGMT().
|
private |
Definition at line 31 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 35 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 32 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 34 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeGTT().
|
private |
Definition at line 32 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 28 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeHGC().
|
private |
Definition at line 28 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 49 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by flush(), L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 40 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeEgamma().
|
private |
Definition at line 43 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 43 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 38 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 39 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writeEgamma().
|
private |
Definition at line 49 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by flush(), L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 39 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 37 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 37 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and writePuppi().
|
private |
Definition at line 21 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 27 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 27 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 22 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter().
|
private |
Definition at line 23 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().
|
private |
Definition at line 23 of file L1TCorrelatorLayer1PatternFileWriter.h.
Referenced by L1TCorrelatorLayer1PatternFileWriter(), and write().