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 
19 public:
21  explicit IntegerCaloSamples(const DetId& id, int size);
22 
24  DetId id() const { return id_; }
25 
27  int size() const { return size_; }
29  uint32_t& operator[](int i) { return data_[i]; }
31  uint32_t operator[](int i) const { return data_[i]; }
32 
34  int presamples() const { return presamples_; }
36  void setPresamples(int pre);
37 
38  static const int MAXSAMPLES=10;
39 private:
41  uint32_t data_[MAXSAMPLES]; //
43 };
44 
45 std::ostream& operator<<(std::ostream& s, const IntegerCaloSamples& samps);
46 
47 #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:20
static const int MAXSAMPLES
string s
Definition: asciidump.py:422
DetId id() const
get the (generic) id