CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
METFileSaver Class Reference

#include <METFileSaver.h>

Inheritance diagram for METFileSaver:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 METFileSaver (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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_.

30 {
31  outputFile_ = iConfig.getUntrackedParameter<std::string>("OutputFile");
32  if (outputFile_.size() > 0)
33  edm::LogInfo("OutputInfo") << " MET Task histograms will be saved to '" << outputFile_.c_str() << "'";
34  else edm::LogInfo("OutputInfo") << " MET Task histograms will NOT be saved";
35 
36 }
T getUntrackedParameter(std::string const &, T const &) const
std::string outputFile_
Definition: METFileSaver.h:41

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.

46 {
47 }
void METFileSaver::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 38 of file METFileSaver.cc.

References dbe_, and cppFunctionSkipper::operator.

39 {
40  // get ahold of back-end interface
42 
43 }
DQMStore * dbe_
Definition: METFileSaver.h:37
void METFileSaver::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 49 of file METFileSaver.cc.

References dbe_, outputFile_, and DQMStore::save().

50 {
51  // Store the DAQ Histograms
52  if (outputFile_.size() > 0 && dbe_)
54 }
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:2113
std::string outputFile_
Definition: METFileSaver.h:41
DQMStore * dbe_
Definition: METFileSaver.h:37

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