CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
OMTFPatternMaker Class Reference

#include <OMTFPatternMaker.h>

Inheritance diagram for OMTFPatternMaker:
edm::EDAnalyzer edm::EDConsumerBase

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< ConsumesInfoconsumesInfo () 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 SimTrackfindSimMuon (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
 
OMTFinputMakermyInputMaker
 
OMTFProcessormyOMTF
 
OMTFConfigurationmyOMTFConfig
 OMTF objects. More...
 
OMTFConfigMakermyOMTFConfigMaker
 
XMLConfigWritermyWriter
 
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 &)
 
- 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)
 

Detailed Description

Definition at line 35 of file OMTFPatternMaker.h.

Constructor & Destructor Documentation

OMTFPatternMaker::OMTFPatternMaker ( const edm::ParameterSet cfg)

Definition at line 22 of file OMTFPatternMaker.cc.

OMTFPatternMaker::~OMTFPatternMaker ( )
virtual

Definition at line 42 of file OMTFPatternMaker.cc.

Member Function Documentation

void OMTFPatternMaker::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
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 233 of file OMTFPatternMaker.cc.

void OMTFPatternMaker::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 88 of file OMTFPatternMaker.cc.

void OMTFPatternMaker::beginRun ( edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
virtual

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 51 of file OMTFPatternMaker.cc.

void OMTFPatternMaker::endJob ( void  )
virtual

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 95 of file OMTFPatternMaker.cc.

const SimTrack * OMTFPatternMaker::findSimMuon ( const edm::Event ev,
const edm::EventSetup es,
const SimTrack previous = 0 
)
private

Definition at line 284 of file OMTFPatternMaker.cc.

void OMTFPatternMaker::writeMergedGPs ( )
private

Write the opposite charge.

Definition at line 174 of file OMTFPatternMaker.cc.

Member Data Documentation

xercesc::DOMElement* OMTFPatternMaker::aTopElement
private

Definition at line 75 of file OMTFPatternMaker.h.

edm::InputTag OMTFPatternMaker::g4SimTrackSrc
private

Definition at line 55 of file OMTFPatternMaker.h.

edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> OMTFPatternMaker::inputTokenCSC
private

Definition at line 59 of file OMTFPatternMaker.h.

edm::EDGetTokenT<L1MuDTChambPhContainer> OMTFPatternMaker::inputTokenDTPh
private

Definition at line 57 of file OMTFPatternMaker.h.

edm::EDGetTokenT<L1MuDTChambThContainer> OMTFPatternMaker::inputTokenDTTh
private

Definition at line 58 of file OMTFPatternMaker.h.

edm::EDGetTokenT<RPCDigiCollection> OMTFPatternMaker::inputTokenRPC
private

Definition at line 60 of file OMTFPatternMaker.h.

edm::EDGetTokenT<edm::SimTrackContainer> OMTFPatternMaker::inputTokenSimHit
private

Definition at line 61 of file OMTFPatternMaker.h.

bool OMTFPatternMaker::makeConnectionsMaps
private

Definition at line 65 of file OMTFPatternMaker.h.

bool OMTFPatternMaker::makeGoldenPatterns
private

Definition at line 65 of file OMTFPatternMaker.h.

bool OMTFPatternMaker::mergeXMLFiles
private

Definition at line 65 of file OMTFPatternMaker.h.

OMTFinputMaker* OMTFPatternMaker::myInputMaker
private

Definition at line 72 of file OMTFPatternMaker.h.

OMTFProcessor* OMTFPatternMaker::myOMTF
private

Definition at line 73 of file OMTFPatternMaker.h.

OMTFConfiguration* OMTFPatternMaker::myOMTFConfig
private

OMTF objects.

Definition at line 71 of file OMTFPatternMaker.h.

OMTFConfigMaker* OMTFPatternMaker::myOMTFConfigMaker
private

Definition at line 76 of file OMTFPatternMaker.h.

XMLConfigWriter* OMTFPatternMaker::myWriter
private

Definition at line 77 of file OMTFPatternMaker.h.

unsigned int OMTFPatternMaker::nPdfAddrBits
private

Original pdf width. read from configuration.

Definition at line 68 of file OMTFPatternMaker.h.

edm::ParameterSet OMTFPatternMaker::theConfig
private

Definition at line 54 of file OMTFPatternMaker.h.