#include <OMTFProcessor.h>
Public Types | |
typedef std::map< Key, OMTFResult > | resultsMap |
Public Member Functions | |
void | averagePatterns (int charge) |
bool | configure (const OMTFConfiguration *omtfParams, const L1TMuonOverlapParams *omtfPatterns) |
Fill GP map with patterns from CondFormats object. More... | |
void | fillCounts (unsigned int iProcessor, const OMTFinput &aInput, const SimTrack *aSimMuon) |
const std::map< Key, GoldenPattern * > & | getPatterns () const |
Return map of GoldenPatterns. More... | |
OMTFProcessor () | |
const std::vector < OMTFProcessor::resultsMap > & | processInput (unsigned int iProcessor, const OMTFinput &aInput) |
~OMTFProcessor () | |
Private Member Functions | |
bool | addGP (GoldenPattern *aGP) |
void | fillInputRange (unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput) |
void | fillInputRange (unsigned int iProcessor, unsigned int iCone, unsigned int iRefLayer, unsigned int iHit) |
void | resetConfiguration () |
Reset all configuration parameters. More... | |
OMTFinput::vector1D | restrictInput (unsigned int iProcessor, unsigned int iCone, unsigned int iLayer, const OMTFinput::vector1D &layerHits) |
void | shiftGP (GoldenPattern *aGP, const GoldenPattern::vector2D &meanDistPhiNew, const GoldenPattern::vector2D &meanDistPhiOld) |
Private Attributes | |
const OMTFConfiguration * | myOmtfConfig |
std::vector < OMTFProcessor::resultsMap > | myResults |
std::map< Key, GoldenPattern * > | theGPs |
Map holding Golden Patterns. More... | |
Definition at line 20 of file OMTFProcessor.h.
typedef std::map<Key,OMTFResult> OMTFProcessor::resultsMap |
Definition at line 24 of file OMTFProcessor.h.
|
inline |
Definition at line 26 of file OMTFProcessor.h.
OMTFProcessor::~OMTFProcessor | ( | ) |
Definition at line 22 of file OMTFProcessor.cc.
References theGPs.
|
private |
Add GoldenPattern to pattern map. If GP key already exists in map, a new entry is ignored
Definition at line 97 of file OMTFProcessor.cc.
References OMTFResult::configure(), Exception, GoldenPattern::key(), myOmtfConfig, myResults, and theGPs.
Referenced by configure().
void OMTFProcessor::averagePatterns | ( | int | charge | ) |
Average patterns. Use same meanDistPhi for two patterns neighboring in pt code. Averaging is made saparately fo each charge
Previously pt codes were going by steps of 1, now this is not the case
Definition at line 117 of file OMTFProcessor.cc.
References GoldenPattern::getMeanDistPhi(), myOmtfConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nRefLayers(), GoldenPattern::setMeanDistPhi(), shiftGP(), theGPs, and Key::thePtCode.
Referenced by OMTFPatternMaker::endJob().
bool OMTFProcessor::configure | ( | const OMTFConfiguration * | omtfParams, |
const L1TMuonOverlapParams * | omtfPatterns | ||
) |
Fill GP map with patterns from CondFormats object.
Mean dist phi data
Pdf data
Definition at line 36 of file OMTFProcessor.cc.
References addGP(), L1TMuonOverlapParams::chargeLUT(), l1t::LUT::data(), L1TMuonOverlapParams::etaLUT(), L1TMuonOverlapParams::meanDistPhiLUT(), myOmtfConfig, myResults, OMTFConfiguration::nGoldenPatterns(), OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), l1t::LUT::nrBitsData(), OMTFConfiguration::nRefLayers(), OMTFConfiguration::nTestRefHits(), L1TMuonOverlapParams::pdfLUT(), L1TMuonOverlapParams::ptLUT(), resetConfiguration(), GoldenPattern::setMeanDistPhi(), and GoldenPattern::setPdf().
Referenced by OMTFPatternMaker::beginRun(), and OMTFReconstruction::beginRun().
void OMTFProcessor::fillCounts | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput, | ||
const SimTrack * | aSimMuon | ||
) |
Fill counts for a GoldenPattern of this processor unit. Pattern key is selcted according to the SimTrack parameters.
Stupid conersion. Have to go through PAC pt scale, as we later shift resulting pt code by +1
Number of reference hits to be checked.
Definition at line 280 of file OMTFProcessor.cc.
References funct::abs(), OMTFConfiguration::getBendingLayers(), OMTFinput::getLayerData(), OMTFinput::getRefHits(), OMTFConfiguration::getRefHitsDefs(), OMTFConfiguration::getRefToLogicNumber(), RefHitDef::iInput, RPCConst::iptFromPt(), RefHitDef::iRefLayer, RefHitDef::iRegion, CoreSimTrack::momentum(), myOmtfConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nRefHits(), RPCConst::ptFromIpt(), restrictInput(), theGPs, and CoreSimTrack::type().
Referenced by OMTFPatternMaker::analyze().
|
private |
Fill map of used inputs. FIXME: using hack from OMTFConfiguration
|
private |
const std::map< Key, GoldenPattern * > & OMTFProcessor::getPatterns | ( | ) | const |
Return map of GoldenPatterns.
Definition at line 207 of file OMTFProcessor.cc.
References theGPs.
Referenced by OMTFPatternMaker::beginRun(), OMTFPatternMaker::endJob(), and OMTFPatternMaker::writeMergedGPs().
const std::vector< OMTFProcessor::resultsMap > & OMTFProcessor::processInput | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput | ||
) |
Process input data from a single event Input data is represented by hits in logic layers expressed in local coordinates Vector index: logic region number Map key: GoldenPattern key
Number of reference hits to be checked.
Definition at line 210 of file OMTFProcessor.cc.
References OMTFConfiguration::getBendingLayers(), OMTFinput::getLayerData(), OMTFinput::getRefHits(), OMTFConfiguration::getRefHitsDefs(), OMTFConfiguration::getRefToLogicNumber(), RefHitDef::iInput, RefHitDef::iRefLayer, RefHitDef::iRegion, myOmtfConfig, myResults, OMTFConfiguration::nLayers(), OMTFConfiguration::nRefHits(), OMTFConfiguration::nTestRefHits(), restrictInput(), and theGPs.
Referenced by OMTFReconstruction::getProcessorCandidates().
|
private |
Reset all configuration parameters.
Definition at line 29 of file OMTFProcessor.cc.
References myResults, and theGPs.
Referenced by configure().
|
private |
Remove hits whis are outside input range for given processor and cone
Definition at line 263 of file OMTFProcessor.cc.
References OMTFConfiguration::getConnections(), myOmtfConfig, and OMTFConfiguration::nPhiBins().
Referenced by fillCounts(), and processInput().
|
private |
Shift pdf indexes by differecne between averaged and original meanDistPhi
Shift pdfs by differecne between original menaDistPhi, and the averaged value
Definition at line 183 of file OMTFProcessor.cc.
References GoldenPattern::getPdf(), myOmtfConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nRefLayers(), GoldenPattern::pdfValue(), and GoldenPattern::setPdf().
Referenced by averagePatterns().
|
private |
Configuration of the algorithm. This object does not contain the patterns data.
Definition at line 98 of file OMTFProcessor.h.
Referenced by addGP(), averagePatterns(), configure(), fillCounts(), processInput(), restrictInput(), and shiftGP().
|
private |
Map holding results on current event data for each GP. Reference hit number is isued as a vector index.
Definition at line 94 of file OMTFProcessor.h.
Referenced by addGP(), configure(), processInput(), and resetConfiguration().
|
private |
Map holding Golden Patterns.
Definition at line 89 of file OMTFProcessor.h.
Referenced by addGP(), averagePatterns(), fillCounts(), getPatterns(), processInput(), resetConfiguration(), and ~OMTFProcessor().