Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:47

0001 #include "Phase2EndcapSingleRingBuilder.h"
0002 #include "TrackingTools/DetLayers/interface/DetLayerException.h"
0003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0004 
0005 using namespace edm;
0006 using namespace std;
0007 
0008 Phase2EndcapSingleRing* Phase2EndcapSingleRingBuilder::build(const GeometricDet* aPhase2EndcapSingleRing,
0009                                                              const TrackerGeometry* theGeomDetGeometry) {
0010   vector<const GeometricDet*> allGeometricDets = aPhase2EndcapSingleRing->components();
0011   vector<const GeometricDet*> compGeometricDets;
0012   vector<const GeomDet*> allDets;
0013 
0014   for (vector<const GeometricDet*>::const_iterator compGeometricDets = allGeometricDets.begin();
0015        compGeometricDets != allGeometricDets.end();
0016        compGeometricDets++) {
0017     const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*compGeometricDets)->geographicalId());
0018     allDets.push_back(theGeomDet);
0019   }
0020 
0021   LogDebug("TkDetLayers") << "Phase2EndcapSingleRingBuilder with #Modules: " << allGeometricDets.size() << std::endl;
0022 
0023   return new Phase2EndcapSingleRing(allDets);
0024 }