CMS 3D CMS Logo

ValidHit.h
Go to the documentation of this file.
1 #ifndef Validation_HGCalBValidation_ValidHit_h
2 #define Validation_HGCalBValidation_ValidHit_h
3 
4 #include "TObject.h"
5 #include <iostream>
6 #include <vector>
7 
8 class ValidHit {
9 public:
10  ValidHit() : energy_(0), time_(0), timeError_(0), id_(0), flagBits_(0), son_(0) {}
11  ValidHit(float energy, float time, float timeError, uint32_t id, uint32_t flagBits, uint8_t son)
14  energy_ = other.energy_;
15  time_ = other.time_;
16  timeError_ = other.timeError_;
17  id_ = other.id_;
18  flagBits_ = other.flagBits_;
19  son_ = other.son_;
20  }
21 
22  virtual ~ValidHit() {}
23 
24  float energy() { return energy_; }
25  float time() { return time_; }
26  float timeError() { return timeError_; }
27  uint32_t id() { return id_; }
28  uint32_t flagBits() { return flagBits_; }
29  uint8_t son() { return son_; }
30 
31  float energy_; //calibrated energy of the rechit
32  float time_; //time jitter of the UncalibRecHit
33  float timeError_; //time resolution
34  uint32_t id_; //rechit detId
35  uint32_t flagBits_; //rechit flags describing its status (DataFormats/HGCRecHit/interface/HGCRecHit.h)
36  uint8_t son_; //signal over noise
37 
38  ClassDef(ValidHit, 1)
39 };
40 
41 typedef std::vector<ValidHit> ValidHitCollection;
42 
43 #endif //Validation_HGCalBValidation_ValidHit_h
ValidHit::ValidHit
ValidHit()
Definition: ValidHit.h:10
ValidHitCollection
std::vector< ValidHit > ValidHitCollection
Definition: ValidHit.h:41
ValidHit::id
uint32_t id()
Definition: ValidHit.h:27
ValidHit::flagBits
uint32_t flagBits()
Definition: ValidHit.h:28
ValidHit::energy_
float energy_
Definition: ValidHit.h:31
ValidHit::time
float time()
Definition: ValidHit.h:25
ValidHit::son
uint8_t son()
Definition: ValidHit.h:29
ValidHit::timeError_
float timeError_
Definition: ValidHit.h:33
ValidHit::ValidHit
ValidHit(const ValidHit &other)
Definition: ValidHit.h:13
ValidHit::time_
float time_
Definition: ValidHit.h:32
ValidHit::energy
float energy()
Definition: ValidHit.h:24
ValidHit::~ValidHit
virtual ~ValidHit()
Definition: ValidHit.h:22
trackingPlots.other
other
Definition: trackingPlots.py:1460
ValidHit::ValidHit
ValidHit(float energy, float time, float timeError, uint32_t id, uint32_t flagBits, uint8_t son)
Definition: ValidHit.h:11
ValidHit
Definition: ValidHit.h:8
ValidHit::timeError
float timeError()
Definition: ValidHit.h:26
ValidHit::id_
uint32_t id_
Definition: ValidHit.h:34
ValidHit::son_
uint8_t son_
Definition: ValidHit.h:36
ValidHit::flagBits_
uint32_t flagBits_
Definition: ValidHit.h:35