CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
DetGeomDesc Class Reference

#include <DetGeomDesc.h>

Public Types

using Container = std::vector< DetGeomDesc * >
 
enum  CopyMode { cmWithChildren, cmWithoutChildren }
 
using RotationMatrix = ROOT::Math::Rotation3D
 
using Translation = ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > >
 

Public Member Functions

void addComponent (DetGeomDesc *)
 
void applyAlignment (const CTPPSRPAlignmentCorrectionData &)
 
const Containercomponents () const
 
int copyno () const
 
 DetGeomDesc (const cms::DDFilteredView &fv, const bool isRun2)
 
 DetGeomDesc (const DDFilteredView &fv, const bool isRun2)
 
 DetGeomDesc (const DetGeomDesc &ref, CopyMode cm=cmWithChildren)
 
DetId geographicalID () const
 
const DiamondDimensionsgetDiamondDimensions () const
 
void invertZSign ()
 
bool isABox () const
 
bool isDD4hep () const
 
bool isLeaf () const
 
const std::string & name () const
 
const std::vector< double > & params () const
 
float parentZPosition () const
 
void print () const
 
const RotationMatrixrotation () const
 
const std::string & sensorType () const
 
const Translationtranslation () const
 
virtual ~DetGeomDesc ()
 

Private Member Functions

void clearComponents ()
 
DetId computeDetID (const std::string &name, const std::vector< int > &copyNos, const unsigned int copyNum, const bool isRun2) const
 
DetId computeDetIDFromDD4hep (const std::string &name, const std::vector< int > &copyNos, const unsigned int copyNum, const bool isRun2) const
 
DiamondDimensions computeDiamondDimensions (const bool isABox, const bool isDD4hep, const std::vector< double > &params) const
 
std::string computeNameWithNoNamespace (std::string_view nameFromView) const
 
std::vector< double > computeParameters (const cms::DDFilteredView &fv) const
 
std::string computeSensorType (std::string_view name)
 
void deepDeleteComponents ()
 
void deleteComponents ()
 

Private Attributes

Container m_container
 
int m_copy
 
DiamondDimensions m_diamondBoxParams
 
DetId m_geographicalID
 
bool m_isABox
 
bool m_isDD4hep
 
std::string m_name
 
std::vector< double > m_params
 
RotationMatrix m_rot
 
std::string m_sensorType
 
Translation m_trans
 
float m_z
 

Detailed Description

Definition at line 49 of file DetGeomDesc.h.

Member Typedef Documentation

◆ Container

using DetGeomDesc::Container = std::vector<DetGeomDesc*>

Definition at line 51 of file DetGeomDesc.h.

◆ RotationMatrix

using DetGeomDesc::RotationMatrix = ROOT::Math::Rotation3D

Definition at line 52 of file DetGeomDesc.h.

◆ Translation

using DetGeomDesc::Translation = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double> >

Definition at line 53 of file DetGeomDesc.h.

Member Enumeration Documentation

◆ CopyMode

Enumerator
cmWithChildren 
cmWithoutChildren 

Definition at line 64 of file DetGeomDesc.h.

Constructor & Destructor Documentation

◆ DetGeomDesc() [1/3]

DetGeomDesc::DetGeomDesc ( const DDFilteredView fv,
const bool  isRun2 
)
Parameters
[in]isRun2Switch between legacy run 2-like geometry and 2021+ scenarii

Definition at line 28 of file DetGeomDesc.cc.

31  m_copy(fv.copyno()),
32  m_isDD4hep(false),
33  m_trans(fv.translation()), // mm (legacy)
34  m_rot(fv.rotation()),
35  m_params(fv.parameters()), // default unit from old DD (mm)
40  m_z(fv.translation().z()) // mm (legacy)

References ddbox.

◆ DetGeomDesc() [2/3]

DetGeomDesc::DetGeomDesc ( const cms::DDFilteredView fv,
const bool  isRun2 
)
Parameters
[in]isRun2Switch between legacy run 2-like geometry and 2021+ scenarii

Definition at line 45 of file DetGeomDesc.cc.

