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  virtual ~CaloRecHit();
19  float energy() const { return energy_; }
20  float time() const { return 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:92
uint32_t aux() const
Definition: CaloRecHit.h:27
const DetId & detid() const
Definition: CaloRecHit.h:21
virtual ~CaloRecHit()
Definition: CaloRecHit.cc:11
void setFlagField(uint32_t value, int base, int width=1)
Definition: CaloRecHit.cc:22
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float time() const
Definition: CaloRecHit.h:20
uint32_t aux_
Definition: CaloRecHit.h:33
float energy_
Definition: CaloRecHit.h:30
float energy() const
Definition: CaloRecHit.h:19
uint32_t flags() const
Definition: CaloRecHit.h:22
void setFlags(uint32_t flags)
Definition: CaloRecHit.h:23
Definition: DetId.h:20
uint32_t flags_
Definition: CaloRecHit.h:32
void setAux(uint32_t value)
Definition: CaloRecHit.h:26
float time_
Definition: CaloRecHit.h:31
string s
Definition: asciidump.py:422
uint32_t flagField(int base, int width=1) const
Definition: CaloRecHit.cc:33
DetId id_
Definition: CaloRecHit.h:29