EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RootOut.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RootOut.h
1
#ifndef RootOut_h
2
#define RootOut_h
3
4
//helper class for ROOT TTree output
5
6
#include <string>
7
8
class
TFile;
9
class
TTree;
10
11
class
RootOut
{
12
13
public
:
14
15
RootOut
();
16
void
SetFileName
(
const
std::string &fname) {
fOutputName
= fname;}
17
void
Open
();
// open the output and create the tree
18
void
Close
();
// write the tree and close outpu file
19
20
TTree *
GetTree
() {
return
fDetTree
;}
// provide the tree to the detectors
21
void
FillTree
();
// call fill for the tree
22
23
private
:
24
25
std::string
fOutputName
;
// name of output file
26
27
TFile *
fOut
;
// output file
28
TTree *
fDetTree
;
// output tree
29
30
};
31
32
#endif
33
Fun4All-lmon
blob
master
source
RootOut.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration