File indexing completed on 2024-09-07 04:34:43
0001 #ifndef SurveyDataConverter_h
0002 #define SurveyDataConverter_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
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
0041
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
0055
0056 bool applyfineinfo, applycoarseinfo, adderrors;
0057 };
0058
0059 #endif