CMS 3D CMS Logo

BTLDetId.cc
Go to the documentation of this file.
2 
4  // reorganize the modules to count from 0 to 54
5  // (0 to 42 in the case of BarZflat geometry)
6  // remove module type
7  // remove crystal index
8 
9  if (lay == CrysLayout::barphiflat) {
10  return BTLDetId(mtdSide(), mtdRR(), module() + kModulePerTypeBarPhiFlat * (modType() - 1), 0, 1);
11  }
12 
13  return 0;
14 }
15 
16 #include <iomanip>
17 
18 std::ostream& operator<<(std::ostream& os, const BTLDetId& id) {
19  os << (MTDDetId&)id;
20  os << " BTL " << std::endl
21  << " Side : " << id.mtdSide() << std::endl
22  << " Rod : " << id.mtdRR() << std::endl
23  << " Module : " << id.module() << std::endl
24  << " Crystal type: " << id.modType() << std::endl
25  << " Crystal : " << id.crystal() << std::endl;
26  return os;
27 }
static constexpr uint32_t kModulePerTypeBarPhiFlat
Definition: BTLDetId.h:30
CrysLayout
Definition: BTLDetId.h:38
int mtdSide() const
Definition: MTDDetId.h:59
int modType() const
Definition: BTLDetId.h:67
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
BTLDetId()
Definition: BTLDetId.h:43
int mtdRR() const
Definition: MTDDetId.h:64
int module() const
Definition: BTLDetId.h:64
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
Definition: BTLDetId.h:18
std::ostream & operator<<(std::ostream &os, const BTLDetId &id)
Definition: BTLDetId.cc:18
BTLDetId geographicalId(CrysLayout lay) const
Definition: BTLDetId.cc:3