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