CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Geometry/GlobalTrackingGeometryBuilder/plugins/GlobalTrackingGeometryBuilder.cc

Go to the documentation of this file.
00001 
00008 #include <Geometry/GlobalTrackingGeometryBuilder/plugins/GlobalTrackingGeometryBuilder.h>
00009 #include <Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h>
00010 
00011 #include <Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h>
00012 #include <Geometry/CSCGeometry/interface/CSCGeometry.h>
00013 #include <Geometry/RPCGeometry/interface/RPCGeometry.h>
00014 #include <Geometry/DTGeometry/interface/DTGeometry.h>
00015 
00016 
00017 #include <iostream>
00018 #include <iomanip>
00019 
00020 GlobalTrackingGeometryBuilder::GlobalTrackingGeometryBuilder() : myName("GlobalTrackingGeometryBuilder"){}
00021 
00022 
00023 GlobalTrackingGeometryBuilder::~GlobalTrackingGeometryBuilder(){}
00024 
00025 
00026 GlobalTrackingGeometry* GlobalTrackingGeometryBuilder::build(const TrackerGeometry* tk, 
00027     const DTGeometry* dt, const CSCGeometry* csc, const RPCGeometry* rpc){
00028 
00029     // DO NOT CHANGE THE ORDER OF THE GEOMETRIES !!!!!!!  
00030     
00031     std::vector<const TrackingGeometry*> tkGeometries;
00032     
00033     tkGeometries.push_back(tk);
00034     tkGeometries.push_back(dt);
00035     tkGeometries.push_back(csc);
00036     tkGeometries.push_back(rpc);
00037     
00038     
00039     return new GlobalTrackingGeometry(tkGeometries);
00040 }
00041