#include <OMTFPatternMaker.h>
Private Member Functions | |
const SimTrack * | findSimMuon (const edm::Event &ev, const edm::EventSetup &es, const SimTrack *previous=nullptr) |
void | writeMergedGPs () |
Private Attributes | |
xercesc::DOMElement * | aTopElement |
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::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 | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Definition at line 35 of file OMTFPatternMaker.h.
OMTFPatternMaker::OMTFPatternMaker | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 23 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::EDAnalyzer.
Definition at line 245 of file OMTFPatternMaker.cc.
References OMTFinputMaker::buildInputForProcessor(), OMTFProcessor::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::EDAnalyzer.
Definition at line 87 of file OMTFPatternMaker.cc.
References myOMTF, and myOMTFConfig.
|
overridevirtual |
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
Reimplemented from edm::EDAnalyzer.
Definition at line 49 of file OMTFPatternMaker.cc.
References OMTFProcessor::configure(), OMTFConfiguration::configure(), L1TMuonOverlapParams::GENERAL_ADDRBITS, L1TMuonOverlapParams::generalParams(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::EventSetup::get(), OMTFProcessor::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::EDAnalyzer.
Definition at line 93 of file OMTFPatternMaker.cc.
References OMTFProcessor::averagePatterns(), OMTFConfiguration::configure(), gather_cfg::cout, XMLConfigWriter::finaliseXMLDocument(), MainPageGenerator::fName, L1TMuonOverlapParams::GENERAL_ADDRBITS, L1TMuonOverlapParams::generalParams(), OMTFConfiguration::getMeasurements4D(), edm::ParameterSet::getParameter(), OMTFProcessor::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().
|
private |
Definition at line 294 of file OMTFPatternMaker.cc.
References electronAnalyzer_cfi::DeltaR, ev, inputTokenSimHit, CoreSimTrack::momentum(), callgraph::previous, mps_fire::result, and CoreSimTrack::type().
Referenced by analyze().
|
private |
Write the opposite charge.
Definition at line 173 of file OMTFPatternMaker.cc.
References OMTFProcessor::getPatterns(), if(), GoldenPattern::key(), myOMTF, myOMTFConfig, myWriter, Key::theCharge, Key::thePtCode, and XMLConfigWriter::writeGPData().
Referenced by endJob().
|
private |
Definition at line 73 of file OMTFPatternMaker.h.
|
private |
Definition at line 53 of file OMTFPatternMaker.h.
|
private |
Definition at line 57 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 55 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 56 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 58 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 59 of file OMTFPatternMaker.h.
Referenced by findSimMuon(), and OMTFPatternMaker().
|
private |
Definition at line 63 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 63 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 63 of file OMTFPatternMaker.h.
Referenced by analyze(), beginRun(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 70 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 71 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
OMTF objects.
Definition at line 69 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), OMTFPatternMaker(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
Definition at line 74 of file OMTFPatternMaker.h.
Referenced by analyze(), beginRun(), endJob(), and ~OMTFPatternMaker().
|
private |
Definition at line 75 of file OMTFPatternMaker.h.
Referenced by beginRun(), endJob(), and writeMergedGPs().
|
private |
Original pdf width. read from configuration.
Definition at line 66 of file OMTFPatternMaker.h.
Referenced by beginRun(), and endJob().
|
private |
Definition at line 52 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().