CMS 3D CMS Logo

OMTFProcessor.h
Go to the documentation of this file.
1 #ifndef OMTF_OMTFProcessor_H
2 #define OMTF_OMTFProcessor_H
3 
4 #include <map>
5 
9 
11 class OMTFinput;
12 
13 class SimTrack;
14 
15 namespace edm {
16  class ParameterSet;
17 }
18 
20 public:
21  typedef std::map<Key, OMTFResult> resultsMap;
22 
24 
26 
28  bool configure(const OMTFConfiguration *omtfParams, const L1TMuonOverlapParams *omtfPatterns);
29 
34  const std::vector<OMTFProcessor::resultsMap> &processInput(unsigned int iProcessor, const OMTFinput &aInput);
35 
37  const std::map<Key, GoldenPattern *> &getPatterns() const;
38 
42  void fillCounts(unsigned int iProcessor, const OMTFinput &aInput, const SimTrack *aSimMuon);
43 
47  void averagePatterns(int charge);
48 
49 private:
51  void resetConfiguration();
52 
55  bool addGP(GoldenPattern *aGP);
56 
59  void shiftGP(GoldenPattern *aGP,
60  const GoldenPattern::vector2D &meanDistPhiNew,
61  const GoldenPattern::vector2D &meanDistPhiOld);
62 
65  void fillInputRange(unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput);
66 
67  void fillInputRange(unsigned int iProcessor, unsigned int iCone, unsigned int iRefLayer, unsigned int iHit);
68 
71  OMTFinput::vector1D restrictInput(unsigned int iProcessor,
72  unsigned int iCone,
73  unsigned int iLayer,
74  const OMTFinput::vector1D &layerHits);
75 
77  std::map<Key, GoldenPattern *> theGPs;
78 
82  std::vector<OMTFProcessor::resultsMap> myResults;
83 
87 };
88 
89 #endif
fakeOmtfParams_cff.omtfParams
omtfParams
OMTF ESProducer.
Definition: fakeOmtfParams_cff.py:11
OMTFProcessor::fillCounts
void fillCounts(unsigned int iProcessor, const OMTFinput &aInput, const SimTrack *aSimMuon)
Definition: OMTFProcessor.cc:287
OMTFProcessor::resetConfiguration
void resetConfiguration()
Reset all configuration parameters.
Definition: OMTFProcessor.cc:28
OMTFProcessor::theGPs
std::map< Key, GoldenPattern * > theGPs
Map holding Golden Patterns.
Definition: OMTFProcessor.h:77
edm
HLT enums.
Definition: AlignableModifier.h:19
OMTFProcessor::getPatterns
const std::map< Key, GoldenPattern * > & getPatterns() const
Return map of GoldenPatterns.
Definition: OMTFProcessor.cc:207
OMTFConfiguration
Definition: OMTFConfiguration.h:44
OMTFProcessor::addGP
bool addGP(GoldenPattern *aGP)
Definition: OMTFProcessor.cc:96
OMTFConfiguration.h
OMTFProcessor::shiftGP
void shiftGP(GoldenPattern *aGP, const GoldenPattern::vector2D &meanDistPhiNew, const GoldenPattern::vector2D &meanDistPhiOld)
Definition: OMTFProcessor.cc:183
OMTFProcessor
Definition: OMTFProcessor.h:19
OMTFProcessor::~OMTFProcessor
~OMTFProcessor()
Definition: OMTFProcessor.cc:22
OMTFProcessor::myResults
std::vector< OMTFProcessor::resultsMap > myResults
Definition: OMTFProcessor.h:82
L1TMuonOverlapParams
Definition: L1TMuonOverlapParams.h:14
OMTFProcessor::resultsMap
std::map< Key, OMTFResult > resultsMap
Definition: OMTFProcessor.h:21
OMTFResult.h
OMTFProcessor::fillInputRange
void fillInputRange(unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput)
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
ParameterSet
Definition: Functions.h:16
OMTFinput::vector1D
std::vector< int > vector1D
Definition: OMTFinput.h:13
OMTFProcessor::myOmtfConfig
const OMTFConfiguration * myOmtfConfig
Definition: OMTFProcessor.h:86
GoldenPattern
Definition: GoldenPattern.h:44
OMTFProcessor::configure
bool configure(const OMTFConfiguration *omtfParams, const L1TMuonOverlapParams *omtfPatterns)
Fill GP map with patterns from CondFormats object.
Definition: OMTFProcessor.cc:36
SimTrack
Definition: SimTrack.h:9
OMTFProcessor::processInput
const std::vector< OMTFProcessor::resultsMap > & processInput(unsigned int iProcessor, const OMTFinput &aInput)
Definition: OMTFProcessor.cc:210
GoldenPattern.h
OMTFinput
Definition: OMTFinput.h:11
GoldenPattern::vector2D
std::vector< vector1D > vector2D
Definition: GoldenPattern.h:47
OMTFProcessor::averagePatterns
void averagePatterns(int charge)
Definition: OMTFProcessor.cc:114
OMTFProcessor::restrictInput
OMTFinput::vector1D restrictInput(unsigned int iProcessor, unsigned int iCone, unsigned int iLayer, const OMTFinput::vector1D &layerHits)
Definition: OMTFProcessor.cc:270
OMTFProcessor::OMTFProcessor
OMTFProcessor()
Definition: OMTFProcessor.h:23