CMS 3D CMS Logo

Public Member Functions | Protected Attributes

fwlite::OutputFiles Class Reference

#include <OutputFiles.h>

List of all members.

Public Member Functions

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

Protected Attributes

std::string file_
 output file name

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

                  {
      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 26 of file OutputFiles.h.

                                            :
      file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {};

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

{ return file_; }

Member Data Documentation

std::string fwlite::OutputFiles::file_ [protected]

output file name

Definition at line 33 of file OutputFiles.h.

Referenced by file().