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 
15 public:
16  typedef HcalDetId key_type;
17 
18  HcalHistogramDigi(); // For persistence
19  explicit HcalHistogramDigi(const HcalDetId& id);
20 
21  const HcalDetId& id() const { return id_; }
23  uint16_t get(int capid, int bin) const;
25  int getSum(int bin) const;
26 
28  uint16_t* getArray(int capid);
29 
30  static const int BINS_PER_HISTOGRAM=32;
31 private:
34 };
35 
36 std::ostream& operator<<(std::ostream&, const HcalHistogramDigi& digi);
37 
38 #endif
HcalDetId key_type
For the sorted collection.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
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