Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:34:43

0001 #ifndef SurveyDataConverter_h
0002 #define SurveyDataConverter_h
0003 
0004 // Package:    SurveyDataConverter
0005 // Class:      SurveyDataConverter
0006 //
0007 /**\class SurveyDataConverter SurveyDataConverter.h Alignment/SurveyDataConverter/interface/SurveyDataConverter.h
0008 
0009  Description: Reads survey corrections and applies them to the geometry.
0010 
0011  Implementation:
0012      <Notes on implementation>
0013 */
0014 //
0015 // Original Author:  Roberto Covarelli
0016 //         Created:  Fri Jul 14 18:05:49 CEST 2006
0017 // $Id: SurveyDataConverter.h,v 1.2 2007/07/03 15:51:26 covarell Exp $
0018 //
0019 //
0020 
0021 #include "Alignment/SurveyAnalysis/interface/SurveyDataReader.h"
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024 #include "Alignment/TrackerAlignment/interface/TrackerAlignment.h"
0025 
0026 class SurveyDataConverter : public edm::one::EDAnalyzer<> {
0027   typedef SurveyDataReader::MapType MapType;
0028   typedef SurveyDataReader::PairType PairType;
0029   typedef SurveyDataReader::MapTypeOr MapTypeOr;
0030   typedef SurveyDataReader::PairTypeOr PairTypeOr;
0031 
0032 public:
0033   explicit SurveyDataConverter(const edm::ParameterSet& iConfig);
0034   void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
0035   void endJob() override {}
0036 
0037 private:
0038   static const int NFILES = 2;
0039 
0040   // void applyAllSurveyInfo( align::Alignables alignables,
0041   //               const MapType map );
0042 
0043   void applyCoarseSurveyInfo(TrackerAlignment& tr_align);
0044 
0045   void applyFineSurveyInfo(TrackerAlignment& tr_align, const MapType& map);
0046 
0047   void applyAPEs(TrackerAlignment& tr_align);
0048 
0049   const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> topoToken;
0050   const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> ttrackerGeometryToken;
0051   edm::ParameterSet theParameterSet;
0052   edm::ParameterSet MisalignScenario;
0053 
0054   //private data members
0055   // AlignableTracker* theAlignableTracker;
0056   bool applyfineinfo, applycoarseinfo, adderrors;
0057 };
0058 
0059 #endif