ATLAS Offline Software
MuonSpectrometer
MuonCalib
CscCalib
CscCalibEvent
src
CscCalibDataContainer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
CscCalibEvent/CscCalibDataContainer.h
"
6
#include "
EventContainers/SelectAllObject.h
"
7
#include <iostream>
8
9
CscCalibDataContainer::CscCalibDataContainer
(
int
maxhash)
10
:
IdentifiableContainer
<
CscCalibDataCollection
>(maxhash) {
11
}
12
14
const
CLID
&
CscCalibDataContainer::classID
() {
15
return
ClassID_traits<CscCalibDataContainer>::ID
();
16
}
17
18
20
CscCalibDataContainer::size_type
CscCalibDataContainer::calibData_size
()
const
{
21
CscCalibDataContainer::size_type
count
= 0;
22
CscCalibDataContainer::const_iterator
it
=
begin
();
23
CscCalibDataContainer::const_iterator
iend =
end
();
24
for
(;
it
!= iend; ++
it
) {
25
count
+= (*it)->size();
26
}
27
return
count
;
28
}
29
30
32
std::ostream&
operator<<
(std::ostream& lhs,
const
CscCalibDataContainer
& rhs) {
33
lhs <<
"CscDataCollectionContainer has "
<< rhs.
calibData_size
() <<
" CalibData:"
<< std::endl;
34
typedef
SelectAllObject<CscCalibDataContainer>
SELECTOR;
35
SELECTOR
sel
(&rhs);
36
SELECTOR::const_iterator
it
=
sel
.begin();
37
SELECTOR::const_iterator it_end =
sel
.end();
38
bool
first
=
true
;
39
for
( ;
it
!=it_end;++
it
) {
40
if
(
first
) {
41
first
=
false
;
42
}
else
{
43
lhs << std::endl;
44
}
45
lhs <<
" "
<< *
it
;
46
}
47
return
lhs;
48
}
49
operator<<
std::ostream & operator<<(std::ostream &lhs, const CscCalibDataContainer &rhs)
Output stream - for printing.
Definition:
CscCalibDataContainer.cxx:32
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
XMLtoHeader.count
count
Definition:
XMLtoHeader.py:85
CscCalibDataContainer
Definition:
CscCalibDataContainer.h:23
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition:
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
SelectAllObjectMT
Definition:
SelectAllObjectMT.h:11
CscCalibDataContainer.h
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
CscCalibDataContainer::calibData_size
size_type calibData_size() const
content size
Definition:
CscCalibDataContainer.cxx:20
CscCalibDataContainer::CscCalibDataContainer
CscCalibDataContainer(int maxHash)
constructor
Definition:
CscCalibDataContainer.cxx:9
CscCalibDataCollection
Definition:
CscCalibDataCollection.h:22
DeMoScan.first
bool first
Definition:
DeMoScan.py:536
CscCalibDataContainer::classID
static const CLID & classID()
IdentifiableContainer is still a DataObject Put CLID here.
Definition:
CscCalibDataContainer.cxx:14
IdentifiableContainerMT
Definition:
IdentifiableContainerMT.h:30
SelectAllObject.h
CscCalibDataContainer::size_type
CscCalibDataCollection::size_type size_type
type definitions
Definition:
CscCalibDataContainer.h:38
Generated on Mon Dec 23 2024 21:08:50 for ATLAS Offline Software by
1.8.18