Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Validation
RecoJets
plugins
JetFileSaver.cc
Go to the documentation of this file.
1
#include "
Validation/RecoJets/plugins/JetFileSaver.h
"
2
3
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
4
#include "
FWCore/Framework/interface/MakerMacros.h
"
5
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
#include "
FWCore/ServiceRegistry/interface/Service.h
"
8
9
#include "
FWCore/Framework/interface/Event.h
"
10
#include "
DataFormats/Common/interface/Handle.h
"
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
13
#include <vector>
14
#include <utility>
15
#include <ostream>
16
#include <fstream>
17
#include <iostream>
18
#include <algorithm>
19
#include <cmath>
20
#include <memory>
21
#include "
DQMServices/Core/interface/DQMStore.h
"
22
23
JetFileSaver::JetFileSaver
(
const
edm::ParameterSet
& iConfig)
24
{
25
outputFile_
= iConfig.
getUntrackedParameter
<std::string>(
"OutputFile"
);
26
if
(
outputFile_
.size() > 0)
27
edm::LogInfo
(
"OutputInfo"
) <<
" Jet Task histograms will be saved to '"
<<
outputFile_
.c_str() <<
"'"
;
28
else
edm::LogInfo
(
"OutputInfo"
) <<
" Jet Task histograms will NOT be saved"
;
29
30
}
31
32
void
JetFileSaver::beginJob
()
33
{
34
// get ahold of back-end interface
35
dbe_
=
edm::Service<DQMStore>
().
operator
->();
36
37
}
38
39
void
JetFileSaver::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
40
{
41
}
42
43
void
JetFileSaver::endJob
()
44
{
45
// Store the DAQ Histograms
46
if
(
outputFile_
.size() > 0 &&
dbe_
)
47
dbe_
->
save
(
outputFile_
);
48
}
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
edm::Service< DQMStore >
JetFileSaver::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
JetFileSaver.cc:39
Event.h
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:1883
MakerMacros.h
Handle.h
JetFileSaver::outputFile_
std::string outputFile_
Definition:
JetFileSaver.h:29
iEvent
int iEvent
Definition:
GenABIO.cc:243
DQMStore.h
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::LogInfo
Definition:
MessageLogger.h:205
cmsCodeRules.cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
JetFileSaver::beginJob
virtual void beginJob()
Definition:
JetFileSaver.cc:32
JetFileSaver.h
edm::ParameterSet
Definition:
ParameterSet.h:31
JetFileSaver::JetFileSaver
JetFileSaver(const edm::ParameterSet &)
Definition:
JetFileSaver.cc:23
edm::Event
Definition:
Event.h:49
JetFileSaver::dbe_
DQMStore * dbe_
Definition:
JetFileSaver.h:25
ModuleDef.h
JetFileSaver::endJob
virtual void endJob()
Definition:
JetFileSaver.cc:43
Generated for CMSSW Reference Manual by
1.8.5