CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SaveDQMFile.cc
Go to the documentation of this file.
1 /*
2  * \author Anna Cimmino
3  */
5 
6 // Framework
8 
9 // //DataFormats
10 // #include <DataFormats/MuonDetId/interface/RPCDetId.h>
11 // #include "DataFormats/RPCDigi/interface/RPCDigi.h"
12 // #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
13 
14 // // Geometry
15 // #include "Geometry/RPCGeometry/interface/RPCGeomServ.h"
16 // #include "Geometry/Records/interface/MuonGeometryRecord.h"
17 
18 // // DQM
19 // #include "DQMServices/Core/interface/MonitorElement.h"
20 
21 // #include <map>
22 // #include <sstream>
23 //#include <math.h>
24 
25 using namespace edm;
26 using namespace std;
27 
29 
30  LogVerbatim ("readFile") << "[SaveDQMFile]: Constructor";
31 
32  myFile_= ps.getUntrackedParameter<string>("OutputFile", "uffa.root");
33 }
34 
36  dbe_ = 0;
37 }
38 
40 
41 void SaveDQMFile::beginRun(const Run& r, const EventSetup& iSetup){
43  dbe_->setVerbose(0);
44  }
45 
46 void SaveDQMFile::beginLuminosityBlock(LuminosityBlock const& lumiSeg, EventSetup const& context) {}
47 
49 
50 void SaveDQMFile::endLuminosityBlock(LuminosityBlock const& lumiSeg, EventSetup const& iSetup) {}
51 
52 void SaveDQMFile::endRun(const Run& r, const EventSetup& c){
53 
54  if(dbe_ && myFile_ != "") {
55  LogVerbatim ("savedqmfile") << "[SaveDQMFile]: Saving File "<<myFile_;
56  dbe_->save(myFile_) ;
57  }
58 }
59 
61 
void endJob()
Endjob.
Definition: SaveDQMFile.cc:60
T getUntrackedParameter(std::string const &, T const &) const
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Begin Lumi block.
Definition: SaveDQMFile.cc:46
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2113
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: SaveDQMFile.cc:41
void analyze(const edm::Event &, const edm::EventSetup &)
Analyze.
Definition: SaveDQMFile.cc:48
void beginJob()
BeginJob.
Definition: SaveDQMFile.cc:39
int iEvent
Definition: GenABIO.cc:243
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
DQMStore * dbe_
SaveDQMFile(const edm::ParameterSet &ps)
Constructor.
Definition: SaveDQMFile.cc:28
virtual ~SaveDQMFile()
Destructor.
Definition: SaveDQMFile.cc:35
void endRun(const edm::Run &, const edm::EventSetup &)
Definition: SaveDQMFile.cc:52
Definition: Run.h:33
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
End Lumi Block.
Definition: SaveDQMFile.cc:50