|
ATLAS Offline Software
|
Go to the documentation of this file.
12 using namespace TopEventSelectionTools;
15 TreeManager::TreeManager() :
21 const int basketSizePrimitive,
const int basketSizeVector) :
26 m_tree->SetAutoFlush(nEventAutoFlush);
33 m_name(std::move(rhs.m_name)),
34 m_tree(std::move(rhs.m_tree)),
35 m_outputVarPointers(std::move(rhs.m_outputVarPointers)) {
39 const int basketSizePrimitive,
const int basketSizeVector) {
41 ATH_MSG_WARNING(
"Tried to call initialize, but tree is already created. Doing nothing.");
47 m_tree->SetAutoFlush(nEventAutoFlush);
63 if (strlen(typeid_type) != 1) {
71 switch (typeid_type[ 0 ]) {
133 if (!strcmp(root_type,
"Char_t")) {
135 }
else if (!strcmp(root_type,
"UChar_t")) {
137 }
else if (!strcmp(root_type,
"Short_t")) {
139 }
else if (!strcmp(root_type,
"UShort_t")) {
141 }
else if (!strcmp(root_type,
"Int_t")) {
143 }
else if (!strcmp(root_type,
"UInt_t")) {
145 }
else if (!strcmp(root_type,
"Float_t")) {
147 }
else if (!strcmp(root_type,
"Double_t")) {
149 }
else if (!strcmp(root_type,
"Long64_t")) {
151 }
else if (!strcmp(root_type,
"ULong64_t")) {
153 }
else if (!strcmp(root_type,
"Bool_t")) {
const char * TypeidType(const char *root_type)
Stolen from SFrame code.
TTree * m_tree
Pointer to the TTree, created by this class in the constructor.
TopConfig A simple configuration that is NOT a singleton.
int m_basketSizePrimitive
const char * RootType(const char *typeid_type)
Stolen from SFrame code.
TreeManager()
Default constructor - note need to initialize the class if you use this.
void fill()
Calls TTree::Fill.
std::string m_name
name of the tree
void initialize(const std::string &name, TFile *outputFile, const int, const int, const int)
Initialize the class with a new output file.
const std::string & name() const
name of the TTree
#define ATH_MSG_WARNING(x)
A class that hopefully makes making a flat ntuple tree a bit easier since you don't need to worry abo...