CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/CalibMuon/DTCalibration/plugins/DTVDriftWriter.h

Go to the documentation of this file.
00001 #ifndef CalibMuon_DTCalibration_DTVDriftWriter_h
00002 #define CalibMuon_DTCalibration_DTVDriftWriter_h
00003 
00004 /*  \class DTVDriftWriter
00005  *  Instantiates configurable algo plugin to
00006  *  compute and write vDrift DB.
00007  * 
00008  *  $Date: 2012/03/02 19:47:33 $
00009  *  $Revision: 1.4 $
00010  *  Author of original version: M. Giunta
00011  *  \author A. Vilela Pereira 
00012  */
00013 
00014 #include "FWCore/Framework/interface/EDAnalyzer.h"
00015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00016 #include "FWCore/Framework/interface/ESHandle.h"
00017 
00018 #include <string>
00019 
00020 class DTMtime;
00021 class DTGeometry;
00022 namespace dtCalibration {
00023   class DTVDriftBaseAlgo;
00024 }
00025 
00026 class DTVDriftWriter : public edm::EDAnalyzer {
00027 public:
00028   DTVDriftWriter(const edm::ParameterSet& pset);
00029   virtual ~DTVDriftWriter();
00030 
00031   // Operations
00032   virtual void beginRun(const edm::Run& run, const edm::EventSetup& setup);
00033   virtual void analyze(const edm::Event & event, const edm::EventSetup& eventSetup) {}
00034   virtual void endJob();
00035  
00036 private:
00037   std::string granularity_; // enforced by SL
00038 
00039   const DTMtime* mTimeMap_;
00040   edm::ESHandle<DTGeometry> dtGeom_;
00041 
00042   dtCalibration::DTVDriftBaseAlgo* vDriftAlgo_; 
00043 };
00044 #endif
00045