CMS 3D CMS Logo

Public Member Functions | Private Attributes

JetFileSaver Class Reference

#include <JetFileSaver.h>

Inheritance diagram for JetFileSaver:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob ()
virtual void endJob ()
 JetFileSaver (const edm::ParameterSet &)

Private Attributes

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

Detailed Description

Definition at line 13 of file JetFileSaver.h.


Constructor & Destructor Documentation

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";
  
}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 39 of file JetFileSaver.cc.

{
}
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_);
}

Member Data Documentation

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().