Class to store the results from the toy MC generation into an ntuple.
More...
#include <LauGenNtuple.hh>
|
typedef std::map< TString, Int_t > | IntVarMap |
| Type to hold integer variables.
|
|
typedef std::map< TString, Double_t > | DoubleVarMap |
| Type to hold double precision floating point variables.
|
|
Class to store the results from the toy MC generation into an ntuple.
Class to store the results from the toy MC generation into an ntuple
Definition at line 45 of file LauGenNtuple.hh.
◆ LauGenNtuple()
LauGenNtuple::LauGenNtuple |
( |
const TString & |
rootFileName, |
|
|
const TString & |
rootTreeName |
|
) |
| |
Constructor.
- Parameters
-
[in] | rootFileName | the name for the ntuple |
[in] | rootTreeName | the name for the tree in the ntuple |
Definition at line 39 of file LauGenNtuple.cc.
◆ addDoubleBranch()
void LauGenNtuple::addDoubleBranch |
( |
const TString & |
name | ) |
|
Add double branch to tree.
- Parameters
-
[in] | name | the name of the branch |
Definition at line 98 of file LauGenNtuple.cc.
◆ addFriendTree()
void LauGenNtuple::addFriendTree |
( |
const TString & |
rootFileName, |
|
|
const TString & |
rootTreeName |
|
) |
| |
Add a friend tree.
- Parameters
-
[in] | rootFileName | the name of the root file |
[in] | rootTreeName | the name of the root tree |
Definition at line 220 of file LauGenNtuple.cc.
◆ addIntegerBranch()
void LauGenNtuple::addIntegerBranch |
( |
const TString & |
name | ) |
|
Add integer branch to tree.
- Parameters
-
[in] | name | the name of the branch |
Definition at line 88 of file LauGenNtuple.cc.
◆ buildIndex()
Int_t LauGenNtuple::buildIndex |
( |
const TString & |
majorName, |
|
|
const TString & |
minorName = "0" |
|
) |
| |
Create an index table using leaves of the tree.
- Parameters
-
[in] | majorName | the majorname |
[in] | minorName | the minorname |
- Returns
- the number of entries in the index (< 0 indicates failure)
Definition at line 187 of file LauGenNtuple.cc.
◆ definedBranches() [1/2]
Bool_t LauGenNtuple::definedBranches |
( |
| ) |
const |
|
inlineprotected |
Flags whether branches have been defined.
- Returns
- boolean to determine whether branches have been defined
Definition at line 145 of file LauGenNtuple.hh.
◆ definedBranches() [2/2]
void LauGenNtuple::definedBranches |
( |
Bool_t |
defined | ) |
|
|
inlineprotected |
Flags whether branches have been defined.
- Parameters
-
[in] | defined | boolean to determine whether branches have been defined |
Definition at line 151 of file LauGenNtuple.hh.
◆ fileName()
const TString& LauGenNtuple::fileName |
( |
| ) |
const |
|
inline |
Ntuple file name.
- Returns
- the name of the ntuple
Definition at line 62 of file LauGenNtuple.hh.
◆ getDoubleBranchValue()
Double_t LauGenNtuple::getDoubleBranchValue |
( |
const TString & |
name | ) |
const |
Get value of a double branch.
- Parameters
-
[in] | name | the name of the branch |
- Returns
- the value of the branch
Definition at line 130 of file LauGenNtuple.cc.
◆ getIntegerBranchValue()
Int_t LauGenNtuple::getIntegerBranchValue |
( |
const TString & |
name | ) |
const |
Get value of an integer branch.
- Parameters
-
[in] | name | the name of the branch |
- Returns
- the value of the branch
Definition at line 118 of file LauGenNtuple.cc.
◆ setDoubleBranchValue()
void LauGenNtuple::setDoubleBranchValue |
( |
const TString & |
name, |
|
|
Double_t |
value |
|
) |
| |
Set value of a double branch.
- Parameters
-
[in] | name | the name of the branch |
[in] | value | the value to set the branch |
Definition at line 113 of file LauGenNtuple.cc.
◆ setIntegerBranchValue()
void LauGenNtuple::setIntegerBranchValue |
( |
const TString & |
name, |
|
|
Int_t |
value |
|
) |
| |
Set value of an integer branch.
- Parameters
-
[in] | name | the name of the branch |
[in] | value | the value to set the branch |
Definition at line 108 of file LauGenNtuple.cc.
◆ treeName()
const TString& LauGenNtuple::treeName |
( |
| ) |
const |
|
inline |
Ntuple tree name.
- Returns
- the name of the tree
Definition at line 68 of file LauGenNtuple.hh.
The documentation for this class was generated from the following files: