ATLAS Offline Software
NtupleVars.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 #include "TTree.h"
9 #include <iostream>
10 
11 namespace VKalVrtAthena {
12 
13  //____________________________________________________________________________________________________
14  NtupleVars::NtupleVars() = default;
15 
16  //____________________________________________________________________________________________________
17  NtupleVars::~NtupleVars() = default;
18 
19  //____________________________________________________________________________________________________
21 
22 
23  //____________________________________________________________________________________________________
25 
26 
27  //____________________________________________________________________________________________________
28  void NtupleVars::branchNtuple( TTree *tree ) {
29 
30  for( auto pair : m_varHolder ) {
31  pair.second->branch_tree( pair.first, tree );
32  }
33 
34  /*
35  for( auto *layer : m_RecoTrk_Int ) {
36  layer->setBranchAddress( tree, "RecoTrk_Int" );
37  }
38  */
39 
40  /*
41  for( auto *layer : m_SVTrk_Int ) {
42  layer->setBranchAddress( tree, "SVTrk" );
43  }
44  */
45 
46 
47  }
48 
49  //____________________________________________________________________________________________________
51  for( auto& pair : m_varHolder ) {
52  pair.second->clear();
53  }
54 
55  // for( auto *layer : m_RecoTrk_Int ) {
56  // layer->clear();
57  // }
58 
59  // for( auto *layer : m_SVTrk_Int ) {
60  // layer->clear();
61  // }
62 
63  }
64 
65 }
VKalVrtAthena::NtupleVars::deleteNtupleVariables
void deleteNtupleVariables()
Definition: NtupleVars.cxx:24
VKalVrtAthena::NtupleVars::setupNtupleVariables
void setupNtupleVariables()
Definition: NtupleVars.cxx:20
tree
TChain * tree
Definition: tile_monitor.h:30
VKalVrtAthena::NtupleVars::clear
void clear()
Definition: NtupleVars.cxx:50
NtupleVars.h
VKalVrtAthena::NtupleVars::branchNtuple
void branchNtuple(TTree *tree)
Definition: NtupleVars.cxx:28
VKalVrtAthena
Definition: AANT_Tools.cxx:24
VKalVrtAthena::NtupleVars::m_varHolder
std::map< std::string, BaseHolder * > m_varHolder
Definition: NtupleVars.h:119
VKalVrtAthena::NtupleVars::~NtupleVars
~NtupleVars()
VKalVrtAthena::NtupleVars::NtupleVars
NtupleVars()
IntersectionPos.h