CMS 3D CMS Logo

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
fwlite
Definition: TFileDirectory.h:16
fwlite::OutputFiles::file_
std::string file_
output file name
Definition: OutputFiles.h:31
fwlite::OutputFiles
Definition: OutputFiles.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
fwlite::OutputFiles::OutputFiles
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition: OutputFiles.h:24
edm::ParameterSet
Definition: ParameterSet.h:47
looper.cfg
cfg
Definition: looper.py:297
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:862
std
Definition: JetResolutionObject.h:76
fwlite::OutputFiles::file
std::string const & file() const
return output fuke name
Definition: OutputFiles.h:27
Exception
Definition: hltDiff.cc:246
Exception.h
ParameterSet.h
fwlite::OutputFiles::OutputFiles
OutputFiles()
empty constructor
Definition: OutputFiles.h:22