Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
RPCMonitorClient
src
SaveDQMFile.cc
Go to the documentation of this file.
1
/*
2
* \author Anna Cimmino
3
*/
4
#include <
DQM/RPCMonitorClient/interface/SaveDQMFile.h
>
5
6
// Framework
7
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
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
28
SaveDQMFile::SaveDQMFile
(
const
ParameterSet
& ps ){
29
30
LogVerbatim
(
"readFile"
) <<
"[SaveDQMFile]: Constructor"
;
31
32
myFile_= ps.
getUntrackedParameter
<
string
>(
"OutputFile"
,
"uffa.root"
);
33
}
34
35
SaveDQMFile::~SaveDQMFile
(){
36
dbe_
= 0;
37
}
38
39
void
SaveDQMFile::beginJob
(){}
40
41
void
SaveDQMFile::beginRun
(
const
Run
&
r
,
const
EventSetup
& iSetup){
42
dbe_
=
Service<DQMStore>
().
operator
->();
43
dbe_
->
setVerbose
(0);
44
}
45
46
void
SaveDQMFile::beginLuminosityBlock
(
LuminosityBlock
const
& lumiSeg,
EventSetup
const
& context) {}
47
48
void
SaveDQMFile::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&
c
){}
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
60
void
SaveDQMFile::endJob
(){}
61
SaveDQMFile::endJob
void endJob()
Endjob.
Definition:
SaveDQMFile.cc:60
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
edm::Service< DQMStore >
csvReporter.r
tuple r
Definition:
csvReporter.py:25
SaveDQMFile::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Begin Lumi block.
Definition:
SaveDQMFile.cc:46
DQMStore::save
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:1898
edm::LuminosityBlock
Definition:
LuminosityBlock.h:35
SaveDQMFile::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition:
SaveDQMFile.cc:41
SaveDQMFile::analyze
void analyze(const edm::Event &, const edm::EventSetup &)
Analyze.
Definition:
SaveDQMFile.cc:48
SaveDQMFile::beginJob
void beginJob()
BeginJob.
Definition:
SaveDQMFile.cc:39
iEvent
int iEvent
Definition:
GenABIO.cc:243
edm::EventSetup
Definition:
EventSetup.h:44
DQMStore::setVerbose
void setVerbose(unsigned level)
Definition:
DQMStore.cc:196
edm::LogVerbatim
Definition:
MessageLogger.h:236
dbe_
DQMStore * dbe_
Definition:
PFJetBenchmarkAnalyzer.cc:78
SaveDQMFile::SaveDQMFile
SaveDQMFile(const edm::ParameterSet &ps)
Constructor.
Definition:
SaveDQMFile.cc:28
cmsCodeRules.cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
SaveDQMFile::~SaveDQMFile
virtual ~SaveDQMFile()
Destructor.
Definition:
SaveDQMFile.cc:35
SaveDQMFile.h
trackerHits.c
tuple c
Definition:
trackerHits.py:26
SaveDQMFile::endRun
void endRun(const edm::Run &, const edm::EventSetup &)
Definition:
SaveDQMFile.cc:52
edm::ParameterSet
Definition:
ParameterSet.h:32
edm::Event
Definition:
Event.h:49
edm::Run
Definition:
Run.h:32
SaveDQMFile::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
End Lumi Block.
Definition:
SaveDQMFile.cc:50
Generated for CMSSW Reference Manual by
1.8.5