Main Page
Namespaces
Classes
Package Documentation
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
21
public
:
23
OutputFiles
() {
24
throw
cms::Exception
(
"InvalidInput"
) <<
"Must specify a string fileName"
<< std::endl;
25
}
27
OutputFiles
(
const
edm::ParameterSet
&
cfg
) :
28
file_
(cfg.
getParameterSet
(
"fwliteOutput"
).getParameter<
std
::
string
>(
"fileName"
)) {};
30
std::string
const
&
file
()
const
{
return
file_
; }
31
32
protected
:
34
std::string
file_
;
35
};
36
}
37
38
#endif
fwlite::OutputFiles::file_
std::string file_
output file name
Definition:
OutputFiles.h:34
Exception
Definition:
hltDiff.cc:292
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition:
ParameterSet.cc:955
fwlite::OutputFiles
Definition:
OutputFiles.h:19
std
Definition:
JetResolutionObject.h:76
ParameterSet.h
looper.cfg
cfg
Definition:
looper.py:293
Exception.h
fwlite::OutputFiles::OutputFiles
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition:
OutputFiles.h:27
fwlite
Definition:
TFileDirectory.h:16
edm::ParameterSet
Definition:
ParameterSet.h:36
fwlite::OutputFiles::OutputFiles
OutputFiles()
empty constructor
Definition:
OutputFiles.h:23
fwlite::OutputFiles::file
std::string const & file() const
return output fuke name
Definition:
OutputFiles.h:30
Generated for CMSSW Reference Manual by
1.8.11