CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OMTFResult.h
Go to the documentation of this file.
1 #ifndef OMTF_OMTFResult_H
2 #define OMTF_OMTFResult_H
3 
4 #include <vector>
5 #include <ostream>
6 
8 
9 class OMTFResult {
10 public:
11  typedef std::vector<unsigned int> vector1D;
12  typedef std::vector<vector1D> vector2D;
13 
15 
17 
18  const OMTFResult::vector2D &getResults() const { return results; }
19 
20  const OMTFResult::vector1D &getSummaryVals() const { return results1D; }
21 
22  const OMTFResult::vector1D &getSummaryHits() const { return hits1D; }
23 
24  const OMTFResult::vector1D &getRefPhis() const { return refPhi1D; }
25 
26  const OMTFResult::vector1D &getRefEtas() const { return refEta1D; }
27 
28  const OMTFResult::vector1D &getHitsWord() const { return hitsBits; }
29 
31 
32  void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit);
33 
34  void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta);
35 
36  void finalise();
37 
38  void clear();
39 
40  bool empty() const;
41 
42  friend std::ostream &operator<<(std::ostream &out, const OMTFResult &aResult);
43 
44 private:
49 
52 
55 
58 
61 
64 
67 
69 };
70 
71 #endif
const OMTFResult::vector1D & getRefPhiRHits() const
Definition: OMTFResult.h:30
const OMTFConfiguration * myOmtfConfig
Definition: OMTFResult.h:68
bool empty() const
Definition: OMTFResult.cc:61
vector2D results
Definition: OMTFResult.h:48
const OMTFResult::vector2D & getResults() const
Definition: OMTFResult.h:18
omtfConfig(omtfConfig)
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:57
const OMTFResult::vector1D & getRefPhis() const
Definition: OMTFResult.h:24
const OMTFResult::vector1D & getSummaryVals() const
Definition: OMTFResult.h:20
const OMTFResult::vector1D & getHitsWord() const
Definition: OMTFResult.h:28
vector1D refPhiRHit1D
Reference phi for each reference layer - the input value.
Definition: OMTFResult.h:66
const OMTFResult::vector1D & getSummaryHits() const
Definition: OMTFResult.h:22
void configure(const OMTFConfiguration *omtfConfig)
Definition: OMTFResult.cc:10
void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit)
Definition: OMTFResult.cc:18
vector1D refPhi1D
Reference phi for each reference layer.
Definition: OMTFResult.h:51
std::vector< vector1D > vector2D
Definition: OMTFResult.h:12
std::vector< unsigned int > vector1D
Definition: OMTFResult.h:11
void finalise()
Definition: OMTFResult.cc:40
const OMTFResult::vector1D & getRefEtas() const
Definition: OMTFResult.h:26
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:60
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
Definition: OMTFResult.cc:22
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
Definition: OMTFResult.cc:70
vector1D refEta1D
Reference phi for each reference layer.
Definition: OMTFResult.h:54
void clear()
Definition: OMTFResult.cc:29
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.
Definition: OMTFResult.h:63