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 
28 
29  void addResult(unsigned int iRefLayer,
30  unsigned int iLayer,
31  unsigned int val,
32  int iRefPhi, int iRefEta);
33 
34  void finalise();
35 
36  void clear();
37 
38  bool empty() const;
39 
40  friend std::ostream & operator << (std::ostream &out, const OMTFResult & aResult);
41 
42  private:
43 
48 
51 
54 
57 
60 
63 
64 };
65 
66 
67 #endif
bool empty() const
Definition: OMTFResult.cc:57
vector2D results
Definition: OMTFResult.h:47
const OMTFResult::vector2D & getResults() const
Definition: OMTFResult.h:16
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:56
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
const OMTFResult::vector1D & getSummaryHits() const
Definition: OMTFResult.h:20
vector1D refPhi1D
Reference phi for each reference layer.
Definition: OMTFResult.h:50
std::vector< vector1D > vector2D
Definition: OMTFResult.h:12
std::vector< unsigned int > vector1D
Definition: OMTFResult.h:11
void finalise()
Definition: OMTFResult.cc:41
const OMTFResult::vector1D & getRefEtas() const
Definition: OMTFResult.h:24
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:59
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
Definition: OMTFResult.cc:17
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
Definition: OMTFResult.cc:68
vector1D refEta1D
Reference phi for each reference layer.
Definition: OMTFResult.h:53
void clear()
Definition: OMTFResult.cc:30
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.
Definition: OMTFResult.h:62