CMS 3D CMS Logo

METFileSaver Class Reference

#include <Validation/RecoMET/interface/METFileSaver.h>

Inheritance diagram for METFileSaver:

edm::EDAnalyzer

List of all members.

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

DQMStoredbe_
std::map< std::string,
MonitorElement * > 
me
std::string outputFile_


Detailed Description

Definition at line 25 of file METFileSaver.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

void METFileSaver::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 45 of file METFileSaver.cc.

00046 {
00047 }

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 }

void METFileSaver::endJob ( void   )  [virtual]

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 }


Member Data Documentation

DQMStore* METFileSaver::dbe_ [private]

Definition at line 37 of file METFileSaver.h.

Referenced by beginJob(), and endJob().

std::map<std::string, MonitorElement*> METFileSaver::me [private]

Definition at line 38 of file METFileSaver.h.

std::string METFileSaver::outputFile_ [private]

Definition at line 41 of file METFileSaver.h.

Referenced by endJob(), and METFileSaver().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:14 2009 for CMSSW by  doxygen 1.5.4