Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:23

0001 #ifndef Alignment_SurveyAnalysis_DTSurveyConvert_H
0002 #define Alignment_SurveyAnalysis_DTSurveyConvert_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    DTSurveyConvert
0007 // Class:      DTSurveyConvert
0008 //
0009 /**\class DTSurveyConvert DTSurveyConvert.cc Alignment/DTSurveyConvert/src/DTSurveyConvert.cc
0010 
0011  Description: Reads survey information, process it and outputs a text file with results
0012 
0013  Implementation:
0014      <Notes on implementation>
0015 */
0016 //
0017 // Original Author:  Pablo Martinez Ruiz Del Arbol
0018 //         Created:  Wed Mar 28 09:50:08 CEST 2007
0019 //
0020 //
0021 
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023 #include "Geometry/DTGeometry/interface/DTGeometry.h"
0024 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0025 
0026 class DTSurvey;
0027 
0028 class DTSurveyConvert : public edm::one::EDAnalyzer<> {
0029 public:
0030   explicit DTSurveyConvert(const edm::ParameterSet &);
0031 
0032 private:
0033   void analyze(const edm::Event &, const edm::EventSetup &) override;
0034 
0035   const edm::ESGetToken<DTGeometry, MuonGeometryRecord> muonGeoToken_;
0036 
0037   std::vector<DTSurvey *> wheelList;
0038   std::string nameWheel_m2;
0039   std::string nameWheel_m1;
0040   std::string nameWheel_0;
0041   std::string nameWheel_p1;
0042   std::string nameWheel_p2;
0043   std::string nameChambers_m2;
0044   std::string nameChambers_m1;
0045   std::string nameChambers_0;
0046   std::string nameChambers_p1;
0047   std::string nameChambers_p2;
0048   std::string outputFileName;
0049   bool wheel_m2;
0050   bool wheel_m1;
0051   bool wheel_0;
0052   bool wheel_p1;
0053   bool wheel_p2;
0054   bool WriteToDB;
0055 
0056   const edm::ESGetToken<DTGeometry, MuonGeometryRecord> dtGeomToken_;
0057   const edm::ESGetToken<CSCGeometry, MuonGeometryRecord> cscGeomToken_;
0058   const edm::ESGetToken<GEMGeometry, MuonGeometryRecord> gemGeomToken_;
0059 };
0060 
0061 #endif