CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalOtherDetId.cc
Go to the documentation of this file.
3 #include <iostream>
5 
6 HcalOtherDetId::HcalOtherDetId(uint32_t rawid) : DetId(rawid) {}
7 
9  id_ |= (int(other_type & 0x1F) << 20);
10 }
11 
13  if (gen.det() != Hcal || gen.subdetId() != HcalOther) {
14  throw cms::Exception("Invalid DetId")
15  << "Cannot initialize HcalOtherDetId from " << std::hex << gen.rawId() << std::dec;
16  }
17  id_ = gen.rawId();
18 }
19 
21  if (gen.det() != Hcal || gen.subdetId() != HcalOther) {
22  throw cms::Exception("Invalid DetId")
23  << "Cannot assign HcalOtherDetId from " << std::hex << gen.rawId() << std::dec;
24  }
25  id_ = gen.rawId();
26  return *this;
27 }
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
HcalOtherDetId & operator=(const DetId &id)
HcalOtherSubdetector
Definition: HcalAssistant.h:40
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
Definition: DetId.h:17
uint32_t id_
Definition: DetId.h:69
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46