#include <JetFileSaver.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
JetFileSaver (const edm::ParameterSet &) | |
Private Attributes | |
DQMStore * | dbe_ |
std::map< std::string, MonitorElement * > | me |
std::string | outputFile_ |
Definition at line 13 of file JetFileSaver.h.
JetFileSaver::JetFileSaver | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 23 of file JetFileSaver.cc.
References edm::ParameterSet::getUntrackedParameter(), and outputFile_.
{ outputFile_ = iConfig.getUntrackedParameter<std::string>("OutputFile"); if (outputFile_.size() > 0) edm::LogInfo("OutputInfo") << " Jet Task histograms will be saved to '" << outputFile_.c_str() << "'"; else edm::LogInfo("OutputInfo") << " Jet Task histograms will NOT be saved"; }
void JetFileSaver::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
void JetFileSaver::beginJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 32 of file JetFileSaver.cc.
References dbe_, and cmsCodeRules::cppFunctionSkipper::operator.
{ // get ahold of back-end interface dbe_ = edm::Service<DQMStore>().operator->(); }
void JetFileSaver::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 43 of file JetFileSaver.cc.
References dbe_, outputFile_, and DQMStore::save().
{ // Store the DAQ Histograms if (outputFile_.size() > 0 && dbe_) dbe_->save(outputFile_); }
DQMStore* JetFileSaver::dbe_ [private] |
Definition at line 25 of file JetFileSaver.h.
Referenced by beginJob(), and endJob().
std::map<std::string, MonitorElement*> JetFileSaver::me [private] |
Definition at line 26 of file JetFileSaver.h.
std::string JetFileSaver::outputFile_ [private] |
Definition at line 29 of file JetFileSaver.h.
Referenced by endJob(), and JetFileSaver().