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
16
namespace
fwlite
{
17
18
class
OutputFiles
{
19
20
public
:
22
OutputFiles
() {
23
throw
cms::Exception
(
"InvalidInput"
) <<
"Must specify a string fileName"
<< std::endl;
24
}
26
OutputFiles
(
const
edm::ParameterSet
&
cfg
) :
27
file_
(cfg.
getParameterSet
(
"fwliteOutput"
).getParameter<
std
::
string
>(
"fileName"
)) {};
29
std::string
const
&
file
()
const
{
return
file_
; }
30
31
protected
:
33
std::string
file_
;
34
};
35
}
36
37
#endif
fwlite::OutputFiles::file_
std::string file_
output file name
Definition:
OutputFiles.h:33
Exception
Definition:
hltDiff.cc:291
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:18
std
Definition:
JetResolutionObject.h:76
ParameterSet.h
looper.cfg
cfg
Definition:
looper.py:293
fwlite::OutputFiles::OutputFiles
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition:
OutputFiles.h:26
fwlite
Definition:
TFileDirectory.h:16
edm::ParameterSet
Definition:
ParameterSet.h:36
fwlite::OutputFiles::OutputFiles
OutputFiles()
empty constructor
Definition:
OutputFiles.h:22
fwlite::OutputFiles::file
std::string const & file() const
return output fuke name
Definition:
OutputFiles.h:29
Generated for CMSSW Reference Manual by
1.8.11