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 
9 
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 {
38  int icol() const;
39  int icolAbs() const { return (id_&HcalDetId::kHcalPhiMask2); }
41  static const int MaxDepth=12;
42  int depth() const;
44  std::pair<double,double> getXY() const;
45  double getZ() const;
46 
47  static const AHCalDetId Undefined;
48  const double deltaX_ = 3.0; // Size of tile along X
49  const double deltaY_ = 3.0; // Size of tile along Y
50  const double deltaZ_ = 8.1; // Thickness of a single layer
51  const double zFirst_ = 1.76; // Position of the center
52 };
53 
54 std::ostream& operator<<(std::ostream&,const AHCalDetId& id);
55 
56 #endif
int icolAbs() const
Definition: AHCalDetId.h:39
static const int MaxDepth
get the layer number
Definition: AHCalDetId.h:41
double getZ() const
Definition: AHCalDetId.cc:57
int irow() const
get the row number
Definition: AHCalDetId.cc:33
const double zFirst_
Definition: AHCalDetId.h:51
HcalSubdetector subdet() const
get the subdetector
Definition: AHCalDetId.h:30
int depth() const
Definition: AHCalDetId.cc:45
std::ostream & operator<<(std::ostream &, const AHCalDetId &id)
Definition: AHCalDetId.cc:62
int icol() const
get the column number
Definition: AHCalDetId.cc:39
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:49
HcalSubdetector
Definition: HcalAssistant.h:31
const double deltaZ_
Definition: AHCalDetId.h:50
static const int kHcalPhiMask2
Definition: HcalDetId.h:17
Definition: DetId.h:18
static const AHCalDetId Undefined
Definition: AHCalDetId.h:47
uint32_t id_
Definition: DetId.h:59
static const int kHcalEtaOffset2
Definition: HcalDetId.h:19
int irowAbs() const
Definition: AHCalDetId.h:35
col
Definition: cuy.py:1010
static const int kHcalEtaMask2
Definition: HcalDetId.h:21
const double deltaX_
Definition: AHCalDetId.h:48
int zside() const
get the z-side of the cell (1/-1)
Definition: AHCalDetId.h:32
const double deltaY_
Definition: AHCalDetId.h:49