#include <L1GtPatternGenerator.h>
Protected Member Functions | |
void | extractGlobalTriggerData (const edm::Event &iEvent, L1GtPatternMap &patterns) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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<typename ESProduct , Transition Tr = Transition::Event> | |
auto | esConsumes (eventsetup::EventSetupRecordKey const &, ESInputTag const &tag) |
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) |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
analyze each event More... | |
void | beginJob () override |
analyze More... | |
void | endJob () override |
end of job More... | |
void | packHfRecords (const std::string &resultName, L1GtPatternMap &allPatterns) |
Static Private Member Functions | |
static uint32_t | packEtMiss (uint32_t rawValue) |
static uint32_t | packRegionalMuons (uint32_t rawValue) |
Private Attributes | |
std::vector< int > | m_bx |
std::vector< uint32_t > | m_columnDefaults |
std::vector< uint32_t > | m_columnLengths |
std::vector< std::string > | m_columnNames |
edm::InputTag | m_cscTag |
bool | m_debug |
std::string | m_destPath |
an algorithm and a condition in that algorithm to test the object maps More... | |
edm::InputTag | m_dtTag |
input tags for regional muon data More... | |
std::string | m_fileName |
output file name More... | |
std::ofstream | m_fileStream |
std::string | m_footer |
edm::InputTag | m_gctTag |
input tag for GCT data More... | |
edm::InputTag | m_gmtTag |
input tag for GMT data More... | |
edm::InputTag | m_gtTag |
input tag for GT data More... | |
std::string | m_header |
formatting instructions More... | |
edm::InputTag | m_rpcbTag |
edm::InputTag | m_rpcfTag |
std::unique_ptr< L1GtPatternWriter > | m_writer |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Description: A generator of pattern files for L1 GT hardware testing.
Implementation: <TODO: enter implementation details>
Description: see header file.
Implementation: <TODO: enter implementation details>
Definition at line 37 of file L1GtPatternGenerator.h.
|
explicit |
Definition at line 37 of file L1GtPatternGenerator.cc.
References edm::ParameterSet::getParameter(), LogDebug, m_bx, m_columnDefaults, m_columnLengths, m_columnNames, m_cscTag, m_debug, m_dtTag, m_fileName, m_footer, m_gctTag, m_gmtTag, m_gtTag, m_header, m_rpcbTag, m_rpcfTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 75 of file L1GtPatternGenerator.cc.
|
overrideprivate |
analyze each event
Analyze each event:
Definition at line 230 of file L1GtPatternGenerator.cc.
References L1GctEtMiss::et(), edm::EventID::event(), extractGlobalTriggerData(), extractRecordData(), L1MuGMTCand::getDataWord(), L1MuRegionalCand::getDataWord(), edm::EventBase::id(), edm::InputTag::instance(), edm::InputTag::label(), LogTrace, edm::EventBase::luminosityBlock(), m_cscTag, m_dtTag, m_gctTag, m_gmtTag, m_rpcbTag, m_rpcfTag, m_writer, packHfRecords(), packRegionalMuons(), L1GctEtMiss::phi(), L1GctEtHad::raw(), L1GctEtTotal::raw(), L1GctJetCand::raw(), L1GctHtMiss::raw(), L1GctEmCand::raw(), L1GctHFRingEtSums::raw(), L1GctHFBitCounts::raw(), edm::Event::run(), and convertSQLiteXML::runNumber.
|
overrideprivatevirtual |
analyze
Method called once each job just before starting event loop.
Reimplemented from edm::EDAnalyzer.
Definition at line 280 of file L1GtPatternGenerator.cc.
References m_bx, m_columnDefaults, m_columnLengths, m_columnNames, m_debug, m_fileName, m_fileStream, m_footer, m_header, and m_writer.
|
overrideprivatevirtual |
end of job
Method called once each job just after ending the event loop.
Reimplemented from edm::EDAnalyzer.
Definition at line 294 of file L1GtPatternGenerator.cc.
References m_fileStream, and m_writer.
|
protected |
Definition at line 167 of file L1GtPatternGenerator.cc.
References edm::EventID::event(), Exception, extractGlobalTriggerWord(), edm::Event::getByLabel(), L1GtPatternMap::getLine(), L1GlobalTriggerReadoutRecord::gtFdlVector(), cmsBatch::handle, edm::EventBase::id(), edm::InputTag::instance(), edm::HandleBase::isValid(), edm::InputTag::label(), mps_splice::line, m_gtTag, and L1GtPatternLine::push().
Referenced by analyze().
|
staticprivate |
Post-processing for etMissing
|
private |
Post-processing for complex mapping of HF records to PSB values
The mapping from hfBitCounts/hfRingEtSums raw data to the PSBs is non-trivial, see http://wwwhephy.oeaw.ac.at/p3w/electronic1/GlobalTrigger/doc/InterfaceDesc/update_CMS_NOTE_2002_069.pdf
Definition at line 202 of file L1GtPatternGenerator.cc.
References L1GtPatternMap::begin(), and L1GtPatternMap::end().
Referenced by analyze().
|
staticprivate |
Post-processing for regional muon trigger inputs
Bits 8..15 (5 bits Pt, 3 bits quality) need to be inverted on the GMT inputs. See http://wwwhephy.oeaw.ac.at/p3w/cms/trigger/globalMuonTrigger/notes/in04_022.pdf
Definition at line 159 of file L1GtPatternGenerator.cc.
Referenced by analyze().
|
private |
Definition at line 95 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 96 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 94 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 93 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 78 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
Definition at line 97 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
an algorithm and a condition in that algorithm to test the object maps
Definition at line 83 of file L1GtPatternGenerator.h.
|
private |
input tags for regional muon data
Definition at line 77 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
output file name
Definition at line 86 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 87 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 92 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
input tag for GCT data
Definition at line 68 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
input tag for GMT data
Definition at line 71 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
input tag for GT data
Definition at line 74 of file L1GtPatternGenerator.h.
Referenced by extractGlobalTriggerData(), and L1GtPatternGenerator().
|
private |
formatting instructions
Definition at line 91 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 79 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
Definition at line 80 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
Definition at line 99 of file L1GtPatternGenerator.h.
Referenced by analyze(), beginJob(), and endJob().