CMS 3D CMS Logo

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 
16  void configure(const OMTFConfiguration *omtfConfig);
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
OMTFResult::setRefPhiRHits
void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit)
Definition: OMTFResult.cc:18
OMTFResult::configure
void configure(const OMTFConfiguration *omtfConfig)
Definition: OMTFResult.cc:10
OMTFResult::refPhi1D
vector1D refPhi1D
Reference phi for each reference layer.
Definition: OMTFResult.h:51
OMTFResult::getSummaryVals
const OMTFResult::vector1D & getSummaryVals() const
Definition: OMTFResult.h:20
OMTFResult::vector2D
std::vector< vector1D > vector2D
Definition: OMTFResult.h:12
OMTFResult::vector1D
std::vector< unsigned int > vector1D
Definition: OMTFResult.h:11
OMTFResult::getRefPhis
const OMTFResult::vector1D & getRefPhis() const
Definition: OMTFResult.h:24
OMTFResult::getHitsWord
const OMTFResult::vector1D & getHitsWord() const
Definition: OMTFResult.h:28
OMTFResult::hits1D
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:60
OMTFResult::getRefEtas
const OMTFResult::vector1D & getRefEtas() const
Definition: OMTFResult.h:26
OMTFResult::finalise
void finalise()
Definition: OMTFResult.cc:40
OMTFConfiguration
Definition: OMTFConfiguration.h:44
OMTFResult::addResult
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
Definition: OMTFResult.cc:22
OMTFResult::operator<<
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
Definition: OMTFResult.cc:70
OMTFResult::refEta1D
vector1D refEta1D
Reference phi for each reference layer.
Definition: OMTFResult.h:54
OMTFResult::empty
bool empty() const
Definition: OMTFResult.cc:61
OMTFResult::getRefPhiRHits
const OMTFResult::vector1D & getRefPhiRHits() const
Definition: OMTFResult.h:30
OMTFResult::clear
void clear()
Definition: OMTFResult.cc:29
OMTFResult::OMTFResult
OMTFResult()
Definition: OMTFResult.h:14
OMTFResult::hitsBits
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.
Definition: OMTFResult.h:63
OMTFResult::getResults
const OMTFResult::vector2D & getResults() const
Definition: OMTFResult.h:18
OMTFResult::myOmtfConfig
const OMTFConfiguration * myOmtfConfig
Definition: OMTFResult.h:68
OMTFResult::getSummaryHits
const OMTFResult::vector1D & getSummaryHits() const
Definition: OMTFResult.h:22
OMTFResult::results1D
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:57
OMTFResult::results
vector2D results
Definition: OMTFResult.h:48
heppy_batch.val
val
Definition: heppy_batch.py:351
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
OMTFResult
Definition: OMTFResult.h:9
OMTFResult::refPhiRHit1D
vector1D refPhiRHit1D
Reference phi for each reference layer - the input value.
Definition: OMTFResult.h:66