Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
FWLite
src
TFileService.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/FWLite/interface/TFileService.h
"
2
#include "TFile.h"
3
#include "TROOT.h"
4
5
namespace
fwlite {
6
7
TFileService::TFileService
(
const
std::string
&
fileName
) :
8
TFileDirectory
(
""
,
""
, TFile::Open(fileName.c_str() ,
"RECREATE"
),
""
),
9
file_(
TFileDirectory
::file_),
10
fileName_(fileName)
11
{
12
}
13
14
15
TFileService::TFileService
(TFile * aFile) :
16
TFileDirectory
(
""
,
""
, aFile,
""
),
17
file_(
TFileDirectory
::file_),
18
fileName_(aFile->GetName())
19
{
20
}
21
22
TFileService::~TFileService
() {
23
file_
->Write();
24
file_
->Close();
25
delete
file_
;
26
}
27
28
}
fwlite::TFileService::~TFileService
~TFileService()
destructor
Definition:
TFileService.cc:22
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
fwlite::TFileService::file_
TFile * file_
pointer to opened TFile
Definition:
TFileService.h:28
MillePedeFileConverter_cfg.fileName
tuple fileName
Definition:
MillePedeFileConverter_cfg.py:32
TFileService.h
fwlite::TFileService::TFileService
TFileService(const std::string &fileName)
constructor
Definition:
TFileService.cc:7
TFileDirectory
Definition:
TFileDirectory.h:24
Generated for CMSSW Reference Manual by
1.8.5