Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
looper.cfg
tuple cfg
Definition:
looper.py:237
fwlite::OutputFiles::file_
std::string file_
output file name
Definition:
OutputFiles.h:33
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition:
ParameterSet.cc:953
fwlite::OutputFiles
Definition:
OutputFiles.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
edm::hlt::Exception
error
Definition:
HLTenums.h:21
fwlite::OutputFiles::OutputFiles
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition:
OutputFiles.h:26
edm::ParameterSet
Definition:
ParameterSet.h:35
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.5