ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaRootSharedWriterSvc.cxx File Reference

This file contains the implementation for the AthenaRootSharedWriterSvc class. More...

#include "GaudiKernel/IAlgManager.h"
#include "AthenaRootSharedWriterSvc.h"
#include "TBranch.h"
#include "TClass.h"
#include "TFile.h"
#include "TFileMerger.h"
#include "TKey.h"
#include "TLeaf.h"
#include "TMemFile.h"
#include "TMessage.h"
#include "TMonitor.h"
#include "TServerSocket.h"
#include "TSocket.h"
#include "TString.h"
#include "TSystem.h"
#include "TTree.h"
#include <set>
#include <map>

Go to the source code of this file.

Classes

struct  ParallelFileMerger

Functions

void * getCachedObjectAddress (TClass *cl, std::unordered_map< TClass *, void * > &cache)

Detailed Description

This file contains the implementation for the AthenaRootSharedWriterSvc class.

Author
Peter van Gemmeren gemme.nosp@m.ren@.nosp@m.anl.g.nosp@m.ov

Definition in file AthenaRootSharedWriterSvc.cxx.

Function Documentation

◆ getCachedObjectAddress()

void * getCachedObjectAddress ( TClass * cl,
std::unordered_map< TClass *, void * > & cache )

Definition at line 31 of file AthenaRootSharedWriterSvc.cxx.

32{
33 if (!cl) return nullptr;
34
35 void*& map_ptr = cache[cl];
36 if (!map_ptr) {
37 map_ptr = cl->New();
38 }
39
40 return &map_ptr;
41}
const IIntersectionCache * cache() const
Retrieve the associated cache block, if it exists.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]