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 
25  ~OMTFProcessor();
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
const OMTFConfiguration * myOmtfConfig
Definition: OMTFProcessor.h:86
std::vector< int > vector1D
Definition: OMTFinput.h:13
std::vector< vector1D > vector2D
Definition: GoldenPattern.h:47
omtfParams
OMTF ESProducer.
std::map< Key, GoldenPattern * > theGPs
Map holding Golden Patterns.
Definition: OMTFProcessor.h:77
HLT enums.
std::map< Key, OMTFResult > resultsMap
Definition: OMTFProcessor.h:21
std::vector< OMTFProcessor::resultsMap > myResults
Definition: OMTFProcessor.h:82