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 
15 
16 #include <string>
17 
18 class DTMtime;
19 class DTRecoConditions;
20 class DTGeometry;
21 namespace dtCalibration {
22  class DTVDriftBaseAlgo;
23 }
24 
26 public:
28  ~DTVDriftWriter() override;
29 
30  // Operations
31  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
32  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override {}
33  void endJob() override;
34 
35 private:
36  std::string granularity_; // enforced by SL
37 
38  const DTMtime* mTimeMap_; // legacy DB object
39  const DTRecoConditions* vDriftMap_; // DB object in new format
40  bool readLegacyVDriftDB; // which format to use to read old values
41  bool writeLegacyVDriftDB; // which format to be created
42 
44 
45  std::unique_ptr<dtCalibration::DTVDriftBaseAlgo> vDriftAlgo_;
46 };
47 #endif
DTGeometry
Definition: DTGeometry.h:28
DTVDriftWriter::readLegacyVDriftDB
bool readLegacyVDriftDB
Definition: DTVDriftWriter.h:40
DTVDriftWriter::dtGeom_
edm::ESHandle< DTGeometry > dtGeom_
Definition: DTVDriftWriter.h:43
DTVDriftWriter::mTimeMap_
const DTMtime * mTimeMap_
Definition: DTVDriftWriter.h:38
DTVDriftWriter::DTVDriftWriter
DTVDriftWriter(const edm::ParameterSet &pset)
Definition: DTVDriftWriter.cc:35
ESHandle.h
edm::Run
Definition: Run.h:45
DTVDriftWriter::endJob
void endJob() override
Definition: DTVDriftWriter.cc:76
DTMtime
Definition: DTMtime.h:68
EDAnalyzer.h
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DTVDriftWriter
Definition: DTVDriftWriter.h:25
DTVDriftWriter::vDriftAlgo_
std::unique_ptr< dtCalibration::DTVDriftBaseAlgo > vDriftAlgo_
Definition: DTVDriftWriter.h:45
edm::ESHandle< DTGeometry >
edm::ParameterSet
Definition: ParameterSet.h:47
DTVDriftWriter::vDriftMap_
const DTRecoConditions * vDriftMap_
Definition: DTVDriftWriter.h:39
DTVDriftBaseAlgo
DTVDriftWriter::writeLegacyVDriftDB
bool writeLegacyVDriftDB
Definition: DTVDriftWriter.h:41
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dtCalibration
Definition: DTT0BaseCorrection.h:16
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DTRecoConditions
Definition: DTRecoConditions.h:28
DTVDriftWriter::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: DTVDriftWriter.h:32
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTVDriftWriter::granularity_
std::string granularity_
Definition: DTVDriftWriter.h:36
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTVDriftWriter::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Definition: DTVDriftWriter.cc:53
DTVDriftWriter::~DTVDriftWriter
~DTVDriftWriter() override
Definition: DTVDriftWriter.cc:51