CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IntegerCaloSamples.h
Go to the documentation of this file.
1 #ifndef INTEGERCALOSAMPLES_H
2 #define INTEGERCALOSAMPLES_H 1
3 
4 #include <ostream>
6 
17 public:
19  explicit IntegerCaloSamples(const DetId& id, int size);
20 
22  DetId id() const { return id_; }
23 
25  int size() const { return size_; }
27  uint32_t& operator[](int i) { return data_[i]; }
29  uint32_t operator[](int i) const { return data_[i]; }
30 
32  int presamples() const { return presamples_; }
34  void setPresamples(int pre);
35 
36  static const int MAXSAMPLES=10;
37 private:
39  uint32_t data_[MAXSAMPLES]; //
41 };
42 
43 std::ostream& operator<<(std::ostream& s, const IntegerCaloSamples& samps);
44 
45 #endif
int i
Definition: DBlmapReader.cc:9
int presamples() const
access presample information
uint32_t data_[MAXSAMPLES]
void setPresamples(int pre)
set presample information
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int size() const
get the size
uint32_t & operator[](int i)
mutable operator to access samples
uint32_t operator[](int i) const
const operator to access samples
Definition: DetId.h:18
static const int MAXSAMPLES
DetId id() const
get the (generic) id