ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LumiBlock
LumiBlockData
LumiBlockData
LumiBlockCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// Header file for class LumiBlockCollection
7
// Author: Marjorie Shapiro <mdshapiro@lbl.gov>
9
#ifndef LUMIBLOCKCOLLECTION_H
10
#define LUMIBLOCKCOLLECTION_H
11
12
// STL includes
13
#include <iostream>
14
15
#include "
AthContainers/DataVector.h
"
16
#include "
AthenaKernel/CLASS_DEF.h
"
17
18
#include "
LumiBlockData/LB_IOVRange.h
"
19
20
class
LumiBlockCollection
:
public
DataVector
<LB_IOVRange>
21
{
22
public
:
23
// Default Constructor
24
LumiBlockCollection
();
25
26
// Copy constructor:
27
LumiBlockCollection
(
const
LumiBlockCollection
& rhs );
28
29
// Assignment operator:
30
LumiBlockCollection
&
operator=
(
const
LumiBlockCollection
& rhs );
31
32
//Constructor with parameters: to setup the ownership policy
33
LumiBlockCollection
(
const
SG::OwnershipPolicy
own );
34
35
// Destructor
36
~LumiBlockCollection
();
37
38
// const methods:
39
std::ostream&
dump
( std::ostream& out = std::cout )
const
;
40
41
// This is just a useful class for sorting inside the collection
42
class
SortIOVRangeByStart
{
43
public
:
44
bool
operator()
(
const
IOVRange
& t1,
const
IOVRange
& t2 )
const
{
45
return
(t1.start()).re_time() < (t2.start()).re_time();
46
}
47
bool
operator()
(
const
IOVRange
* t1,
const
IOVRange
* t2 )
const
{
48
return
(t1->start()).re_time() < (t2->start()).re_time();
49
}
50
bool
operator()
(
IOVRange
& t1,
IOVRange
& t2 )
const
{
51
return
(t1.start()).re_time() < (t2.start()).re_time();
52
}
53
bool
operator()
(
IOVRange
* t1,
IOVRange
* t2 )
const
{
54
return
(t1->start()).re_time() < (t2->start()).re_time();
55
}
56
};
57
};
58
59
inline
60
LumiBlockCollection::~LumiBlockCollection
()
61
{}
62
63
CLASS_DEF
(
LumiBlockCollection
, 210948284 , 1 )
64
65
#endif
//> LUMIBLOCKCOLLECTION_H
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LB_IOVRange.h
DataVector< LB_IOVRange >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
IOVRange
Validity Range object.
Definition
IOVRange.h:30
LumiBlockCollection::SortIOVRangeByStart
Definition
LumiBlockCollection.h:42
LumiBlockCollection::SortIOVRangeByStart::operator()
bool operator()(const IOVRange &t1, const IOVRange &t2) const
Definition
LumiBlockCollection.h:44
LumiBlockCollection
Definition
LumiBlockCollection.h:21
LumiBlockCollection::LumiBlockCollection
LumiBlockCollection()
Public methods:
Definition
LumiBlockCollection.cxx:24
LumiBlockCollection::operator=
LumiBlockCollection & operator=(const LumiBlockCollection &rhs)
Definition
LumiBlockCollection.cxx:29
LumiBlockCollection::~LumiBlockCollection
~LumiBlockCollection()
Definition
LumiBlockCollection.h:60
SG::OwnershipPolicy
OwnershipPolicy
Definition
OwnershipPolicy.h:16
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0