ATLAS Offline Software
RpcPadContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONDIGITCONTAINER_RPCPADCONAINTER_H
6 #define MUONDIGITCONTAINER_RPCPADCONAINTER_H
7 
8 
9 
10 #include <vector>
11 #include <string>
12 #include "MuonRDO/RpcCoinMatrix.h"
13 #include "MuonRDO/RpcPad.h"
14 #include "MuonRDO/RpcPad_Cache.h"
15 #include "AthenaKernel/CLASS_DEF.h"
17 
23  :public IdentifiableContainer<RpcPad> {
24 
25 public:
26  RpcPadContainer(unsigned int hashmax) ;
27  RpcPadContainer(RpcPad_Cache* cache) ;
28 
29  ~RpcPadContainer()=default;
30 
33 
35  //unsigned int idToHash(unsigned int id) const;
36 
37  // Insert a pad
38  void push_back( RpcCoinMatrix* cm);
39 
40  size_type pad_size() const ;
41 
42  // IdentifiableContainer is still a DataObject
43  // Put CLID here.
44  static const CLID& classID();
45 
47  virtual const CLID& clID() const {
48  return classID();
49  }
50 
51 };
52 
54 
55 // Output stream.
56 std::ostream& operator<<(std::ostream& lhs, const RpcPadContainer& rhs);
57 
58 #endif
59 
60 
RpcPadContainer::pad_size
size_type pad_size() const
Definition: RpcPadContainer.cxx:43
RpcPadContainer::clID
virtual const CLID & clID() const
return class ID
Definition: RpcPadContainer.h:47
IdentifiableContainerMT::size_type
std::vector< std::atomic< const void * > >::size_type size_type
Definition: IdentifiableContainerMT.h:72
RpcPadContainer::RpcPadContainer
RpcPadContainer(unsigned int hashmax)
Definition: RpcPadContainer.cxx:16
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
RpcPadContainer::push_back
void push_back(RpcCoinMatrix *cm)
Convert identifier to idhash.
Definition: RpcPadContainer.cxx:36
RpcPadContainer::~RpcPadContainer
~RpcPadContainer()=default
RpcCoinMatrix
Definition: RpcCoinMatrix.h:20
RpcPad.h
RpcPadContainer::classID
static const CLID & classID()
Definition: RpcPadContainer.cxx:28
cm
const double cm
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
RpcPadContainer::MyBase
IdentifiableContainer< RpcPad > MyBase
Definition: RpcPadContainer.h:32
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
RpcPadContainer::size_type
RpcPad::size_type size_type
Definition: RpcPadContainer.h:31
DataVector< RpcCoinMatrix >::size_type
BASE::size_type size_type
Definition: DataVector.h:813
RpcPad_Cache.h
CLASS_DEF.h
macros to associate a CLID to a type
EventContainers::IdentifiableCache
Definition: IdentifiableCache.h:29
IdentifiableContainer.h
This class is a general container which can hold objects of accessed by an IdentifierHash For more in...
RpcCoinMatrix.h
RpcPadContainer
Use IdentifiableContainer with RpcPad.
Definition: RpcPadContainer.h:23