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

◆ OutputFiles() [1/2]

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; }

◆ OutputFiles() [2/2]

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

Member Function Documentation

◆ file()

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

◆ file_

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

output file name

Definition at line 31 of file OutputFiles.h.

Referenced by file().