ATLAS Offline Software
TgcRdoContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GaudiKernel/Bootstrap.h"
6 #include "GaudiKernel/ISvcLocator.h"
7 #include "GaudiKernel/IMessageSvc.h"
9 
12 
13 // Default constructor.
15  : IdentifiableContainer<TgcRdo>(hashFcn().max())
16 {
17 }
18 
19 // Default constructor.
20 TgcRdoContainer::TgcRdoContainer(unsigned int hashmax)
21  : IdentifiableContainer<TgcRdo>(hashmax)
22 {
23 }
24 
26  : IdentifiableContainer<TgcRdo>(cache)
27 {
28 }
29 
30 
31 // Destructor.
33 = default;
34 
36 unsigned int
37 TgcRdoContainer::idToHash(unsigned int id)
38 {
39  return (hashFcn()(id));
40 }
41 
42 // Class ID
44 {
46 }
47 
48 const TgcRdoIdHash&
50 {
51  static const TgcRdoIdHash hashFcn;
52  return(hashFcn);
53 }
54 
55 
56 // Insert a RawData
58 {
59 }
TgcRdoContainer::~TgcRdoContainer
~TgcRdoContainer()
max
#define max(a, b)
Definition: cfImp.cxx:41
TgcRdoContainer::classID
static const CLID & classID()
Definition: TgcRdoContainer.cxx:43
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
TgcRdoIdHash
Definition: TgcRdoIdHash.h:18
TgcRdoContainer.h
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
TgcRdoContainer::push_back
void push_back(TgcRawData *rawData)
Definition: TgcRdoContainer.cxx:57
TgcRdoContainer::TgcRdoContainer
TgcRdoContainer()
Definition: TgcRdoContainer.cxx:14
TgcRawData
An unit object of TGC ROD output.
Definition: TgcRawData.h:23
TgcRdoContainer::hashFcn
static const TgcRdoIdHash & hashFcn()
Definition: TgcRdoContainer.cxx:49
TgcRdo
Definition: TgcRdo.h:22
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
SelectAllObject.h
StoreGateSvc.h
TgcRdoContainer::idToHash
static unsigned int idToHash(unsigned int id)
Convert identifier to idhash.
Definition: TgcRdoContainer.cxx:37
EventContainers::IdentifiableCache
Definition: IdentifiableCache.h:29