ATLAS Offline Software
Loading...
Searching...
No Matches
LumiBlock
LumiBlockData
src
LumiBlockCollection.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// LumiBlockCollection.cxx
7
// Implementation file for class LumiBlockCollection
8
// Author: Marjorie Shapiro <mdshapiro@lbl.gov>
10
11
// STL includes
12
13
// LumiBlockCollection include
14
#include "
LumiBlockData/LumiBlockCollection.h
"
15
19
23
24
LumiBlockCollection::LumiBlockCollection
():
DataVector
<
LB_IOVRange
> (
SG
::OWN_ELEMENTS) {}
25
26
LumiBlockCollection::LumiBlockCollection
(
const
LumiBlockCollection
& rhs ) :
27
DataVector
<
LB_IOVRange
> (rhs) {}
28
29
LumiBlockCollection
&
LumiBlockCollection::operator=
(
const
LumiBlockCollection
& rhs )
30
{
31
if
(
this
!= &rhs ) {
32
DataVector<LB_IOVRange>::operator=
(rhs);
33
}
34
return
*
this
;
35
}
36
37
LumiBlockCollection::LumiBlockCollection
(
const
SG::OwnershipPolicy
own ) :
38
DataVector
<
LB_IOVRange
>(own)
39
{}
40
42
// Destructor
44
48
std::ostream&
LumiBlockCollection::dump
( std::ostream& out )
const
49
{
50
out <<
" Dump of LumiBlockCollection with size: "
<< this->
size
()
51
<<
" has the following (run,lumiblock) ranges: "
52
<< std::endl;
53
LumiBlockCollection::const_iterator
it;
54
for
(it=
begin
(); it!=
end
(); ++it) {
55
out <<
"\t [ ("
56
<< (*it)->start().run() <<
","
<< (*it)->start().event()
57
<<
"):("
58
<< (*it)->stop().run() <<
","
<< (*it)->stop().event()
59
<<
") eventsSeen = "
<< (*it)->getNumSeen()
60
<<
", eventsExpected = "
<< (*it)->getNumExpected()
61
<<
" ]"
62
<< std::endl;
63
}
64
return
out;
65
}
66
LumiBlockCollection.h
DataVector< LB_IOVRange >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Definition
DataVector.h:838
DataVector< LB_IOVRange >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector< LB_IOVRange >::end
const_iterator end() const noexcept
DataVector< LB_IOVRange >::begin
const_iterator begin() const noexcept
DataVector< LB_IOVRange >::size
size_type size() const noexcept
DataVector::operator=
DataVector & operator=(const DataVector &rhs)
Assignment operator.
LB_IOVRange
Definition
LB_IOVRange.h:16
LumiBlockCollection::dump
std::ostream & dump(std::ostream &out=std::cout) const
Const methods:
Definition
LumiBlockCollection.cxx:48
LumiBlockCollection::LumiBlockCollection
LumiBlockCollection()
Public methods:
Definition
LumiBlockCollection.cxx:24
LumiBlockCollection::operator=
LumiBlockCollection & operator=(const LumiBlockCollection &rhs)
Definition
LumiBlockCollection.cxx:29
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
SG::OwnershipPolicy
OwnershipPolicy
Definition
OwnershipPolicy.h:16
Generated on
for ATLAS Offline Software by
1.14.0