Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:33:03

0001 #ifndef Alignment_SurveyAnalysis_SurveyInputTrackerFromDB_h
0002 #define Alignment_SurveyAnalysis_SurveyInputTrackerFromDB_h
0003 
0004 /** \class SurveyInputTrackerFromDB
0005  *
0006  *  Class to read ideal tracker from DB.
0007  *
0008  *  $Date: 2012/06/13 09:22:26 $
0009  *  $Revision: 1.4 $
0010  *  \author Chung Khim Lae
0011  */
0012 
0013 #include "Alignment/SurveyAnalysis/interface/SurveyInputBase.h"
0014 #include "Alignment/SurveyAnalysis/interface/SurveyInputTextReader.h"
0015 
0016 namespace edm {
0017   class ParameterSet;
0018 }
0019 
0020 class SurveyInputTrackerFromDB : public SurveyInputBase {
0021 public:
0022   SurveyInputTrackerFromDB(const edm::ParameterSet&);
0023 
0024   /// Read ideal tracker geometry from DB
0025   void analyze(const edm::Event&, const edm::EventSetup&) override;
0026 
0027 private:
0028   SurveyInputTextReader::MapType uIdMap;
0029 
0030   const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> tTopoToken_;
0031   const edm::ESGetToken<GeometricDet, IdealGeometryRecord> geomDetToken_;
0032   const edm::ESGetToken<PTrackerParameters, PTrackerParametersRcd> ptpToken_;
0033 
0034   std::string textFileName;
0035 
0036   /// Add survey info to an alignable
0037   void addSurveyInfo(Alignable*);
0038 };
0039 
0040 #endif