ATLAS Offline Software
Loading...
Searching...
No Matches
TDVCollectionProxy.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: TDVCollectionProxy.h 687822 2015-08-06 07:58:06Z krasznaa $
8#ifndef XAODCORE_TDVCOLLECTIONPROXY_H
9#define XAODCORE_TDVCOLLECTIONPROXY_H
10
11// System include(s):
12#include <cstddef>
13
14// ROOT include(s):
15#include <TGenCollectionProxy.h>
16
17// Forward declaration(s):
18class TClass;
19
20namespace xAOD {
21
25
46 : public TGenCollectionProxy {
47
48 public:
50 typedef TGenCollectionProxy::Sizing_t Sizing_t;
51
57 TDVCollectionProxy( const char* conttype );
61
64 virtual void PushProxy( void* objstart );
65
67 virtual TVirtualCollectionProxy* Generate() const;
68
70 void SetResize( Sizing_t func );
71
72 private:
74 virtual TGenCollectionProxy* InitializeEx( Bool_t silent );
76 void FindOffsets( const char* elttype,
77 const char* conttype );
78
80 TString fName;
83
85 ptrdiff_t fContoff;
87 ptrdiff_t fOffset;
88
90 TClass* fEltBase;
92 TClass* fEltType;
93
94 // Disallow copying.
96
97 }; // class TDVCollectionProxy
98
99} // namespace xAOD
100
101#endif // XAODCORE_TDVCOLLECTIONPROXY_H
Dummy class to use as the DataVector template argument for the class we give to the Root proxy.
TClass * fEltBase
The element type to which the DV representation points.
void FindOffsets(const char *elttype, const char *conttype)
Initialize the cached pointer offsets.
virtual TVirtualCollectionProxy * Generate() const
Clone this object.
Bool_t fInitialized
Flag for knowing whether the class was initialised already.
virtual TGenCollectionProxy * InitializeEx(Bool_t silent)
Function initialising the proxy just in time.
TClass * fEltType
The declared element type of the DV.
TDVCollectionProxy & operator=(const TDVCollectionProxy &)
void SetResize(Sizing_t func)
Set the resize(...) function used by the proxy.
TString fName
Name of the container that this class proxies.
virtual void PushProxy(void *objstart)
Start working with a new collection.
ptrdiff_t fContoff
The offset of the underlying DataVector in the declared type.
ptrdiff_t fOffset
Offset between the DV base pointer and the full DV pointer.
TDVCollectionProxy(const char *conttype)
Constructor.
TGenCollectionProxy::Sizing_t Sizing_t
Make the definition of Sizing_t public.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.