48  m_copy(fv.copyNum()),
49  m_isDD4hep(true),
50  m_trans(fv.translation() / dd4hep::mm), // converted from DD4hep unit to mm
51  m_rot(fv.rotation()),
52  m_params(computeParameters(fv)), // default unit from DD4hep
53  m_isABox(dd4hep::isA<dd4hep::Box>(fv.solid())),
54  m_diamondBoxParams(computeDiamondDimensions(m_isABox, m_isDD4hep, m_params)), // converted from DD4hep unit to mm
57  m_z(fv.translation().z() / dd4hep::mm) // converted from DD4hep unit to mm

◆ ~DetGeomDesc()

DetGeomDesc::~DetGeomDesc ( )
virtual

Definition at line 77 of file DetGeomDesc.cc.

References deepDeleteComponents().

◆ DetGeomDesc() [3/3]

DetGeomDesc::DetGeomDesc ( const DetGeomDesc ref,
CopyMode  cm = cmWithChildren 
)

Definition at line 59 of file DetGeomDesc.cc.

60  {
61  m_name = ref.m_name;
62  m_copy = ref.m_copy;
63  m_isDD4hep = ref.m_isDD4hep;
64  m_trans = ref.m_trans;
65  m_rot = ref.m_rot;
66  m_params = ref.m_params;
67  m_isABox = ref.m_isABox;
71 
72  if (cm == cmWithChildren)
74 
75  m_z = ref.m_z;

References cmWithChildren, m_container, m_copy, m_diamondBoxParams, m_geographicalID, m_isABox, m_isDD4hep, m_name, m_params, m_rot, m_sensorType, m_trans, and m_z.

Member Function Documentation

◆ addComponent()

void DetGeomDesc::addComponent ( DetGeomDesc det)

◆ applyAlignment()

void DetGeomDesc::applyAlignment ( const CTPPSRPAlignmentCorrectionData t)

Definition at line 81 of file DetGeomDesc.cc.

82  {
83  m_rot = t.getRotationMatrix() * m_rot;
84  m_trans = t.getTranslation() + m_trans;

References m_rot, m_trans, and submitPVValidationJobs::t.

Referenced by CTPPSGeometryESCommon::applyAlignments().

◆ clearComponents()

void DetGeomDesc::clearComponents ( )
inlineprivate

Definition at line 115 of file DetGeomDesc.h.

116 { m_container.resize(0); }

Referenced by deepDeleteComponents().

◆ components()

const Container& DetGeomDesc::components ( ) const
inline

◆ computeDetID()

DetId DetGeomDesc::computeDetID ( const std::string &  name,
const std::vector< int > &  copyNos,
const unsigned int  copyNum,
const bool  isRun2 
) const
private

Definition at line 164 of file DetGeomDesc.cc.

168  {
169  DetId geoID;
170 
171  // strip sensors
173  // check size of copy numbers vector
174  if (copyNos.size() < 3)
175  throw cms::Exception("DDDTotemRPConstruction")
176  << "size of copyNumbers for strip sensor is " << copyNos.size() << ". It must be >= 3.";
177 
178  // extract information
179  const unsigned int decRPId = copyNos[copyNos.size() - 3];
180  const unsigned int arm = decRPId / 100;
181  const unsigned int station = (decRPId % 100) / 10;
182  const unsigned int rp = decRPId % 10;
183  const unsigned int detector = copyNos[copyNos.size() - 1];
184  geoID = TotemRPDetId(arm, station, rp, detector);
185  }
186 
187  // strip and pixels RPs
189  unsigned int decRPId = copyNum;
190 
191  // check if it is a pixel RP
192  if (decRPId >= 10000) {
193  decRPId = decRPId % 10000;
194  const unsigned int armIdx = (decRPId / 100) % 10;
195  const unsigned int stIdx = (decRPId / 10) % 10;
196  const unsigned int rpIdx = decRPId % 10;
197  geoID = CTPPSPixelDetId(armIdx, stIdx, rpIdx);
198  } else {
199  const unsigned int armIdx = (decRPId / 100) % 10;
200  const unsigned int stIdx = (decRPId / 10) % 10;
201  const unsigned int rpIdx = decRPId % 10;
202  geoID = TotemRPDetId(armIdx, stIdx, rpIdx);
203  }
204  }
205 
206  else if (std::regex_match(name, std::regex(DDD_TOTEM_TIMING_SENSOR_TMPL))) {
207  // check size of copy numbers vector
208  if (copyNos.size() < 4)
209  throw cms::Exception("DDDTotemRPConstruction")
210  << "size of copyNumbers for TOTEM timing sensor is " << copyNos.size() << ". It must be >= 4.";
211 
212  const unsigned int decRPId = copyNos[copyNos.size() - 4];
213  const unsigned int arm = decRPId / 100, station = (decRPId % 100) / 10, rp = decRPId % 10;
214  const unsigned int plane = copyNos[copyNos.size() - 2], channel = copyNos[copyNos.size() - 1];
215  geoID = TotemTimingDetId(arm, station, rp, plane, channel);
216  }
217 
218  else if (name == DDD_TOTEM_TIMING_RP_NAME) {
219  const unsigned int arm = copyNum / 100, station = (copyNum % 100) / 10, rp = copyNum % 10;
220  geoID = TotemTimingDetId(arm, station, rp);
221  }
222 
223  // pixel sensors
225  // check size of copy numbers vector
226  if (copyNos.size() < 4)
227  throw cms::Exception("DDDTotemRPConstruction")
228  << "size of copyNumbers for pixel sensor is " << copyNos.size() << ". It must be >= 4.";
229 
230  // extract information
231  const unsigned int decRPId = copyNos[copyNos.size() - 4] % 10000;
232  const unsigned int arm = decRPId / 100;
233  const unsigned int station = (decRPId % 100) / 10;
234  const unsigned int rp = decRPId % 10;
235  const unsigned int detector = copyNos[copyNos.size() - 2] - 1;
236  geoID = CTPPSPixelDetId(arm, station, rp, detector);
237  }
238 
239  // diamond/UFSD sensors
241  // check size of copy numbers vector
242  if (copyNos.size() < 2)
243  throw cms::Exception("DDDTotemRPConstruction")
244  << "size of copyNumbers for diamond segments is " << copyNos.size() << ". It must be >= 2.";
245  const unsigned int decRPId = copyNos[1];
246  unsigned int arm, station, rp;
247  if (isRun2) {
248  arm = decRPId - 1;
249  station = 1;
250  rp = 6;
251  } else {
252  arm = (decRPId % 1000) / 100;
253  station = (decRPId % 100) / 10;
254  rp = decRPId % 10;
255  }
256  const unsigned int id = copyNos[copyNos.size() - 1];
257  const unsigned int plane = id / 100;
258  const unsigned int channel = id % 100;
259  geoID = CTPPSDiamondDetId(arm, station, rp, plane, channel);
260  }
261 
262  // diamond/UFSD RPs
263  else if (name == DDD_CTPPS_DIAMONDS_RP_NAME) {
264  // check size of copy numbers vector
265  if (copyNos.size() < 2)
266  throw cms::Exception("DDDTotemRPConstruction")
267  << "size of copyNumbers for diamond RP is " << copyNos.size() << ". It must be >= 2.";
268 
269  const unsigned int decRPId = copyNos[1];
270  unsigned int arm, station, rp;
271  if (isRun2) {
272  arm = decRPId - 1;
273  station = 1;
274  rp = 6;
275  } else {
276  arm = (decRPId % 1000) / 100;
277  station = (decRPId % 100) / 10;
278  rp = decRPId % 10;
279  }
280  geoID = CTPPSDiamondDetId(arm, station, rp);
281  }
282 
283  return geoID;

