#include <OMTFPatternMaker.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | beginRun (edm::Run const &run, edm::EventSetup const &iSetup) |
virtual void | endJob () |
OMTFPatternMaker (const edm::ParameterSet &cfg) | |
virtual | ~OMTFPatternMaker () |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
const SimTrack * | findSimMuon (const edm::Event &ev, const edm::EventSetup &es, const SimTrack *previous=0) |
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 |
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 &) |
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 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) |
Definition at line 35 of file OMTFPatternMaker.h.
OMTFPatternMaker::OMTFPatternMaker | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 22 of file OMTFPatternMaker.cc.
References edm::ParameterSet::getParameter(), inputTokenCSC, inputTokenDTPh, inputTokenDTTh, inputTokenRPC, inputTokenSimHit, makeConnectionsMaps, makeGoldenPatterns, mergeXMLFiles, myInputMaker, myOMTFConfig, and theConfig.
|
virtual |
Definition at line 42 of file OMTFPatternMaker.cc.
References myOMTF, myOMTFConfig, and myOMTFConfigMaker.
|
virtual |
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 220 of file OMTFPatternMaker.cc.
References OMTFinputMaker::buildInputForProcessor(), OMTFProcessor::fillCounts(), findSimMuon(), edm::Event::getByToken(), edm::ParameterSet::getParameter(), OMTFinputMaker::initialize(), inputTokenCSC, inputTokenDTPh, inputTokenDTTh, inputTokenRPC, makeConnectionsMaps, OMTFConfigMaker::makeConnetionsMap(), makeGoldenPatterns, mergeXMLFiles, myInputMaker, myOMTF, myOMTFConfig, myOMTFConfigMaker, l1t::omtf_pos, edm::Handle< T >::product(), and theConfig.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 82 of file OMTFPatternMaker.cc.
References myOMTF, myOMTFConfig, and myOMTFConfigMaker.
|
virtual |
For making the patterns use extended pdf width in phi /Ugly hack to modify configuration parameters at runtime.
Clear existing GoldenPatterns
Reimplemented from edm::EDAnalyzer.
Definition at line 51 of file OMTFPatternMaker.cc.
References OMTFProcessor::configure(), OMTFConfiguration::configure(), MainPageGenerator::fName, edm::EventSetup::get(), edm::eventsetup::EventSetupRecord::get(), OMTFProcessor::getPatterns(), XMLConfigWriter::initialiseXMLDocument(), myOMTF, myOMTFConfig, myWriter, fakeOmtfParams_cff::omtfParams, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
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 90 of file OMTFPatternMaker.cc.
References OMTFProcessor::averagePatterns(), gather_cfg::cout, XMLConfigWriter::finaliseXMLDocument(), MainPageGenerator::fName, OMTFConfiguration::getMeasurements4D(), edm::ParameterSet::getParameter(), OMTFProcessor::getPatterns(), XMLConfigWriter::initialiseXMLDocument(), makeConnectionsMaps, makeGoldenPatterns, mergeXMLFiles, myOMTF, myOMTFConfig, myOMTFConfigMaker, myWriter, OMTFConfigMaker::printConnections(), OMTFConfigMaker::printPhiMap(), RPCConst::ptFromIpt(), GoldenPattern::reset(), AlCaHLTBitMon_QueryRunRegistry::string, theConfig, XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeGPData(), and writeMergedGPs().
|
private |
Definition at line 271 of file OMTFPatternMaker.cc.
References HLT_25ns10e33_v2_cff::DeltaR, edm::Event::getByToken(), inputTokenSimHit, CoreSimTrack::momentum(), mps_fire::result, and CoreSimTrack::type().
Referenced by analyze().
|
private |
Write the opposite charge.
Definition at line 161 of file OMTFPatternMaker.cc.
References OMTFProcessor::getPatterns(), GoldenPattern::key(), myOMTF, myOMTFConfig, myWriter, GoldenPattern::reset(), Key::theCharge, Key::thePtCode, and XMLConfigWriter::writeGPData().
Referenced by endJob().
|
private |
Definition at line 72 of file OMTFPatternMaker.h.
|
private |
Definition at line 55 of file OMTFPatternMaker.h.
|
private |
Definition at line 59 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 57 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 60 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 61 of file OMTFPatternMaker.h.
Referenced by findSimMuon(), and OMTFPatternMaker().
|
private |
Definition at line 65 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 65 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 65 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().
|
private |
Definition at line 69 of file OMTFPatternMaker.h.
Referenced by analyze(), and OMTFPatternMaker().
|
private |
Definition at line 70 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
OMTF objects.
Definition at line 68 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), beginRun(), endJob(), OMTFPatternMaker(), writeMergedGPs(), and ~OMTFPatternMaker().
|
private |
Definition at line 73 of file OMTFPatternMaker.h.
Referenced by analyze(), beginJob(), endJob(), and ~OMTFPatternMaker().
|
private |
Definition at line 74 of file OMTFPatternMaker.h.
Referenced by beginRun(), endJob(), and writeMergedGPs().
|
private |
Definition at line 54 of file OMTFPatternMaker.h.
Referenced by analyze(), endJob(), and OMTFPatternMaker().