CMS 3D CMS Logo

DTVDriftWriter.h
Go to the documentation of this file.
1 #ifndef CalibMuon_DTCalibration_DTVDriftWriter_h
2 #define CalibMuon_DTCalibration_DTVDriftWriter_h
3 
4 /* \class DTVDriftWriter
5  * Instantiates configurable algo plugin to
6  * compute and write vDrift DB.
7  *
8  * Author of original version: M. Giunta
9  * \author A. Vilela Pereira
10  */
11 
19 
20 #include <string>
21 
22 class DTMtime;
23 class DTRecoConditions;
24 class DTGeometry;
25 namespace dtCalibration {
26  class DTVDriftBaseAlgo;
27 }
28 
29 class DTVDriftWriter : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
30 public:
32  ~DTVDriftWriter() override;
33 
34  // Operations
35  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
36  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override {}
37  void endRun(const edm::Run& run, const edm::EventSetup& setup) override{};
38  void endJob() override;
39 
40 private:
44  std::string granularity_; // enforced by SL
45  const DTMtime* mTimeMap_; // legacy DB object
46  const DTRecoConditions* vDriftMap_; // DB object in new format
47  bool readLegacyVDriftDB; // which format to use to read old values
48  bool writeLegacyVDriftDB; // which format to be created
49 
51 
52  std::unique_ptr<dtCalibration::DTVDriftBaseAlgo> vDriftAlgo_;
53 };
54 #endif
const edm::ESGetToken< DTRecoConditions, DTRecoConditionsVdriftRcd > vDriftMapToken_
edm::ESHandle< DTGeometry > dtGeom_
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
const DTRecoConditions * vDriftMap_
DTVDriftWriter(const edm::ParameterSet &pset)
void endRun(const edm::Run &run, const edm::EventSetup &setup) override
const edm::ESGetToken< DTMtime, DTMtimeRcd > mTimeMapToken_
~DTVDriftWriter() override
std::unique_ptr< dtCalibration::DTVDriftBaseAlgo > vDriftAlgo_
void endJob() override
bool writeLegacyVDriftDB
const DTMtime * mTimeMap_
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition: event.py:1
Definition: Run.h:45
std::string granularity_