CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
8 
10 class OMTFConfiguration;
11 class XMLConfigReader;
12 class OMTFinput;
13 
14 class SimTrack;
15 
16 namespace edm{
17 class ParameterSet;
18 }
19 
21 
22  public:
23 
24  typedef std::map<Key,OMTFResult> resultsMap;
25 
27 
29 
31  bool configure(XMLConfigReader *aReader);
32 
34  bool configure(std::shared_ptr<L1TMuonOverlapParams> omtfParams);
35 
40  const std::vector<OMTFProcessor::resultsMap> & processInput(unsigned int iProcessor,
41  const OMTFinput & aInput);
42 
44  const std::map<Key,GoldenPattern*> & getPatterns() const;
45 
49  OMTFinput shiftInput(unsigned int iProcessor,
50  const OMTFinput & aInput);
51 
55  void fillCounts(unsigned int iProcessor,
56  const OMTFinput & aInput,
57  const SimTrack* aSimMuon);
58 
62  void averagePatterns(int charge);
63 
64  private:
65 
67  void resetConfiguration();
68 
71  bool addGP(GoldenPattern *aGP);
72 
75  void shiftGP(GoldenPattern *aGP,
76  const GoldenPattern::vector2D & meanDistPhiNew,
77  const GoldenPattern::vector2D & meanDistPhiOld);
78 
81  void fillInputRange(unsigned int iProcessor,
82  unsigned int iCone,
83  const OMTFinput & aInput);
84 
85  void fillInputRange(unsigned int iProcessor,
86  unsigned int iCone,
87  unsigned int iRefLayer,
88  unsigned int iHit);
89 
92  OMTFinput::vector1D restrictInput(unsigned int iProcessor,
93  unsigned int iCone,
94  unsigned int iLayer,
95  const OMTFinput::vector1D & layerHits);
96 
98  std::map<Key,GoldenPattern*> theGPs;
99 
103  std::vector<OMTFProcessor::resultsMap> myResults;
104 
105 };
106 
107 
108 #endif
void fillCounts(unsigned int iProcessor, const OMTFinput &aInput, const SimTrack *aSimMuon)
void averagePatterns(int charge)
tuple cfg
Definition: looper.py:293
std::map< Key, GoldenPattern * > theGPs
Map holding Golden Patterns.
Definition: OMTFProcessor.h:98
std::map< Key, OMTFResult > resultsMap
Definition: OMTFProcessor.h:24
std::vector< int > vector1D
Definition: OMTFinput.h:14
bool configure(XMLConfigReader *aReader)
Fill GP map with patterns from XML file.
bool addGP(GoldenPattern *aGP)
std::vector< vector1D > vector2D
Definition: GoldenPattern.h:50
void resetConfiguration()
Reset all configuration parameters.
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)
OMTFProcessor(const edm::ParameterSet &cfg)
const std::vector< OMTFProcessor::resultsMap > & processInput(unsigned int iProcessor, const OMTFinput &aInput)
void fillInputRange(unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput)
OMTFinput shiftInput(unsigned int iProcessor, const OMTFinput &aInput)
const std::map< Key, GoldenPattern * > & getPatterns() const
Return map of GoldenPatterns.
std::vector< OMTFProcessor::resultsMap > myResults