CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalFinegrainBit.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalFinegrainBit_h
2 #define HcalSimAlgos_HcalFinegrainBit_h
3 
4 #include <array>
5 #include <bitset>
6 
8  public:
9  // see the const definitions below for the meaning of the bit towers.
10  // Each bit is replicated for each depth level
11  typedef std::array<std::bitset<6>, 2> Tower;
12 
13  HcalFinegrainBit(int version) : version_(version) {};
14 
15  std::bitset<4> compute(const Tower&) const;
16  private:
17  // define the two bits in the tower
18  const int is_mip = 0;
19  const int is_above_mip = 1;
20 
21  int version_;
22 };
23 
24 #endif
std::array< std::bitset< 6 >, 2 > Tower
const int is_above_mip
std::bitset< 4 > compute(const Tower &) const
HcalFinegrainBit(int version)