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 
9 
10 
12 class XMLConfigReader;
13 class OMTFinput;
14 
15 class SimTrack;
16 
17 namespace edm{
18 class ParameterSet;
19 }
20 
22 
23  public:
24 
25  typedef std::map<Key,OMTFResult> resultsMap;
26 
27  OMTFProcessor(const edm::ParameterSet & cfg, OMTFConfiguration * omtf_config);
28 
30 
32  bool configure(XMLConfigReader *aReader);
33 
36 
41  const std::vector<OMTFProcessor::resultsMap> & processInput(unsigned int iProcessor,
42  const OMTFinput & aInput);
43 
45  const std::map<Key,GoldenPattern*> & getPatterns() const;
46 
50  void fillCounts(unsigned int iProcessor,
51  const OMTFinput & aInput,
52  const SimTrack* aSimMuon);
53 
57  void averagePatterns(int charge);
58 
59  private:
60 
62  void resetConfiguration();
63 
66  bool addGP(GoldenPattern *aGP);
67 
70  void shiftGP(GoldenPattern *aGP,
71  const GoldenPattern::vector2D & meanDistPhiNew,
72  const GoldenPattern::vector2D & meanDistPhiOld);
73 
76  void fillInputRange(unsigned int iProcessor,
77  unsigned int iCone,
78  const OMTFinput & aInput);
79 
80  void fillInputRange(unsigned int iProcessor,
81  unsigned int iCone,
82  unsigned int iRefLayer,
83  unsigned int iHit);
84 
87  OMTFinput::vector1D restrictInput(unsigned int iProcessor,
88  unsigned int iCone,
89  unsigned int iLayer,
90  const OMTFinput::vector1D & layerHits);
91 
93  std::map<Key,GoldenPattern*> theGPs;
94 
98  std::vector<OMTFProcessor::resultsMap> myResults;
99 
101 };
102 
103 
104 #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:93
std::map< Key, OMTFResult > resultsMap
Definition: OMTFProcessor.h:25
std::vector< int > vector1D
Definition: OMTFinput.h:14
bool configure(XMLConfigReader *aReader)
Fill GP map with patterns from XML file.
OMTFConfiguration * m_omtf_config
bool addGP(GoldenPattern *aGP)
std::vector< vector1D > vector2D
Definition: GoldenPattern.h:50
tuple omtfParams
OMTF ESProducer.
void resetConfiguration()
Reset all configuration parameters.
OMTFProcessor(const edm::ParameterSet &cfg, OMTFConfiguration *omtf_config)
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)
const std::vector< OMTFProcessor::resultsMap > & processInput(unsigned int iProcessor, const OMTFinput &aInput)
void fillInputRange(unsigned int iProcessor, unsigned int iCone, const OMTFinput &aInput)
const std::map< Key, GoldenPattern * > & getPatterns() const
Return map of GoldenPatterns.
std::vector< OMTFProcessor::resultsMap > myResults
Definition: OMTFProcessor.h:98