test
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  void setTime(float time) { time_=time; }
21  const DetId& detid() const { return id_; }
22  uint32_t flags() const { return flags_; }
23  void setFlags(uint32_t flags) { flags_=flags; }
24  void setFlagField(uint32_t value, int base, int width=1);
25  uint32_t flagField(int base, int width=1) const;
26  void setAux(uint32_t value) { aux_=value; }
27  uint32_t aux() const { return aux_; }
28 private:
30  float energy_;
31  float time_;
32  uint32_t flags_;
33  uint32_t aux_;
34 };
35 
36 std::ostream& operator<<(std::ostream& s, const CaloRecHit& hit);
37 
38 #endif
tuple base
Main Program
Definition: newFWLiteAna.py:91
void setTime(float time)
Definition: CaloRecHit.h:20
uint32_t aux() const
Definition: CaloRecHit.h:27
const DetId & detid() const
Definition: CaloRecHit.h:21
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:188
float time() const
Definition: CaloRecHit.h:19
uint32_t aux_
Definition: CaloRecHit.h:33
void setEnergy(float energy)
Definition: CaloRecHit.h:18
float energy_
Definition: CaloRecHit.h:30
float energy() const
Definition: CaloRecHit.h:17
uint32_t flags() const
Definition: CaloRecHit.h:22
void setFlags(uint32_t flags)
Definition: CaloRecHit.h:23
Definition: DetId.h:18
uint32_t flags_
Definition: CaloRecHit.h:32
void setAux(uint32_t value)
Definition: CaloRecHit.h:26
float time_
Definition: CaloRecHit.h:31
uint32_t flagField(int base, int width=1) const
Definition: CaloRecHit.cc:31
DetId id_
Definition: CaloRecHit.h:29