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 
8 
9 class OMTFResult{
10 
11  public:
12 
13  typedef std::vector<unsigned int> vector1D;
14  typedef std::vector<vector1D> vector2D;
15 
17 
18  void configure(const OMTFConfiguration * omtfConfig);
19 
20  const OMTFResult::vector2D & getResults() const {return results;}
21 
22  const OMTFResult::vector1D & getSummaryVals() const {return results1D;}
23 
24  const OMTFResult::vector1D & getSummaryHits() const {return hits1D;}
25 
26  const OMTFResult::vector1D & getRefPhis() const {return refPhi1D;}
27 
28  const OMTFResult::vector1D & getRefEtas() const {return refEta1D;}
29 
30  const OMTFResult::vector1D & getHitsWord() const { return hitsBits;}
31 
33 
34  void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit);
35 
36  void addResult(unsigned int iRefLayer,
37  unsigned int iLayer,
38  unsigned int val,
39  int iRefPhi, int iRefEta);
40 
41  void finalise();
42 
43  void clear();
44 
45  bool empty() const;
46 
47  friend std::ostream & operator << (std::ostream &out, const OMTFResult & aResult);
48 
49  private:
50 
55 
58 
61 
64 
67 
70 
73 
75 
76 };
77 
78 
79 #endif
const OMTFResult::vector1D & getRefPhiRHits() const
Definition: OMTFResult.h:32
const OMTFConfiguration * myOmtfConfig
Definition: OMTFResult.h:74
bool empty() const
Definition: OMTFResult.cc:67
vector2D results
Definition: OMTFResult.h:54
const OMTFResult::vector2D & getResults() const
Definition: OMTFResult.h:20
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:63
const OMTFResult::vector1D & getRefPhis() const
Definition: OMTFResult.h:26
const OMTFResult::vector1D & getSummaryVals() const
Definition: OMTFResult.h:22
const OMTFResult::vector1D & getHitsWord() const
Definition: OMTFResult.h:30
vector1D refPhiRHit1D
Reference phi for each reference layer - the input value.
Definition: OMTFResult.h:72
const OMTFResult::vector1D & getSummaryHits() const
Definition: OMTFResult.h:24
void configure(const OMTFConfiguration *omtfConfig)
Definition: OMTFResult.cc:10
void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit)
Definition: OMTFResult.cc:20
vector1D refPhi1D
Reference phi for each reference layer.
Definition: OMTFResult.h:57
std::vector< vector1D > vector2D
Definition: OMTFResult.h:14
std::vector< unsigned int > vector1D
Definition: OMTFResult.h:13
void finalise()
Definition: OMTFResult.cc:51
const OMTFResult::vector1D & getRefEtas() const
Definition: OMTFResult.h:28
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:66
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
Definition: OMTFResult.cc:26
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
Definition: OMTFResult.cc:77
vector1D refEta1D
Reference phi for each reference layer.
Definition: OMTFResult.h:60
void clear()
Definition: OMTFResult.cc:39
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.
Definition: OMTFResult.h:69