ATLAS Offline Software
RpcDigitContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // MuonDigitContainer.cxx
6 
9 #include <map>
10 #include <cassert>
11 #include <iostream>
12 
13 using std::ostream;
14 using std::endl;
15 
16 //**********************************************************************
17 // Local definitions
18 //**********************************************************************
19 
20 //**********************************************************************
21 // Member functions.
22 //**********************************************************************
23 
24 // Default constructor.
25 
28 {
29 
30 }
31 
32 //**********************************************************************
33 
34 // Destructor.
35 
37 
38 //**********************************************************************
39 
41 {
43  // static const CLID CLID_RpcDigitContainer= 4192;
44  // return CLID_RpcDigitContainer ;
45 }
46 
47 
48 //**********************************************************************
49 
50 // Return the total number of digits in the container.
51 
56 
57  for (; it != iend; ++it ) {
58  count += (*it)->size();
59  }
60  return count;
61 }
62 
63 
64 //**********************************************************************
65 // Free functions.
66 //**********************************************************************
67 
68 // Output stream.
69 
70 ostream& operator<<(ostream& lhs, const RpcDigitContainer& rhs) {
71  lhs << "RpcDigitContainer has " << rhs.digit_size() << " digits:" << endl;
72  typedef SelectAllObject<RpcDigitContainer> SELECTOR;
73  SELECTOR sel(&rhs);
74  SELECTOR::const_iterator it = sel.begin();
75  SELECTOR::const_iterator it_end = sel.end();
76 
77  bool first = true;
78  for ( ; it!=it_end;++it)
79  {
80  if ( first ) {
81  first = false;
82  } else {
83  lhs << endl;
84  }
85  lhs << " " << *it;
86  }
87  return lhs;
88 }
89 
90 //**********************************************************************
operator<<
ostream & operator<<(ostream &lhs, const RpcDigitContainer &rhs)
Definition: RpcDigitContainer.cxx:70
RpcDigitContainer
Use IdentifiableContainer with RpcDigitCollection.
Definition: RpcDigitContainer.h:53
RpcDigitContainer.h
RpcDigitCollection
Definition: RpcDigitCollection.h:17
skel.it
it
Definition: skel.GENtoEVGEN.py:396
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
SelectAllObjectMT
Definition: SelectAllObjectMT.h:11
RpcDigitContainer::RpcDigitContainer
RpcDigitContainer(unsigned int hash_max)
Definition: RpcDigitContainer.cxx:26
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
DeMoScan.first
bool first
Definition: DeMoScan.py:536
RpcDigitContainer::size_type
RpcDigitCollection::size_type size_type
Definition: RpcDigitContainer.h:58
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
SelectAllObject.h
RpcDigitContainer::~RpcDigitContainer
~RpcDigitContainer()
RpcDigitContainer::digit_size
size_type digit_size() const
Definition: RpcDigitContainer.cxx:52
RpcDigitContainer::classID
static const CLID & classID()
Definition: RpcDigitContainer.cxx:40