CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 18 of file OutputFiles.h.

Constructor & Destructor Documentation

fwlite::OutputFiles::OutputFiles ( )
inline

empty constructor

Definition at line 22 of file OutputFiles.h.

References edm::hlt::Exception.

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

default constructor from parameter set

Definition at line 26 of file OutputFiles.h.

26  :
27  file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {};
T getParameter(std::string const &) const
std::string file_
output file name
Definition: OutputFiles.h:33
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 29 of file OutputFiles.h.

References file_.

Referenced by main().

29 { return file_; }
std::string file_
output file name
Definition: OutputFiles.h:33

Member Data Documentation

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

output file name

Definition at line 33 of file OutputFiles.h.

Referenced by file().