CMS 3D CMS Logo

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

Constructor & Destructor Documentation

fwlite::OutputFiles::OutputFiles ( )
inline

empty constructor

Definition at line 22 of file OutputFiles.h.

References Exception.

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

default constructor from parameter set

Definition at line 24 of file OutputFiles.h.

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

Member Function Documentation

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

return output fuke name

Definition at line 27 of file OutputFiles.h.

References file_.

Referenced by main().

27 { return file_; }
std::string file_
output file name
Definition: OutputFiles.h:31

Member Data Documentation

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

output file name

Definition at line 31 of file OutputFiles.h.

Referenced by file().