References protons_cff::arm, DDD_CTPPS_DIAMONDS_RP_NAME, DDD_CTPPS_DIAMONDS_SEGMENT_NAME, DDD_CTPPS_PIXELS_RP_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME_2x2, DDD_CTPPS_UFSD_SEGMENT_NAME, DDD_TOTEM_RP_RP_NAME, DDD_TOTEM_RP_SENSOR_NAME, DDD_TOTEM_TIMING_RP_NAME, DDD_TOTEM_TIMING_SENSOR_TMPL, protons_cff::decRPId, hgcalTestNeighbor_cfi::detector, geometryPPS_CMSxz_fromDD_2016_cfi::isRun2, name(), and relativeConstraints::station.

Referenced by computeDetIDFromDD4hep().

◆ computeDetIDFromDD4hep()

DetId DetGeomDesc::computeDetIDFromDD4hep ( const std::string &  name,
const std::vector< int > &  copyNos,
const unsigned int  copyNum,
const bool  isRun2 
) const
private

Definition at line 288 of file DetGeomDesc.cc.

292  {
293  std::vector<int> copyNosOldDD = {copyNos.rbegin() + 1, copyNos.rend()};
294 
295  return computeDetID(name, copyNosOldDD, copyNum, isRun2);

References computeDetID(), geometryPPS_CMSxz_fromDD_2016_cfi::isRun2, and name().

◆ computeDiamondDimensions()

DiamondDimensions DetGeomDesc::computeDiamondDimensions ( const bool  isABox,
const bool  isDD4hep,
const std::vector< double > &  params 
) const
private

Definition at line 144 of file DetGeomDesc.cc.

147  {
148  DiamondDimensions boxShapeParameters{};
149  if (isABox) {
150  if (!isDD4hep) {
151  // mm (old DD)
152  boxShapeParameters = {params.at(0), params.at(1), params.at(2)};
153  } else {
154  // convert from DD4hep unit to mm (mm is legacy expected by PPS reco software)
155  boxShapeParameters = {params.at(0) / dd4hep::mm, params.at(1) / dd4hep::mm, params.at(2) / dd4hep::mm};
156  }
157  }
158  return boxShapeParameters;

References isABox(), isDD4hep(), and params().

◆ computeNameWithNoNamespace()

std::string DetGeomDesc::computeNameWithNoNamespace ( std::string_view  nameFromView) const
private

Definition at line 123 of file DetGeomDesc.cc.

124  {
125  const auto& semiColonPos = nameFromView.find(":");
126  const std::string name{(semiColonPos != std::string::npos ? nameFromView.substr(semiColonPos + 1) : nameFromView)};
127  return name;

References name(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ computeParameters()

std::vector< double > DetGeomDesc::computeParameters ( const cms::DDFilteredView fv) const
private

Definition at line 132 of file DetGeomDesc.cc.

133  {
134  auto myShape = fv.solid();
135  const std::vector<double>& parameters = myShape.dimensions(); // default unit from DD4hep (cm)
136  return parameters;

References cms::DDFilteredView::solid().

◆ computeSensorType()

std::string DetGeomDesc::computeSensorType ( std::string_view  name)
private

Definition at line 301 of file DetGeomDesc.cc.

302  {
304 
305  // Case A: Construction from DB.
306  // Namespace is present, and allow identification of 2x2 sensor type: just look for "2x2:RPixWafer" in name.
307  const auto& foundFromDB = name.find(DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2 + ":" + DDD_CTPPS_PIXELS_SENSOR_NAME);
308  if (foundFromDB != std::string::npos) {
310  }
311 
312  // Case B: Construction from XMLs.
313  // Volume name allows identification of 2x2 sensor type: just look whether name is "RPixWafer2x2".
314  const auto& foundFromXML = name.find(DDD_CTPPS_PIXELS_SENSOR_NAME_2x2);
315  if (foundFromXML != std::string::npos) {
317  }
318 
319  return sensorType;

References DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME_2x2, DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2, name(), sensorType(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ copyno()

int DetGeomDesc::copyno ( ) const
inline

Definition at line 69 of file DetGeomDesc.h.

69 { return m_name; }

References m_name.

Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc().

◆ deepDeleteComponents()

void DetGeomDesc::deepDeleteComponents ( )
private

Definition at line 116 of file DetGeomDesc.cc.

117  {
118  for (auto& it : m_container) {
119  delete it; // the destructor calls deepDeleteComponents
120  }
121  clearComponents();

References clearComponents(), and m_container.

Referenced by ~DetGeomDesc().

◆ deleteComponents()

void DetGeomDesc::deleteComponents ( )
private

Definition at line 114 of file DetGeomDesc.cc.

References m_container.

◆ geographicalID()

DetId DetGeomDesc::geographicalID ( ) const
inline

◆ getDiamondDimensions()

const DiamondDimensions& DetGeomDesc::getDiamondDimensions ( ) const
inline

Definition at line 85 of file DetGeomDesc.h.

85  { return m_isABox; }
87  if (!isABox()) {
88  edm::LogError("DetGeomDesc::getDiamondDimensions is not called on a box, for solid ")
89  << name() << ", Id = " << geographicalID();
90  }
91  return m_diamondBoxParams;

References m_isABox.

Referenced by CTPPSDiamondRecHitProducerAlgorithm::build(), TotemTimingRecHitProducerAlgorithm::build(), channelAlignedWithTrack(), TotemTimingDQMSource::dqmBeginRun(), CTPPSDiamondDQMSource::dqmBeginRun(), and print().

◆ invertZSign()

void DetGeomDesc::invertZSign ( )
inline

Definition at line 110 of file DetGeomDesc.h.

111 { m_trans.SetZ(-m_trans.z()); }

References m_trans.

◆ isABox()

bool DetGeomDesc::isABox ( ) const
inline

Definition at line 84 of file DetGeomDesc.h.

84 { return m_params; } // default unit: mm for oldDD, DD4hep unit for DD4hep

References m_params.

Referenced by computeDiamondDimensions().

◆ isDD4hep()

bool DetGeomDesc::isDD4hep ( ) const
inline

Definition at line 72 of file DetGeomDesc.h.

73 { return m_isDD4hep; }

References m_isDD4hep.

Referenced by computeDiamondDimensions().

◆ isLeaf()

bool DetGeomDesc::isLeaf ( ) const
inline

Definition at line 103 of file DetGeomDesc.h.

104 { return m_container.empty(); }

◆ name()

const std::string& DetGeomDesc::name ( void  ) const
inline

◆ params()

const std::vector<double>& DetGeomDesc::params ( ) const
inline

◆ parentZPosition()

float DetGeomDesc::parentZPosition ( ) const
inline

◆ print()

void DetGeomDesc::print ( void  ) const

Definition at line 86 of file DetGeomDesc.cc.

87  {
88  edm::LogVerbatim("DetGeomDesc::print") << "............................." << std::endl;
89  edm::LogVerbatim("DetGeomDesc::print") << "name = " << m_name << std::endl;
90  edm::LogVerbatim("DetGeomDesc::print") << "copy = " << m_copy << std::endl;
91  edm::LogVerbatim("DetGeomDesc::print") << "translation = " << std::fixed << std::setprecision(7) << m_trans
92  << std::endl;
93  edm::LogVerbatim("DetGeomDesc::print") << "rotation = " << std::fixed << std::setprecision(7) << m_rot << std::endl;
94 
95  if (m_isABox) {
96  edm::LogVerbatim("DetGeomDesc::print")
97  << "getDiamondDimensions() = " << std::fixed << std::setprecision(7) << getDiamondDimensions().xHalfWidth << " "
98  << getDiamondDimensions().yHalfWidth << " " << getDiamondDimensions().zHalfWidth << std::endl;
99  }
100 
101  edm::LogVerbatim("DetGeomDesc::print") << "sensorType = " << m_sensorType << std::endl;
102 
103  if (m_geographicalID() != 0) {
104  edm::LogVerbatim("DetGeomDesc::print") << "geographicalID() = " << m_geographicalID << std::endl;
105  }
106 
107  edm::LogVerbatim("DetGeomDesc::print") << "parentZPosition() = " << std::fixed << std::setprecision(7) << m_z
108  << std::endl;

References alignBH_cfg::fixed, getDiamondDimensions(), m_copy, m_geographicalID, m_isABox, m_name, m_rot, m_sensorType, m_trans, m_z, DiamondDimensions::xHalfWidth, DiamondDimensions::yHalfWidth, and DiamondDimensions::zHalfWidth.

◆ rotation()

const RotationMatrix& DetGeomDesc::rotation ( void  ) const
inline

◆ sensorType()

const std::string& DetGeomDesc::sensorType ( ) const
inline

Definition at line 94 of file DetGeomDesc.h.

References m_sensorType.

Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc(), and computeSensorType().

◆ translation()

const Translation& DetGeomDesc::translation ( void  ) const
inline

Member Data Documentation

◆ m_container

Container DetGeomDesc::m_container
private

◆ m_copy

int DetGeomDesc::m_copy
private

Definition at line 133 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), and print().

◆ m_diamondBoxParams

DiamondDimensions DetGeomDesc::m_diamondBoxParams
private

Definition at line 139 of file DetGeomDesc.h.

Referenced by DetGeomDesc().

◆ m_geographicalID

DetId DetGeomDesc::m_geographicalID
private

Definition at line 141 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), geographicalID(), and print().

◆ m_isABox

bool DetGeomDesc::m_isABox
private

Definition at line 138 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), getDiamondDimensions(), and print().

◆ m_isDD4hep

bool DetGeomDesc::m_isDD4hep
private

Definition at line 134 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), and isDD4hep().

◆ m_name

std::string DetGeomDesc::m_name
private

Definition at line 132 of file DetGeomDesc.h.

Referenced by copyno(), DetGeomDesc(), and print().

◆ m_params

std::vector<double> DetGeomDesc::m_params
private

Definition at line 137 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), and isABox().

◆ m_rot

RotationMatrix DetGeomDesc::m_rot
private

Definition at line 136 of file DetGeomDesc.h.

Referenced by applyAlignment(), DetGeomDesc(), and print().

◆ m_sensorType

std::string DetGeomDesc::m_sensorType
private

Definition at line 140 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), print(), and sensorType().

◆ m_trans

Translation DetGeomDesc::m_trans
private

Definition at line 135 of file DetGeomDesc.h.

Referenced by applyAlignment(), DetGeomDesc(), invertZSign(), print(), and rotation().

◆ m_z

float DetGeomDesc::m_z
private

Definition at line 144 of file DetGeomDesc.h.

Referenced by DetGeomDesc(), and print().

cms::DDFilteredView::rotation
const RotationMatrix rotation() const
Definition: DDFilteredView.cc:122
DiamondDimensions
Geometrical description of a sensor.
Definition: DetGeomDesc.h:43
DiamondDimensions::zHalfWidth
double zHalfWidth
Definition: DetGeomDesc.h:46
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
DDD_CTPPS_UFSD_SEGMENT_NAME
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME
Definition: CTPPSDDDNames.h:18
DDD_CTPPS_PIXELS_SENSOR_NAME
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME
Definition: CTPPSDDDNames.h:14
DetGeomDesc::m_isABox
bool m_isABox
Definition: DetGeomDesc.h:138
relativeConstraints.station
station
Definition: relativeConstraints.py:67
cms::DDFilteredView::copyNum
unsigned short copyNum() const
Definition: DDFilteredView.cc:864
DDFilteredView::logicalPart
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
Definition: DDFilteredView.cc:16
DDFilteredView::copyNumbers
nav_type copyNumbers() const
return the stack of copy numbers
Definition: DDFilteredView.cc:193
DetGeomDesc::m_copy
int m_copy
Definition: DetGeomDesc.h:133
DetGeomDesc::m_sensorType
std::string m_sensorType
Definition: DetGeomDesc.h:140
DetGeomDesc::computeDiamondDimensions
DiamondDimensions computeDiamondDimensions(const bool isABox, const bool isDD4hep, const std::vector< double > &params) const
Definition: DetGeomDesc.cc:144
DetGeomDesc::m_container
Container m_container
Definition: DetGeomDesc.h:143
DDD_CTPPS_PIXELS_RP_NAME
const std::string DDD_CTPPS_PIXELS_RP_NAME
Definition: CTPPSDDDNames.h:23
DetGeomDesc::m_name
std::string m_name
Definition: DetGeomDesc.h:132
DDD_TOTEM_TIMING_RP_NAME
const std::string DDD_TOTEM_TIMING_RP_NAME
Definition: CTPPSDDDNames.h:26
DetGeomDesc::sensorType
const std::string & sensorType() const
Definition: DetGeomDesc.h:94
DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2
const std::string DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2
Definition: CTPPSDDDNames.h:16
DetGeomDesc::m_params
std::vector< double > m_params
Definition: DetGeomDesc.h:137
DetGeomDesc::clearComponents
void clearComponents()
Definition: DetGeomDesc.h:115
DetGeomDesc::m_z
float m_z
Definition: DetGeomDesc.h:144
DDD_CTPPS_DIAMONDS_SEGMENT_NAME
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
Definition: CTPPSDDDNames.h:17
cms::DDFilteredView::name
std::string_view name() const
Definition: DDFilteredView.cc:854
cms::DDFilteredView::translation
const Translation translation() const
Definition: DDFilteredView.cc:103
DDFilteredView::parameters
const std::vector< double > & parameters() const
Definition: DDFilteredView.cc:24
cms::DDFilteredView::solid
dd4hep::Solid solid() const
Definition: DDFilteredView.cc:862
DetId
Definition: DetId.h:17
DetGeomDesc::geographicalID
DetId geographicalID() const
Definition: DetGeomDesc.h:97
DetGeomDesc::computeDetID
DetId computeDetID(const std::string &name, const std::vector< int > &copyNos, const unsigned int copyNum, const bool isRun2) const
Definition: DetGeomDesc.cc:164
cms::DDFilteredView::copyNos
const std::vector< int > copyNos() const
The list of the volume copy numbers.
Definition: DDFilteredView.cc:89
DetGeomDesc::getDiamondDimensions
const DiamondDimensions & getDiamondDimensions() const
Definition: DetGeomDesc.h:85
DDBase::name
const N & name() const
Definition: DDBase.h:59
DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
Definition: CTPPSDDDNames.h:15
geometryPPS_CMSxz_fromDD_2016_cfi.isRun2
isRun2
Definition: geometryPPS_CMSxz_fromDD_2016_cfi.py:14
DiamondDimensions::xHalfWidth
double xHalfWidth
Definition: DetGeomDesc.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DetGeomDesc::isDD4hep
bool isDD4hep() const
Definition: DetGeomDesc.h:72
TotemTimingDetId
Detector ID class for CTPPS Totem Timing detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bits ...
Definition: TotemTimingDetId.h:26
DetGeomDesc::m_diamondBoxParams
DiamondDimensions m_diamondBoxParams
Definition: DetGeomDesc.h:139
DetGeomDesc::cmWithoutChildren
Definition: DetGeomDesc.h:64
CTPPSDiamondDetId
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
Definition: CTPPSDiamondDetId.h:24
DDD_CTPPS_DIAMONDS_RP_NAME
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
Definition: CTPPSDDDNames.h:25
DetGeomDesc::isABox
bool isABox() const
Definition: DetGeomDesc.h:84
DetGeomDesc::name
const std::string & name() const
Definition: DetGeomDesc.h:68
DDFilteredView::shape
const DDSolidShape shape() const
Definition: DDFilteredView.cc:20
DDD_TOTEM_TIMING_SENSOR_TMPL
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
Definition: CTPPSDDDNames.h:19
DiamondDimensions::yHalfWidth
double yHalfWidth
Definition: DetGeomDesc.h:45
DDD_TOTEM_RP_RP_NAME
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
Definition: CTPPSDDDNames.h:22
CTPPSPixelDetId
Definition: CTPPSPixelDetId.h:16
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DetGeomDesc::m_isDD4hep
bool m_isDD4hep
Definition: DetGeomDesc.h:134
protons_cff.arm
arm
Definition: protons_cff.py:43
DDSolidShape::ddbox
DetGeomDesc::computeSensorType
std::string computeSensorType(std::string_view name)
Definition: DetGeomDesc.cc:301
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDFilteredView::translation
const DDTranslation & translation() const
The absolute translation of the current node.
Definition: DDFilteredView.cc:26
DDD_TOTEM_RP_SENSOR_NAME
const std::string DDD_TOTEM_RP_SENSOR_NAME
DDD names of sensors.
Definition: CTPPSDDDNames.h:13
protons_cff.decRPId
decRPId
Definition: protons_cff.py:60
DDFilteredView::rotation
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
Definition: DDFilteredView.cc:28
DetGeomDesc::params
const std::vector< double > & params() const
Definition: DetGeomDesc.h:83
DetGeomDesc::computeParameters
std::vector< double > computeParameters(const cms::DDFilteredView &fv) const
Definition: DetGeomDesc.cc:132
DetGeomDesc::cmWithChildren
Definition: DetGeomDesc.h:64
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
DetGeomDesc::m_geographicalID
DetId m_geographicalID
Definition: DetGeomDesc.h:141
cms::Exception
Definition: Exception.h:70
DDName::fullname
const std::string fullname() const
Definition: DDName.h:40
DetGeomDesc::computeNameWithNoNamespace
std::string computeNameWithNoNamespace(std::string_view nameFromView) const
Definition: DetGeomDesc.cc:123
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
TotemRPDetId
Detector ID class for TOTEM Si strip detectors.
Definition: TotemRPDetId.h:29
DetGeomDesc::computeDetIDFromDD4hep
DetId computeDetIDFromDD4hep(const std::string &name, const std::vector< int > &copyNos, const unsigned int copyNum, const bool isRun2) const
Definition: DetGeomDesc.cc:288
DDFilteredView::copyno
int copyno() const
Copy number associated with the current node.
Definition: DDFilteredView.cc:48
DetGeomDesc::m_trans
Translation m_trans
Definition: DetGeomDesc.h:135
DDFilteredView::name
const std::string & name() const
The name of a logical-part of the current node in the filtered-view.
Definition: DDFilteredView.cc:18
DetGeomDesc::m_rot
RotationMatrix m_rot
Definition: DetGeomDesc.h:136