32 alignableObjectId_(
nullptr, dtGeometry, cscGeometry)
47 edm::LogInfo(
"AlignableMuon") <<
"Constructing alignable muon objects DONE";
76 <<
"@SUB=AlignableMuon::update" <<
"Updating alignable muon objects DONE";
84 LogDebug(
"Position") <<
"Constructing AlignableDTBarrel";
87 std::vector<AlignableDTChamber*> tmpDTChambersInStation;
88 std::vector<AlignableDTStation*> tmpDTStationsInWheel;
92 for(
int iwh = -2 ; iwh < 3 ; iwh++ ){
95 for(
int ist = 1 ; ist < 5 ; ist++ ){
99 std::vector<const GeomDet*> theSLs;
100 for(
const auto& det: pDT->
chambers()){
105 int wh = chamberId.
wheel();
110 if ( iwh == wh && ist == st ){
114 theDTBarrel.back()->wheel(iwh+2).station(ist-1).chamber(iChamber).update(det);
120 tmpDTChambersInStation.push_back( tmpDTChamber );
133 tmpDTChambersInStation.end());
139 tmpDTStationsInWheel.push_back(tmpDTStation);
142 tmpDTChambersInStation.clear();
150 tmpDTStationsInWheel.end());
160 tmpDTStationsInWheel.clear();
184 LogDebug(
"Position") <<
"Constructing AlignableCSCBarrel";
187 std::vector<AlignableCSCStation*> tmpCSCStationsInEndcap;
190 for(
int iec = 1 ; iec < 3 ; iec++ ){
193 std::vector<AlignableCSCRing*> tmpCSCRingsInStation;
196 for(
int ist = 1 ; ist < 5 ; ist++ ){
199 std::vector<AlignableCSCChamber*> tmpCSCChambersInRing;
202 for (
int iri = 1; iri < 5; iri++ ){
207 for(
const auto& det: vc){
215 int ri = cscId.
ring();
219 if ( iec == ec && ist == st && iri == ri ) {
223 theCSCEndcaps[iec-1]->station(ist-1).ring(iri-1).chamber(iChamber).update(det);
228 tmpCSCChambersInRing.push_back(tmpCSCChamber);
240 if (!tmpCSCChambersInRing.empty()) {
244 tmpCSCChambersInRing.begin(),
245 tmpCSCChambersInRing.end());
251 tmpCSCRingsInStation.push_back(tmpCSCRing);
254 tmpCSCChambersInRing.clear();
269 tmpCSCRingsInStation.end());
272 tmpCSCStationsInEndcap.push_back(tmpCSCStation);
275 tmpCSCRingsInStation.clear();
287 tmpCSCStationsInEndcap.end());
293 tmpCSCStationsInEndcap.clear();
313 for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
315 for (align::Alignables::const_iterator superlayerIter = superlayers.begin(); superlayerIter != superlayers.end(); ++superlayerIter) {
317 for (align::Alignables::const_iterator layerIter = layers.begin(); layerIter != layers.end(); ++layerIter) {
318 result.push_back(*layerIter);
332 for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
334 for (align::Alignables::const_iterator superlayerIter = superlayers.begin(); superlayerIter != superlayers.end(); ++superlayerIter) {
335 result.push_back(*superlayerIter);
381 for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
383 for (align::Alignables::const_iterator layerIter = layers.begin(); layerIter != layers.end(); ++layerIter) {
384 result.push_back(*layerIter);
427 for (
const auto& iter: alignable->
components()) {
428 iter->setMother(alignable);
441 for ( align::Alignables::iterator
i=comp.begin();
i!=comp.end();
i++ )
443 Alignments* tmpAlignments = (*i)->alignments();
445 std::back_inserter(m_alignments->
m_align) );
446 delete tmpAlignments;
463 for ( align::Alignables::iterator
i=comp.begin();
i!=comp.end();
i++ )
468 delete tmpAlignmentErrorsExtended;
474 return m_alignmentErrors;
483 return tmpAlignments;
492 return tmpAlignmentErrorsExtended;
507 return tmpAlignments;
522 return tmpAlignmentErrorsExtended;
A muon DT Chamber( an AlignableDet )
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
AlignmentErrorsExtended * alignmentErrors() const override
Get alignment errors sorted by DetId.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
align::Alignables DTLayers()
Methods to return specific of components.
void update(const DTGeometry *, const CSCGeometry *)
align::Alignables CSCChambers()
Alignments * alignments() const override
Get alignments sorted by DetId.
align::Alignables DTBarrel()
align::Alignables CSCStations()
align::Alignables DTStations()
const ChamberContainer & chambers() const
Return a vector of all chambers.
~AlignableMuon() override
Destructor.
virtual const Alignables & components() const =0
Return vector of all direct components.
std::vector< AlignTransform > m_align
std::vector< AlignableCSCEndcap * > theCSCEndcaps
Alignments * dtAlignments()
Get DT alignments sorted by DetId.
align::Alignables CSCEndcaps()
align::Alignables theMuonComponents
align::Alignables DTChambers()
align::Alignables DTWheels()
std::vector< AlignableCSCStation * > theCSCStations
void recursiveSetMothers(Alignable *alignable)
Set mothers recursively.
std::vector< AlignableDTStation * > theDTStations
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
align::Alignables CSCLayers()
void buildCSCEndcap(const CSCGeometry *, bool update=false)
Build muon end caps.
std::vector< AlignableDTChamber * > theDTChambers
Containers of separate components.
std::vector< AlignableCSCRing * > theCSCRings
std::vector< AlignTransformErrorExtended > m_alignError
align::Alignables DTSuperLayers()
Alignments * cscAlignments()
Get CSC alignments sorted by DetId.
const align::Alignables & components() const final
Return all components.
AlignableMuon(const DTGeometry *, const CSCGeometry *)
Constructor from geometries.
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
std::vector< Alignable * > Alignables
std::vector< const CSCChamber * > ChamberContainer
align::Alignables CSCRings()
void buildDTBarrel(const DTGeometry *, bool update=false)
Build muon barrel.
std::vector< AlignableDTBarrel * > theDTBarrel
std::vector< AlignableDTWheel * > theDTWheels
int station() const
Return the station number.
static char chambers[264][20]
int wheel() const
Return the wheel number.
Constructor of the full muon geometry.
std::vector< AlignableCSCChamber * > theCSCChambers
A muon CSC Chamber( an AlignableDet )