ATLAS Offline Software
Static Public Member Functions | Static Private Attributes | List of all members
AANTTreeMap Class Reference

#include <AANTTreeMap.h>

Collaboration diagram for AANTTreeMap:

Static Public Member Functions

static void setTree (const std::string &stream, TTree *tree)
 
static TTree * getTree (const std::string &stream)
 

Static Private Attributes

static std::mutex s_mutex
 tree map More...
 
static std::map< std::string, TTree * > s_treeMap ATLAS_THREAD_SAFE
 

Detailed Description

Definition at line 15 of file AANTTreeMap.h.

Member Function Documentation

◆ getTree()

static TTree* AANTTreeMap::getTree ( const std::string &  stream)
inlinestatic

Definition at line 23 of file AANTTreeMap.h.

24  {
25  std::scoped_lock lock (s_mutex);
26  return s_treeMap[stream];
27  }

◆ setTree()

static void AANTTreeMap::setTree ( const std::string &  stream,
TTree *  tree 
)
inlinestatic

Definition at line 18 of file AANTTreeMap.h.

19  {
20  std::scoped_lock lock (s_mutex);
21  s_treeMap[stream] = tree;
22  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::map<std::string,TTree*> s_treeMap AANTTreeMap::ATLAS_THREAD_SAFE
staticprivate

Definition at line 32 of file AANTTreeMap.h.

◆ s_mutex

std::mutex AANTTreeMap::s_mutex
staticprivate

tree map

Definition at line 31 of file AANTTreeMap.h.


The documentation for this class was generated from the following files:
AANTTreeMap::s_mutex
static std::mutex s_mutex
tree map
Definition: AANTTreeMap.h:31
tree
TChain * tree
Definition: tile_monitor.h:30
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12