ATLAS Offline Software
MmDigitContainer.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 
26 
27 MmDigitContainer::MmDigitContainer(unsigned int hash_max)
29 {
30 
31 }
32 
33 //**********************************************************************
34 
35 // Destructor.
36 
38 
39 //**********************************************************************
40 
41 // return the class ID
42 
44 {
46  // static const CLID CLID_MmDigitContainer= 4191;
47  // return CLID_MmDigitContainer ;
48 }
49 
50 //**********************************************************************
51 
52 // Return the total number of digits in the container.
53 
58 
59  for (; it != iend; ++it ) {
60  count += (*it)->size();
61  }
62  return count;
63 }
64 
65 
66 //**********************************************************************
67 // Free functions.
68 //**********************************************************************
69 
70 // Output stream.
71 
72 ostream& operator<<(ostream& lhs, const MmDigitContainer& rhs) {
73  lhs << "MmDigitContainer has " << rhs.digit_size() << " digits:" << endl;
74  typedef SelectAllObject<MmDigitContainer> SELECTOR;
75  SELECTOR sel(&rhs);
76  SELECTOR::const_iterator it = sel.begin();
77  SELECTOR::const_iterator it_end = sel.end();
78 
79  bool first = true;
80  for ( ; it!=it_end;++it)
81  {
82  if ( first ) {
83  first = false;
84  } else {
85  lhs << endl;
86  }
87  lhs << " " << *it;
88  }
89  return lhs;
90 }
91 
92 //**********************************************************************
MmDigitContainer
Use IdentifiableContainer with MmDigitCollection.
Definition: MmDigitContainer.h:50
MmDigitCollection
Definition: MmDigitCollection.h:18
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
MmDigitContainer::MmDigitContainer
MmDigitContainer(unsigned int hash_max)
Definition: MmDigitContainer.cxx:27
MmDigitContainer.h
sel
sel
Definition: SUSYToolsTester.cxx:97
IdentifiableContainerMT::end
const_iterator end() const
return const_iterator for end of container
Definition: IdentifiableContainerMT.h:242
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:82
IdentifiableContainerMT::begin
const_iterator begin() const
return const_iterator for first entry
Definition: IdentifiableContainerMT.h:236
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
MmDigitContainer::classID
static const CLID & classID()
Definition: MmDigitContainer.cxx:43
MmDigitContainer::size_type
MmDigitCollection::size_type size_type
Definition: MmDigitContainer.h:56
operator<<
ostream & operator<<(ostream &lhs, const MmDigitContainer &rhs)
Definition: MmDigitContainer.cxx:72
MmDigitContainer::~MmDigitContainer
~MmDigitContainer()
DeMoScan.first
bool first
Definition: DeMoScan.py:536
MmDigitContainer::digit_size
size_type digit_size() const
Definition: MmDigitContainer.cxx:54
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
SelectAllObject.h