CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void fillCounts(unsigned int iProcessor, const OMTFinput &aInput, const SimTrack *aSimMuon)
void fillInputRange(unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput)
std::vector< OMTFProcessor::resultsMap > myResults
Definition: OMTFProcessor.h:82
tuple omtfParams
OMTF ESProducer.
bool addGP(GoldenPattern *aGP)
void averagePatterns(int charge)
std::vector< int > vector1D
Definition: OMTFinput.h:13
std::map< Key, OMTFResult > resultsMap
Definition: OMTFProcessor.h:21
std::map< Key, GoldenPattern * > theGPs
Map holding Golden Patterns.
Definition: OMTFProcessor.h:77
std::vector< vector1D > vector2D
Definition: GoldenPattern.h:47
void shiftGP(GoldenPattern *aGP, const GoldenPattern::vector2D &meanDistPhiNew, const GoldenPattern::vector2D &meanDistPhiOld)
const std::vector< OMTFProcessor::resultsMap > & processInput(unsigned int iProcessor, const OMTFinput &aInput)
OMTFinput::vector1D restrictInput(unsigned int iProcessor, unsigned int iCone, unsigned int iLayer, const OMTFinput::vector1D &layerHits)
const std::map< Key, GoldenPattern * > & getPatterns() const
Return map of GoldenPatterns.
bool configure(const OMTFConfiguration *omtfParams, const L1TMuonOverlapParams *omtfPatterns)
Fill GP map with patterns from CondFormats object.
const OMTFConfiguration * myOmtfConfig
Definition: OMTFProcessor.h:86
void resetConfiguration()
Reset all configuration parameters.