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 "TTree.h"
#include <set>
#include <map>

Go to the source code of this file.

Classes

struct  ParallelFileMerger

Functions

void * getCachedDummyAddress (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

◆ getCachedDummyAddress()

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

Definition at line 30 of file AthenaRootSharedWriterSvc.cxx.

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