CMS 3D CMS Logo

HcalHistogramDigi.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALDIGI_HCALHISTOGRAMDIGI_H
2 #define DATAFORMATS_HCALDIGI_HCALHISTOGRAMDIGI_H 1
3 
4 #include <ostream>
6 #include <cstdint>
7 
13 public:
14  typedef HcalDetId key_type;
15 
16  HcalHistogramDigi(); // For persistence
17  explicit HcalHistogramDigi(const HcalDetId& id);
18 
19  const HcalDetId& id() const { return id_; }
21  uint16_t get(int capid, int bin) const;
23  int getSum(int bin) const;
24 
26  uint16_t* getArray(int capid);
27 
28  static const int BINS_PER_HISTOGRAM = 32;
29 
30 private:
32  uint16_t bins_[BINS_PER_HISTOGRAM * 4];
33 };
34 
35 std::ostream& operator<<(std::ostream&, const HcalHistogramDigi& digi);
36 
37 #endif
HcalDetId key_type
For the sorted collection.
static const int BINS_PER_HISTOGRAM
uint16_t bins_[BINS_PER_HISTOGRAM *4]
const HcalDetId & id() const
std::ostream & operator<<(std::ostream &, const HcalHistogramDigi &digi)
uint16_t * getArray(int capid)
get the array for the specified capid
int getSum(int bin) const
get the contents of the specified bin summed over capids