ATLAS Offline Software
RpcPadContainer.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 #include <map>
13 #include <cassert>
14 #include <iostream>
15 
16 RpcPadContainer::RpcPadContainer( unsigned int hashmax)
17 : IdentifiableContainer<RpcPad>(hashmax)
18 {
19 }
20 
23 {
24 }
25 
26 //**********************************************************************
27 
29 {
31 }
32 
33 
34 // Insert a pad.
35 
37 }
38 
39 //**********************************************************************
40 
41 // Return the total number of cma in the container.
42 
47 
48  for (; it != iend; ++it ) {
49  count += (*it)->size();
50  }
51  return count;
52 }
53 
54 
55 //**********************************************************************
56 // Free functions.
57 //**********************************************************************
58 
59 // Output stream.
60 
61 std::ostream& operator<<(std::ostream& lhs, const RpcPadContainer& rhs) {
62  lhs << "RpcPadContainer has " << rhs.pad_size() << " pads:" << std::endl;
63  typedef SelectAllObject<RpcPadContainer> SELECTOR;
64  SELECTOR sel(&rhs);
65  SELECTOR::const_iterator it = sel.begin();
66  SELECTOR::const_iterator it_end = sel.end();
67 
68  bool first = true;
69  for ( ; it!=it_end;++it)
70  {
71  if ( first ) {
72  first = false;
73  } else {
74  lhs << std::endl;
75  }
76  lhs << " " << *it;
77  }
78  return lhs;
79 }
80 
81 //**********************************************************************
82 
83 
RpcPadContainer::pad_size
size_type pad_size() const
Definition: RpcPadContainer.cxx:43
skel.it
it
Definition: skel.GENtoEVGEN.py:396
RpcPadContainer::RpcPadContainer
RpcPadContainer(unsigned int hashmax)
Definition: RpcPadContainer.cxx:16
RpcPadContainer::push_back
void push_back(RpcCoinMatrix *cm)
Convert identifier to idhash.
Definition: RpcPadContainer.cxx:36
RpcCoinMatrix
Definition: RpcCoinMatrix.h:20
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
RpcPadContainer::classID
static const CLID & classID()
Definition: RpcPadContainer.cxx:28
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
SelectAllObjectMT
Definition: SelectAllObjectMT.h:11
sel
sel
Definition: SUSYToolsTester.cxx:97
IdentifiableContainerMT::end
const_iterator end() const
return const_iterator for end of container
Definition: IdentifiableContainerMT.h:239
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:79
IdentifiableContainerMT::begin
const_iterator begin() const
return const_iterator for first entry
Definition: IdentifiableContainerMT.h:233
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
operator<<
std::ostream & operator<<(std::ostream &lhs, const RpcPadContainer &rhs)
Definition: RpcPadContainer.cxx:61
RpcPad
Definition: RpcPad.h:21
DeMoScan.first
bool first
Definition: DeMoScan.py:536
RpcPadContainer.h
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
SelectAllObject.h
RpcPadContainer::size_type
RpcPad::size_type size_type
Definition: RpcPadContainer.h:31
StoreGateSvc.h
EventContainers::IdentifiableCache
Definition: IdentifiableCache.h:29
RpcPadContainer
Use IdentifiableContainer with RpcPad.
Definition: RpcPadContainer.h:23