CMS 3D CMS Logo

Public Member Functions | Protected Attributes

fwlite::OutputFiles Class Reference

Helper class to handle FWLite file output names. More...

#include <OutputFiles.h>

List of all members.

Public Member Functions

std::string const & file () const
 OutputFiles ()
 OutputFiles (edm::ParameterSet const &pset)

Protected Attributes

std::string file_

Detailed Description

Helper class to handle FWLite file output names.

This is a very simple class to handle the appropriate python configuration of output files in FWLite.

Author:
Salvatore Rappoccio

Definition at line 20 of file OutputFiles.h.


Constructor & Destructor Documentation

fwlite::OutputFiles::OutputFiles ( ) [inline]

Definition at line 22 of file OutputFiles.h.

References Exception.

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

Definition at line 25 of file OutputFiles.h.

                                                :
    file_( pset.getParameter<edm::ParameterSet>("fwliteOutput").getParameter<std::string>("fileName") )
        {
        }

Member Function Documentation

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

Definition at line 30 of file OutputFiles.h.

References file_.

Referenced by main().

{ return file_; }

Member Data Documentation

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

Definition at line 33 of file OutputFiles.h.

Referenced by file().