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
virtual ~ValidHit()
Definition: ValidHit.h:22
float time_
Definition: ValidHit.h:32
float energy()
Definition: ValidHit.h:24
uint8_t son()
Definition: ValidHit.h:29
uint32_t flagBits_
Definition: ValidHit.h:35
float timeError()
Definition: ValidHit.h:26
ValidHit(float energy, float time, float timeError, uint32_t id, uint32_t flagBits, uint8_t son)
Definition: ValidHit.h:11
uint32_t flagBits()
Definition: ValidHit.h:28
float time()
Definition: ValidHit.h:25
uint8_t son_
Definition: ValidHit.h:36
std::vector< ValidHit > ValidHitCollection
Definition: ValidHit.h:41
float timeError_
Definition: ValidHit.h:33
uint32_t id_
Definition: ValidHit.h:34
ValidHit()
Definition: ValidHit.h:10
uint32_t id()
Definition: ValidHit.h:27
float energy_
Definition: ValidHit.h:31
ValidHit(const ValidHit &other)
Definition: ValidHit.h:13