CMS 3D CMS Logo

DTVDriftWriter.h

Go to the documentation of this file.
00001 #ifndef DTVDriftWriter_H
00002 #define DTVDriftWriter_H
00003 
00004 /*  Program to evaluate v_drift and t0 from TMax histograms
00005  *  and write the results to a file for each SL
00006  
00007  *  $Date: 2007/07/11 12:21:01 $
00008  *  $Revision: 1.1 $
00009  *  \author M. Giunta - e-mail:marina.giunta@cern.ch
00010  */
00011 
00012 
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00015 
00016 
00017 #include <string>
00018 #include <vector> 
00019 
00020 
00021 namespace edm {
00022   class ParameterSet;
00023   class Event;
00024   class EventSetup;
00025 }
00026 
00027 class TFile;
00028 class DTMeanTimerFitter;
00029 class DTMtime;
00030 
00031 
00032 class DTVDriftWriter : public edm::EDAnalyzer {
00033 public:
00035   DTVDriftWriter(const edm::ParameterSet& pset);
00036 
00038   virtual ~DTVDriftWriter();
00039 
00040   // Operations
00041   void endJob();
00042 
00043   void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
00044  
00045 protected:
00046 
00047 private:
00048   // Debug flag
00049   bool debug;
00050 
00051   // The file which contains the tMax histograms
00052   TFile *theFile;
00053 
00054   // The name of the input root file which contains the tMax histograms
00055   std::string theRootInputFile;
00056 
00057   // The name of the output text file
00058   std::string theVDriftOutputFile;
00059 
00060   // parameter set for DTCalibrationMap constructor
00061   edm::ParameterSet theCalibFilePar;
00062   
00063   // the granularity to be used for calib consts evaluation
00064   std::string theGranularity;
00065 
00066   // The fitter
00067   DTMeanTimerFitter *theFitter;
00068 
00069   // The object to be written to DB
00070   DTMtime* theMTime;
00071 
00072 };
00073 #endif

Generated on Tue Jun 9 17:25:30 2009 for CMSSW by  doxygen 1.5.4