#include <Validation/RecoMET/interface/METFileSaver.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob (const edm::EventSetup &) |
virtual void | endJob () |
METFileSaver (const edm::ParameterSet &) | |
Private Attributes | |
DQMStore * | dbe_ |
std::map< std::string, MonitorElement * > | me |
std::string | outputFile_ |
Definition at line 25 of file METFileSaver.h.
METFileSaver::METFileSaver | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 29 of file METFileSaver.cc.
References edm::ParameterSet::getUntrackedParameter(), and outputFile_.
00030 { 00031 outputFile_ = iConfig.getUntrackedParameter<std::string>("OutputFile"); 00032 if (outputFile_.size() > 0) 00033 edm::LogInfo("OutputInfo") << " MET Task histograms will be saved to '" << outputFile_.c_str() << "'"; 00034 else edm::LogInfo("OutputInfo") << " MET Task histograms will NOT be saved"; 00035 00036 }
void METFileSaver::analyze | ( | const edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [virtual] |
void METFileSaver::beginJob | ( | const edm::EventSetup & | iSetup | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 38 of file METFileSaver.cc.
References dbe_.
00039 { 00040 // get ahold of back-end interface 00041 dbe_ = edm::Service<DQMStore>().operator->(); 00042 00043 }
Reimplemented from edm::EDAnalyzer.
Definition at line 49 of file METFileSaver.cc.
References dbe_, outputFile_, and DQMStore::save().
00050 { 00051 // Store the DAQ Histograms 00052 if (outputFile_.size() > 0 && dbe_) 00053 dbe_->save(outputFile_); 00054 }
DQMStore* METFileSaver::dbe_ [private] |
std::map<std::string, MonitorElement*> METFileSaver::me [private] |
Definition at line 38 of file METFileSaver.h.
std::string METFileSaver::outputFile_ [private] |