CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
fwlite::OutputFiles Class Reference

#include <OutputFiles.h>

Public Member Functions

std::string const & file () const
 return output fuke name More...
 
 OutputFiles ()
 empty constructor More...
 
 OutputFiles (const edm::ParameterSet &cfg)
 default constructor from parameter set More...
 

Protected Attributes

std::string file_
 output file name More...
 

Detailed Description

Definition at line 19 of file OutputFiles.h.

Constructor & Destructor Documentation

fwlite::OutputFiles::OutputFiles ( )
inline

empty constructor

Definition at line 23 of file OutputFiles.h.

References Exception.

23  {
24  throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl;
25  }
fwlite::OutputFiles::OutputFiles ( const edm::ParameterSet cfg)
inline

default constructor from parameter set

Definition at line 27 of file OutputFiles.h.

27  :
28  file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {};
T getParameter(std::string const &) const
std::string file_
output file name
Definition: OutputFiles.h:34
ParameterSet const & getParameterSet(std::string const &) const

Member Function Documentation

std::string const& fwlite::OutputFiles::file ( ) const
inline

return output fuke name

Definition at line 30 of file OutputFiles.h.

References file_.

Referenced by main().

30 { return file_; }
std::string file_
output file name
Definition: OutputFiles.h:34

Member Data Documentation

std::string fwlite::OutputFiles::file_
protected

output file name

Definition at line 34 of file OutputFiles.h.

Referenced by file().