CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
7 class OMTFResult{
8 
9  public:
10 
11  typedef std::vector<unsigned int> vector1D;
12  typedef std::vector<vector1D> vector2D;
13 
14  OMTFResult();
15 
16  const OMTFResult::vector2D & getResults() const {return results;}
17 
18  const OMTFResult::vector1D & getSummaryVals() const {return results1D;}
19 
20  const OMTFResult::vector1D & getSummaryHits() const {return hits1D;}
21 
22  const OMTFResult::vector1D & getRefPhis() const {return refPhi1D;}
23 
24  const OMTFResult::vector1D & getRefEtas() const {return refEta1D;}
25 
26  const OMTFResult::vector1D & getHitsWord() const { return hitsBits;}
27 
29 
30  void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit);
31 
32  void addResult(unsigned int iRefLayer,
33  unsigned int iLayer,
34  unsigned int val,
35  int iRefPhi, int iRefEta);
36 
37  void finalise();
38 
39  void clear();
40 
41  bool empty() const;
42 
43  friend std::ostream & operator << (std::ostream &out, const OMTFResult & aResult);
44 
45  private:
46 
51 
54 
57 
60 
63 
66 
69 
70 };
71 
72 
73 #endif
const OMTFResult::vector1D & getRefPhiRHits() const
Definition: OMTFResult.h:28
bool empty() const
Definition: OMTFResult.cc:69
vector2D results
Definition: OMTFResult.h:50
const OMTFResult::vector2D & getResults() const
Definition: OMTFResult.h:16
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:59
const OMTFResult::vector1D & getRefPhis() const
Definition: OMTFResult.h:22
const OMTFResult::vector1D & getSummaryVals() const
Definition: OMTFResult.h:18
const OMTFResult::vector1D & getHitsWord() const
Definition: OMTFResult.h:26
vector1D refPhiRHit1D
Reference phi for each reference layer - the input value.
Definition: OMTFResult.h:68
const OMTFResult::vector1D & getSummaryHits() const
Definition: OMTFResult.h:20
void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit)
Definition: OMTFResult.cc:18
vector1D refPhi1D
Reference phi for each reference layer.
Definition: OMTFResult.h:53
std::vector< vector1D > vector2D
Definition: OMTFResult.h:12
std::vector< unsigned int > vector1D
Definition: OMTFResult.h:11
void finalise()
Definition: OMTFResult.cc:49
const OMTFResult::vector1D & getRefEtas() const
Definition: OMTFResult.h:24
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:62
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
Definition: OMTFResult.cc:24
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
Definition: OMTFResult.cc:80
vector1D refEta1D
Reference phi for each reference layer.
Definition: OMTFResult.h:56
void clear()
Definition: OMTFResult.cc:37
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.
Definition: OMTFResult.h:65