#include <OMTFPatternMaker.h>
Private Member Functions | |
const SimTrack * | findSimMuon (const edm::Event &ev, const SimTrack *previous=nullptr) |
void | writeMergedGPs () |
Private Attributes | |
xercesc::DOMElement * | aTopElement |
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > | esTokenParams_ |
edm::InputTag | g4SimTrackSrc |
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > | inputTokenCSC |
edm::EDGetTokenT< L1MuDTChambPhContainer > | inputTokenDTPh |
edm::EDGetTokenT< L1MuDTChambThContainer > | inputTokenDTTh |
edm::EDGetTokenT< RPCDigiCollection > | inputTokenRPC |
edm::EDGetTokenT< edm::SimTrackContainer > | inputTokenSimHit |
bool | makeConnectionsMaps |
bool | makeGoldenPatterns |
bool | mergeXMLFiles |
OMTFinputMaker * | myInputMaker |
OMTFProcessor * | myOMTF |
OMTFConfiguration * | myOMTFConfig |
OMTF objects. More... | |
OMTFConfigMaker * | myOMTFConfigMaker |
XMLConfigWriter * | myWriter |
unsigned int | nPdfAddrBits |
Original pdf width. read from configuration. More... | |
edm::ParameterSet | theConfig |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 39 of file OMTFPatternMaker.h.
OMTFPatternMaker::OMTFPatternMaker | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 21 of file OMTFPatternMaker.cc.
References edm::EDConsumerBase::consumesCollector(), edm::ParameterSet::getParameter(), inputTokenCSC, inputTokenDTPh, inputTokenDTTh, inputTokenRPC, inputTokenSimHit, makeConnectionsMaps, makeGoldenPatterns, mergeXMLFiles, myInputMaker, myOMTFConfig, and theConfig.
|
override |
Definition at line 42 of file OMTFPatternMaker.cc.
References myOMTF, myOMTFConfig, and myOMTFConfigMaker.
|
overridevirtual |
Get the simulated muon parameters
Filter digis by dropping digis from selected (by cfg.py) subsystems
Loop over all processors, each covering 60 deg in phi
Input data with phi ranges shifted for each processor, so it fits 11 bits range
Connections maps are made by hand. makeConnetionsMap method provides tables for checking their consistency.
Implements edm::one::EDAnalyzerBase.
Definition at line 243 of file OMTFPatternMaker.cc.
References OMTFinputMaker::buildInputForProcessor(), OMTFProcessor< GoldenPatternType >::fillCounts(), findSimMuon(), edm::ParameterSet::getParameter(), iEvent, OMTFinputMaker::initialize(), inputTokenCSC, inputTokenDTPh, inputTokenDTTh, inputTokenRPC, makeConnectionsMaps, OMTFConfigMaker::makeConnetionsMap(), makeGoldenPatterns, mergeXMLFiles, myInputMaker, myOMTF, myOMTFConfig, myOMTFConfigMaker, l1t::omtf_pos, edm::Handle< T >::product(), and theConfig.
|
overridevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 85 of file OMTFPatternMaker.cc.
References myOMTF, and myOMTFConfig.
|
override |
Initialise XML writer with default pdf.
For making the patterns use extended pdf width in phi, as pdf are later shifted by the mean value For low pt muons non shifted pdfs would go out of the default pdf range.
Clear existing GoldenPatterns
Definition at line 49 of file OMTFPatternMaker.cc.
References OMTFProcessor< GoldenPatternType >::configure(), OMTFConfiguration::configure(), esTokenParams_, L1TMuonOverlapParams::GENERAL_ADDRBITS, L1TMuonOverlapParams::generalParams(), edm::EventSetup::getData(), OMTFProcessor< GoldenPatternType >::getPatterns(), mergeXMLFiles, myOMTF, myOMTFConfig, myOMTFConfigMaker, myWriter, nPdfAddrBits, fakeOmtfParams_cff::omtfParams, and L1TMuonOverlapParams::setGeneralParams().
|
overridevirtual |
Put back default value of the pdf width.
Order important: printPhiMap updates global vector in OMTFConfiguration
Write GPs merged by 4 above iPt=71, and by 2 below// /////////////////////////////////////////////////// 4x merging
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 91 of file OMTFPatternMaker.cc.
References OMTFProcessor< GoldenPatternType >::averagePatterns(), OMTFConfiguration::configure(), gather_cfg::cout, XMLConfigWriter::finaliseXMLDocument(), MainPageGenerator::fName, L1TMuonOverlapParams::GENERAL_ADDRBITS, L1TMuonOverlapParams::generalParams(), OMTFConfiguration::getMeasurements4D(), edm::ParameterSet::getParameter(), OMTFProcessor< GoldenPatternType >::getPatterns(), OMTFConfiguration::getRawParams(), XMLConfigWriter::initialiseXMLDocument(), makeConnectionsMaps, makeGoldenPatterns, mergeXMLFiles, myOMTF, myOMTFConfig, myOMTFConfigMaker, myWriter, nPdfAddrBits, OMTFConfigMaker::printConnections(), OMTFConfigMaker::printPhiMap(), RPCConst::ptFromIpt(), GoldenPattern::reset(), L1TMuonOverlapParams::setGeneralParams(), AlCaHLTBitMon_QueryRunRegistry::string, theConfig, XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeGPData(), and writeMergedGPs().
|
override |
Definition at line 82 of file OMTFPatternMaker.cc.
|
private |
Definition at line 292 of file OMTFPatternMaker.cc.
References electronAnalyzer_cfi::DeltaR, makeMEIFBenchmarkPlots::ev, inputTokenSimHit, CoreSimTrack::momentum(), callgraph::previous, mps_fire::result, and CoreSimTrack::type().
Referenced by analyze().
|
private |
Write the opposite charge.
Definition at line 171 of file OMTFPatternMaker.cc.
References OMTFProcessor< GoldenPatternType >::getPatterns(), if(), GoldenPattern::key(), myOMTF, myOMTFConfig, myWriter, Key::theCharge, Key::thePtCode, and XMLConfigWriter::writeGPData().
Referenced by endJob().
|
private |
Definition at line 81 of file OMTFPatternMaker.h.
|
private |
Definition at line 67 of file OMTFPatternMaker.h.
Referenced by beginRun().
|
private |
Definition at line 59 of file OMTFPatternMaker.h.
|
private |
Definition at line 63 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 61 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 62 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 64 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 65 of file OMTFPatternMaker.h.
Referenced by findSimMuon(), and OMTFPatternMaker().
|
private |
Definition at line 71 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 71 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 71 of file OMTFPatternMaker.h.
Referenced by analyze(), beginRun(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 78 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 79 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
OMTF objects.
Definition at line 77 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), OMTFPatternMaker(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
Definition at line 82 of file OMTFPatternMaker.h.
Referenced by analyze(), beginRun(), endJob(), and ~OMTFPatternMaker().
|
private |
Definition at line 83 of file OMTFPatternMaker.h.
Referenced by beginRun(), endJob(), and writeMergedGPs().
|
private |
Original pdf width. read from configuration.
Definition at line 74 of file OMTFPatternMaker.h.
Referenced by beginRun(), and endJob().
|
private |
Definition at line 58 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().