ATLAS Offline Software
Loading...
Searching...
No Matches
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
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()

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 }
static std::mutex s_mutex
tree map
Definition AANTTreeMap.h:31

◆ setTree()

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 }
TChain * tree

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: