CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DQM/RPCMonitorClient/src/SaveDQMFile.cc

Go to the documentation of this file.
00001 /*
00002  *  \author Anna Cimmino
00003  */
00004 #include <DQM/RPCMonitorClient/interface/SaveDQMFile.h>
00005 
00006 // Framework
00007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00008 
00009 // //DataFormats
00010 // #include <DataFormats/MuonDetId/interface/RPCDetId.h>
00011 // #include "DataFormats/RPCDigi/interface/RPCDigi.h"
00012 // #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
00013 
00014 // // Geometry
00015 // #include "Geometry/RPCGeometry/interface/RPCGeomServ.h"
00016 // #include "Geometry/Records/interface/MuonGeometryRecord.h"
00017 
00018 // // DQM
00019 // #include "DQMServices/Core/interface/MonitorElement.h"
00020 
00021 // #include <map>
00022 // #include <sstream>
00023 //#include <math.h>
00024 
00025 using namespace edm;
00026 using namespace std;
00027 
00028 SaveDQMFile::SaveDQMFile(const ParameterSet& ps ){
00029  
00030   LogVerbatim ("readFile") << "[SaveDQMFile]: Constructor";
00031 
00032   myFile_= ps.getUntrackedParameter<string>("OutputFile", "uffa.root");
00033 }
00034 
00035 SaveDQMFile::~SaveDQMFile(){
00036   dbe_ = 0;
00037 }
00038 
00039 void SaveDQMFile::beginJob(){}
00040 
00041 void SaveDQMFile::beginRun(const Run& r, const EventSetup& iSetup){
00042   dbe_ = Service<DQMStore>().operator->();
00043   dbe_->setVerbose(0);
00044  }
00045 
00046 void SaveDQMFile::beginLuminosityBlock(LuminosityBlock const& lumiSeg, EventSetup const& context) {}
00047 
00048 void SaveDQMFile::analyze(const edm::Event& iEvent, const edm::EventSetup& c){}
00049 
00050 void SaveDQMFile::endLuminosityBlock(LuminosityBlock const& lumiSeg, EventSetup const& iSetup) {}
00051  
00052 void SaveDQMFile::endRun(const Run& r, const EventSetup& c){
00053 
00054   if(dbe_ && myFile_ != "") {
00055     LogVerbatim ("savedqmfile") << "[SaveDQMFile]: Saving File "<<myFile_;
00056     dbe_->save(myFile_) ;
00057   }
00058 }
00059 
00060 void SaveDQMFile::endJob(){}
00061