DataFormats
FWLite
interface
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>
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
FWCore/Utilities/interface/Exception.h
"
8
17
namespace
fwlite
{
18
19
class
OutputFiles
{
20
public
:
22
OutputFiles
() {
throw
cms::Exception
(
"InvalidInput"
) <<
"Must specify a string fileName"
<< std::endl; }
24
OutputFiles
(
const
edm::ParameterSet
&
cfg
)
25
:
file_
(
cfg
.
getParameterSet
(
"fwliteOutput"
).getParameter<
std
::
string
>(
"fileName"
)){};
27
std::string
const
&
file
()
const
{
return
file_
; }
28
29
protected
:
31
std::string
file_
;
32
};
33
}
// namespace fwlite
34
35
#endif
fwlite::OutputFiles::file_
std::string file_
output file name
Definition:
OutputFiles.h:31
Exception
Definition:
hltDiff.cc:245
fwlite::OutputFiles
Definition:
OutputFiles.h:19
std
Definition:
JetResolutionObject.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
fwlite::OutputFiles::file
std::string const & file() const
return output fuke name
Definition:
OutputFiles.h:27
looper.cfg
cfg
Definition:
looper.py:296
Exception.h
fwlite::OutputFiles::OutputFiles
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition:
OutputFiles.h:24
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition:
ParameterSet.cc:862
fwlite
Definition:
TFileDirectory.h:16
edm::ParameterSet
Definition:
ParameterSet.h:47
fwlite::OutputFiles::OutputFiles
OutputFiles()
empty constructor
Definition:
OutputFiles.h:22
Generated for CMSSW Reference Manual by
1.8.14