CMS 3D CMS Logo

AHCalDetId.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HGCalTestBeam_HCALDETID_H
2 #define SimG4CMS_HGCalTestBeam_HCALDETID_H 1
3 
4 #include <iosfwd>
8 
13 class AHCalDetId : public DetId {
14  public:
16  AHCalDetId();
18  AHCalDetId(uint32_t rawid);
20  AHCalDetId(int row, int col, int depth);
22  AHCalDetId(const DetId& id);
24  AHCalDetId& operator=(const DetId& id) {
25  id_ = id.rawId();
26  return *this;
27  }
28 
30  HcalSubdetector subdet() const { return HcalOther; }
32  int zside() const { return 1; }
34  int irow() const;
35  int irowAbs() const {
37  }
39  int icol() const;
40  int icolAbs() const { return (id_ & HcalDetId::kHcalPhiMask2); }
42  static const int MaxDepth = 12;
43  int depth() const;
45  std::pair<double, double> getXY() const;
46  double getZ() const;
47 
48  static const AHCalDetId Undefined;
49  const double deltaX_ = 3.0; // Size of tile along X
50  const double deltaY_ = 3.0; // Size of tile along Y
51  const double deltaZ_ = 8.1; // Thickness of a single layer
52  const double zFirst_ = 1.76; // Position of the center
53 };
54 
55 std::ostream& operator<<(std::ostream&, const AHCalDetId& id);
56 
57 #endif
int icolAbs() const
Definition: AHCalDetId.h:40
static uint32_t kHcalEtaMask2
Definition: HcalDetId.h:21
static const int MaxDepth
get the layer number
Definition: AHCalDetId.h:42
double getZ() const
Definition: AHCalDetId.cc:59
int irow() const
get the row number
Definition: AHCalDetId.cc:34
const double zFirst_
Definition: AHCalDetId.h:52
HcalSubdetector subdet() const
get the subdetector
Definition: AHCalDetId.h:30
int depth() const
Definition: AHCalDetId.cc:46
std::ostream & operator<<(std::ostream &, const AHCalDetId &id)
Definition: AHCalDetId.cc:64
int icol() const
get the column number
Definition: AHCalDetId.cc:40
AHCalDetId & operator=(const DetId &id)
Definition: AHCalDetId.h:24
std::pair< double, double > getXY() const
get the local coordinate in the plane and along depth
Definition: AHCalDetId.cc:50
HcalSubdetector
Definition: HcalAssistant.h:31
const double deltaZ_
Definition: AHCalDetId.h:51
Definition: DetId.h:18
static const AHCalDetId Undefined
Definition: AHCalDetId.h:48
static uint32_t kHcalPhiMask2
Definition: HcalDetId.h:17
uint32_t id_
Definition: DetId.h:62
static uint32_t kHcalEtaOffset2
Definition: HcalDetId.h:19
int irowAbs() const
Definition: AHCalDetId.h:35
col
Definition: cuy.py:1010
const double deltaX_
Definition: AHCalDetId.h:49
int zside() const
get the z-side of the cell (1/-1)
Definition: AHCalDetId.h:32
const double deltaY_
Definition: AHCalDetId.h:50