8 std::deque<const DetGeomDesc*> bufferIdealGeo;
9 bufferIdealGeo.emplace_back(&idealDetRoot);
11 std::deque<DetGeomDesc*> bufferAlignedGeo;
13 bufferAlignedGeo.emplace_back(alignedDetRoot);
15 while (!bufferIdealGeo.empty()) {
16 const DetGeomDesc* idealDet = bufferIdealGeo.front();
18 bufferIdealGeo.pop_front();
19 bufferAlignedGeo.pop_front();
48 const auto& idealDetChildren = idealDet->
components();
49 for (
unsigned int i = 0;
i < idealDetChildren.size();
i++) {
51 bufferIdealGeo.emplace_back(idealDetChild);
57 bufferAlignedGeo.emplace_back(alignedDetChild);
60 return std::unique_ptr<DetGeomDesc>(alignedDetRoot);
const std::string DDD_CTPPS_PIXELS_RP_NAME
CTPPSRPAlignmentCorrectionData & getRPCorrection(unsigned int id)
returns the correction value from the RP map
void applyAlignment(const CTPPSRPAlignmentCorrectionData &)
DetId geographicalID() const
std::unique_ptr< DetGeomDesc > applyAlignments(const DetGeomDesc &, const CTPPSRPAlignmentCorrectionsData *)
const std::string DDD_TOTEM_TIMING_RP_NAME
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
CTPPSRPAlignmentCorrectionData getFullSensorCorrection(unsigned int id, bool useRPErrors=false) const
const Container & components() const
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
const std::string & name() const
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
const std::string DDD_TOTEM_RP_SENSOR_NAME
DDD names of sensors.
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME
void addComponent(DetGeomDesc *)
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME