CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloRecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_CALORECHIT_CALORECHIT_H
2 #define DATAFORMATS_CALORECHIT_CALORECHIT_H 1
3 
5 #include <ostream>
6 
7 
12 class CaloRecHit {
13 public:
14  CaloRecHit(); // for persistence
15  explicit CaloRecHit(const DetId& id, float energy, float time, uint32_t flags = 0, uint32_t aux=0);
16 
17  float energy() const { return energy_; }
18  void setEnergy(float energy) { energy_=energy; }
19  float time() const { return time_; }
20  const DetId& detid() const { return id_; }
21  uint32_t flags() const { return flags_; }
22  void setFlags(uint32_t flags) { flags_=flags; }
23  void setFlagField(uint32_t value, int base, int width=1);
24  uint32_t flagField(int base, int width=1) const;
25  void setAux(uint32_t value) { aux_=value; }
26  uint32_t aux() const { return aux_; }
27 private:
29  float energy_;
30  float time_;
31  uint32_t flags_;
32  uint32_t aux_;
33 };
34 
35 std::ostream& operator<<(std::ostream& s, const CaloRecHit& hit);
36 
37 #endif
tuple base
Main Program
Definition: newFWLiteAna.py:92
uint32_t aux() const
Definition: CaloRecHit.h:26
const DetId & detid() const
Definition: CaloRecHit.h:20
void setFlagField(uint32_t value, int base, int width=1)
Definition: CaloRecHit.cc:20
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float time() const
Definition: CaloRecHit.h:19
uint32_t aux_
Definition: CaloRecHit.h:32
void setEnergy(float energy)
Definition: CaloRecHit.h:18
float energy_
Definition: CaloRecHit.h:29
float energy() const
Definition: CaloRecHit.h:17
uint32_t flags() const
Definition: CaloRecHit.h:21
void setFlags(uint32_t flags)
Definition: CaloRecHit.h:22
Definition: DetId.h:18
uint32_t flags_
Definition: CaloRecHit.h:31
void setAux(uint32_t value)
Definition: CaloRecHit.h:25
float time_
Definition: CaloRecHit.h:30
uint32_t flagField(int base, int width=1) const
Definition: CaloRecHit.cc:31
DetId id_
Definition: CaloRecHit.h:28