CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OutputFiles.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_interface_OutputFiles_h
2 #define DataFormats_FWLite_interface_OutputFiles_h
3 
4 #include <vector>
5 #include <string>
8 
17 namespace fwlite {
18 
19  class OutputFiles {
20  public:
22  OutputFiles() { throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl; }
25  : file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")){};
27  std::string const& file() const { return file_; }
28 
29  protected:
32  };
33 } // namespace fwlite
34 
35 #endif
tuple cfg
Definition: looper.py:296
std::string file_
output file name
Definition: OutputFiles.h:31
ParameterSet const & getParameterSet(ParameterSetID const &id)
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition: OutputFiles.h:24
OutputFiles()
empty constructor
Definition: OutputFiles.h:22
std::string const & file() const
return output fuke name
Definition: OutputFiles.h:27