#include <OMTFReconstruction.h>
Protected Attributes | |
edm::ParameterSet | edmParameterSet |
unique_ptr< OMTFinputMaker > | inputMaker |
MuStubsInputTokens & | muStubsInputTokens |
std::vector< std::unique_ptr< IOMTFEmulationObserver > > | observers |
unique_ptr< OMTFConfiguration > | omtfConfig |
unique_ptr< L1TMuonOverlapParams > | omtfParams |
OMTF objects. More... | |
edm::ESWatcher< L1TMuonOverlapParamsRcd > | omtfParamsRecordWatcher |
unique_ptr< IProcessorEmulator > | omtfProc |
Private Member Functions | |
void | getProcessorCandidates (unsigned int iProcessor, l1t::tftype mtfType, int bx, l1t::RegionalMuonCandBxCollection &myCandidates) |
void | loadAndFilterDigis (const edm::Event &) |
void | writeResultToXML (unsigned int iProcessor, l1t::tftype mtfType, const OMTFinput &myInput, const std::vector< OMTFProcessor::resultsMap > &myResults, const std::vector< l1t::RegionalMuonCand > &candMuons) |
Private Attributes | |
xercesc::DOMElement * | aTopElement |
int | bxMax |
int | bxMin |
edm::Handle< CSCCorrelatedLCTDigiCollection > | cscDigis |
edm::Handle< L1MuDTChambPhContainer > | dtPhDigis |
edm::Handle< L1MuDTChambThContainer > | dtThDigis |
bool | dumpDetailedResultToXML |
bool | dumpResultToXML |
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > | l1TMuonOverlapParamsToken_ |
edm::ParameterSet | m_Config |
std::unique_ptr< IGhostBuster > | m_GhostBuster |
OMTFinputMaker | m_InputMaker |
OMTFProcessor * | m_OMTF |
OMTFConfiguration * | m_OMTFConfig |
OMTF objects. More... | |
OMTFConfigMaker * | m_OMTFConfigMaker |
OMTFSorter | m_Sorter |
XMLConfigWriter * | m_Writer |
edm::Handle< RPCDigiCollection > | rpcDigis |
Definition at line 37 of file OMTFReconstruction.h.
OMTFReconstruction::OMTFReconstruction | ( | const edm::ParameterSet & | theConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 21 of file OMTFReconstruction.cc.
References bxMax, bxMin, dumpDetailedResultToXML, dumpResultToXML, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and m_Config.
OMTFReconstruction::~OMTFReconstruction | ( | ) |
Definition at line 39 of file OMTFReconstruction.cc.
References m_OMTF, m_OMTFConfig, and m_Writer.
OMTFReconstruction::OMTFReconstruction | ( | const edm::ParameterSet & | parameterSet, |
MuStubsInputTokens & | muStubsInputTokens | ||
) |
Definition at line 29 of file OMTFReconstruction.cc.
References bxMax, bxMin, edmParameterSet, edm::ParameterSet::exists(), and edm::ParameterSet::getParameter().
|
virtual |
|
virtual |
Reimplemented in OmtfEmulation.
Definition at line 204 of file OMTFReconstruction.cc.
References edmParameterSet, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), observers, omtfConfig, omtfProc, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by OmtfEmulation::addObservers(), and beginRun().
void OMTFReconstruction::beginJob | ( | ) |
void OMTFReconstruction::beginJob | ( | void | ) |
Definition at line 49 of file OMTFReconstruction.cc.
References m_OMTF, and m_OMTFConfig.
Referenced by L1TMuonOverlapPhase1TrackProducer::beginJob(), and L1TMuonOverlapTrackProducer::beginJob().
void OMTFReconstruction::beginRun | ( | edm::Run const & | run, |
edm::EventSetup const & | iSetup, | ||
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > & | omtfParamsEsToken, | ||
const MuonGeometryTokens & | muonGeometryTokens, | ||
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > & | magneticFieldEsToken, | ||
const edm::ESGetToken< Propagator, TrackingComponentsRecord > & | propagatorEsToken | ||
) |
Definition at line 61 of file OMTFReconstruction.cc.
References addObservers(), edm::ESWatcher< T >::check(), edmParameterSet, options_cfi::eventSetup, Exception, edm::ParameterSet::exists(), fileCollector2::fName, contentValuesFiles::fullPath, edm::FileInPath::fullPath(), amcDumpToRaw_cfi::fwVersion, edm::ParameterSet::getParameter(), inputMaker, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, observers, omtfConfig, omtfParams, omtfParamsRecordWatcher, omtfProc, fakeOmtfFwVersion_cff::patternsVersion, fakeOmtfParams_cff::patternsXMLFile, fakeOmtfParams_cff::patternsXMLFiles, simOmtfDigis_cfi::processorType, XMLConfigReader::readConfig(), XMLConfigReader::readPatterns(), writedatasetfile::run, XMLConfigReader::setConfigFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
void OMTFReconstruction::beginRun | ( | edm::Run const & | , |
edm::EventSetup const & | iSetup | ||
) |
Definition at line 63 of file OMTFReconstruction.cc.
References OMTFProcessor< GoldenPatternType >::configure(), OMTFConfiguration::configure(), dumpResultToXML, fileCollector2::fName, OMTFConfiguration::fwVersion(), edm::EventSetup::getData(), XMLConfigWriter::initialiseXMLDocument(), OMTFSorter< GoldenPatternType >::initialize(), OMTFinputMaker::initialize(), l1TMuonOverlapParamsToken_, m_GhostBuster, m_InputMaker, m_OMTF, m_OMTFConfig, m_Sorter, m_Writer, OMTFConfiguration::nPhiBins(), omtfParams, OMTFSorter< GoldenPatternType >::setNphiBins(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1TMuonOverlapPhase2TrackProducer::beginRun(), L1TMuonOverlapPhase1TrackProducer::beginRun(), and L1TMuonOverlapTrackProducer::beginRun().
void OMTFReconstruction::endJob | ( | ) |
void OMTFReconstruction::endJob | ( | void | ) |
Definition at line 55 of file OMTFReconstruction.cc.
References dumpResultToXML, XMLConfigWriter::finaliseXMLDocument(), fileCollector2::fName, edm::ParameterSet::getParameter(), m_Config, m_Writer, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1TMuonOverlapPhase2TrackProducer::endJob(), L1TMuonOverlapPhase1TrackProducer::endJob(), and L1TMuonOverlapTrackProducer::endJob().
|
private |
Definition at line 137 of file OMTFReconstruction.cc.
References OMTFinputMaker::buildInputForProcessor(), nano_mu_digi_cff::bx, OMTFSorter< GoldenPatternType >::candidates(), cscDigis, dtPhDigis, dtThDigis, RemoveAddSevLevel::flag, OMTFinputMaker::getFlag(), input, m_GhostBuster, m_InputMaker, m_OMTF, m_Sorter, OMTFProcessor< GoldenPatternType >::processInput(), edm::Handle< T >::product(), BXVector< T >::push_back(), mysort::results, rpcDigis, OMTFinputMaker::setFlag(), OMTFSorter< GoldenPatternType >::sortRefHitResults(), and writeResultToXML().
Referenced by reconstruct().
|
private |
Definition at line 123 of file OMTFReconstruction.cc.
References cscDigis, dtPhDigis, dtThDigis, edm::ParameterSet::getParameter(), iEvent, m_Config, and rpcDigis.
Referenced by reconstruct().
std::unique_ptr< l1t::RegionalMuonCandBxCollection > OMTFReconstruction::reconstruct | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup | ||
) |
The order is important: first put omtf_pos candidates, then omtf_neg.
Definition at line 95 of file OMTFReconstruction.cc.
References aTopElement, nano_mu_digi_cff::bx, bxMax, bxMin, HLT_2024v13_cff::candidates, dumpResultToXML, getProcessorCandidates(), iEvent, loadAndFilterDigis(), m_OMTFConfig, m_Writer, OMTFConfiguration::nProcessors(), l1t::omtf_neg, l1t::omtf_pos, and XMLConfigWriter::writeEventHeader().
Referenced by L1TMuonOverlapPhase2TrackProducer::produce(), L1TMuonOverlapPhase1TrackProducer::produce(), and L1TMuonOverlapTrackProducer::produce().
std::unique_ptr<l1t::RegionalMuonCandBxCollection> OMTFReconstruction::reconstruct | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) |
|
inline |
Definition at line 56 of file OMTFReconstruction.h.
References inputMaker, and eostools::move().
|
private |
Dump only regions, where a candidate was found
Definition at line 170 of file OMTFReconstruction.cc.
References aTopElement, dumpDetailedResultToXML, dumpResultToXML, makeMuonMisalignmentScenario::endcap, AlgoMuon::getPt(), input, m_OMTFConfig, m_Sorter, m_Writer, OMTFConfiguration::nTestRefHits(), l1t::omtf_neg, l1t::omtf_pos, mysort::results, OMTFSorter< GoldenPatternType >::sortRefHitResults(), XMLConfigWriter::writeAlgoMuon(), XMLConfigWriter::writeCandMuon(), XMLConfigWriter::writeEventData(), and XMLConfigWriter::writeResultsData().
Referenced by getProcessorCandidates().
|
private |
Definition at line 84 of file OMTFReconstruction.h.
Referenced by reconstruct(), and writeResultToXML().
|
private |
Definition at line 75 of file OMTFReconstruction.h.
Referenced by OMTFReconstruction(), and reconstruct().
|
private |
Definition at line 75 of file OMTFReconstruction.h.
Referenced by OMTFReconstruction(), and reconstruct().
|
private |
Definition at line 56 of file OMTFReconstruction.h.
Referenced by getProcessorCandidates(), and loadAndFilterDigis().
|
private |
Definition at line 54 of file OMTFReconstruction.h.
Referenced by getProcessorCandidates(), and loadAndFilterDigis().
|
private |
Definition at line 55 of file OMTFReconstruction.h.
Referenced by getProcessorCandidates(), and loadAndFilterDigis().
|
private |
Definition at line 74 of file OMTFReconstruction.h.
Referenced by OMTFReconstruction(), and writeResultToXML().
|
private |
Definition at line 74 of file OMTFReconstruction.h.
Referenced by beginRun(), endJob(), OMTFReconstruction(), reconstruct(), and writeResultToXML().
|
protected |
Definition at line 63 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::addObservers(), addObservers(), OmtfEmulation::beginJob(), beginRun(), and OMTFReconstruction().
|
protected |
Definition at line 74 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::beginJob(), beginRun(), and setInputMaker().
|
private |
Definition at line 59 of file OMTFReconstruction.h.
Referenced by beginRun().
|
private |
Definition at line 52 of file OMTFReconstruction.h.
Referenced by endJob(), loadAndFilterDigis(), and OMTFReconstruction().
|
private |
Definition at line 81 of file OMTFReconstruction.h.
Referenced by beginRun(), and getProcessorCandidates().
|
private |
Definition at line 79 of file OMTFReconstruction.h.
Referenced by beginRun(), and getProcessorCandidates().
|
private |
Definition at line 82 of file OMTFReconstruction.h.
Referenced by beginJob(), beginRun(), getProcessorCandidates(), and ~OMTFReconstruction().
|
private |
OMTF objects.
Definition at line 78 of file OMTFReconstruction.h.
Referenced by beginJob(), beginRun(), reconstruct(), writeResultToXML(), and ~OMTFReconstruction().
|
private |
Definition at line 85 of file OMTFReconstruction.h.
|
private |
Definition at line 80 of file OMTFReconstruction.h.
Referenced by beginRun(), getProcessorCandidates(), and writeResultToXML().
|
private |
Definition at line 86 of file OMTFReconstruction.h.
Referenced by beginRun(), endJob(), reconstruct(), writeResultToXML(), and ~OMTFReconstruction().
|
protected |
Definition at line 65 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::beginJob().
|
protected |
Definition at line 80 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::addObservers(), addObservers(), and beginRun().
|
protected |
Definition at line 72 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::addObservers(), addObservers(), OmtfEmulation::beginJob(), and beginRun().
|
protected |
|
protected |
Definition at line 82 of file OMTFReconstruction.h.
Referenced by beginRun().
|
protected |
Definition at line 76 of file OMTFReconstruction.h.
Referenced by OmtfEmulation::addObservers(), addObservers(), and beginRun().
|
private |
Definition at line 57 of file OMTFReconstruction.h.
Referenced by getProcessorCandidates(), and loadAndFilterDigis().