CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
5 #include <boost/cstdint.hpp>
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 private:
32 };
33 
34 std::ostream& operator<<(std::ostream&, const HcalHistogramDigi& digi);
35 
36 #endif
HcalDetId key_type
For the sorted collection.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
static const int BINS_PER_HISTOGRAM
uint16_t bins_[BINS_PER_HISTOGRAM *4]
const HcalDetId & id() const
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