#include <L1GtPatternGenerator.h>
Public Member Functions | |
L1GtPatternGenerator (const edm::ParameterSet &) | |
~L1GtPatternGenerator () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Protected Member Functions | |
void | extractGlobalTriggerData (const edm::Event &iEvent, L1GtPatternMap &patterns) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
analyze each event More... | |
virtual void | beginJob () |
analyze More... | |
virtual void | endJob () |
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::auto_ptr< L1GtPatternWriter > | m_writer |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Description: A generator of pattern files for L1 GT hardware testing.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: see header file.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 39 of file L1GtPatternGenerator.h.
|
explicit |
Definition at line 39 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, and m_rpcfTag.
L1GtPatternGenerator::~L1GtPatternGenerator | ( | ) |
Definition at line 77 of file L1GtPatternGenerator.cc.
|
privatevirtual |
analyze each event
Analyze each event:
Implements edm::EDAnalyzer.
Definition at line 235 of file L1GtPatternGenerator.cc.
References L1GctEtMiss::et(), extractGlobalTriggerData(), extractRecordData(), L1MuGMTCand::getDataWord(), L1MuRegionalCand::getDataWord(), edm::InputTag::instance(), edm::InputTag::label(), 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(), and L1GctHFBitCounts::raw().
|
privatevirtual |
analyze
Method called once each job just before starting event loop.
Reimplemented from edm::EDAnalyzer.
Definition at line 276 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.
|
privatevirtual |
end of job
Method called once each job just after ending the event loop.
Reimplemented from edm::EDAnalyzer.
Definition at line 290 of file L1GtPatternGenerator.cc.
References m_fileStream, and m_writer.
|
protected |
Definition at line 172 of file L1GtPatternGenerator.cc.
References edm::EventID::event(), edm::hlt::Exception, extractGlobalTriggerWord(), edm::Event::getByLabel(), L1GtPatternMap::getLine(), patZpeak::handle, edm::EventBase::id(), edm::InputTag::instance(), edm::HandleBase::isValid(), edm::InputTag::label(), geometryCSVtoXML::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 207 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 164 of file L1GtPatternGenerator.cc.
Referenced by analyze().
|
private |
Definition at line 97 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 98 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 95 of file L1GtPatternGenerator.h.
Referenced by beginJob(), 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 beginJob(), and L1GtPatternGenerator().
|
private |
an algorithm and a condition in that algorithm to test the object maps
Definition at line 85 of file L1GtPatternGenerator.h.
|
private |
input tags for regional muon data
Definition at line 79 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
output file name
Definition at line 88 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 89 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 94 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
input tag for GCT data
Definition at line 70 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
input tag for GMT data
Definition at line 73 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
input tag for GT data
Definition at line 76 of file L1GtPatternGenerator.h.
Referenced by extractGlobalTriggerData(), and L1GtPatternGenerator().
|
private |
formatting instructions
Definition at line 93 of file L1GtPatternGenerator.h.
Referenced by beginJob(), and L1GtPatternGenerator().
|
private |
Definition at line 81 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
Definition at line 82 of file L1GtPatternGenerator.h.
Referenced by analyze(), and L1GtPatternGenerator().
|
private |
Definition at line 101 of file L1GtPatternGenerator.h.
Referenced by analyze(), beginJob(), and endJob().