ATLAS Offline Software
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 
16 #include "AthenaKernel/CLASS_DEF.h"
17 
19 
20 class LumiBlockCollection: public DataVector<LB_IOVRange>
21 {
22  public:
23  // Default Constructor
25 
26  // Copy constructor:
28 
29  // Assignment operator:
31 
32  //Constructor with parameters: to setup the ownership policy
34 
35  // Destructor
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
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
61  {}
62 
63 CLASS_DEF( LumiBlockCollection , 210948284 , 1 )
64 
65 #endif //> LUMIBLOCKCOLLECTION_H
IOVRange
Validity Range object. Holds two IOVTimes (start and stop)
Definition: IOVRange.h:30
LumiBlockCollection::operator=
LumiBlockCollection & operator=(const LumiBlockCollection &rhs)
Definition: LumiBlockCollection.cxx:29
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
LumiBlockCollection::SortIOVRangeByStart
Definition: LumiBlockCollection.h:42
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
LumiBlockCollection::~LumiBlockCollection
~LumiBlockCollection()
Definition: LumiBlockCollection.h:60
LumiBlockCollection::dump
std::ostream & dump(std::ostream &out=std::cout) const
Const methods:
Definition: LumiBlockCollection.cxx:48
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
LB_IOVRange.h
LumiBlockCollection::LumiBlockCollection
LumiBlockCollection()
Public methods:
Definition: LumiBlockCollection.cxx:24
LumiBlockCollection
Definition: LumiBlockCollection.h:21
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LumiBlockCollection::SortIOVRangeByStart::operator()
bool operator()(const IOVRange &t1, const IOVRange &t2) const
Definition: LumiBlockCollection.h:44
ALFA_EventTPCnv_Dict::t2
std::vector< ALFA_RawDataContainer_p1 > t2
Definition: ALFA_EventTPCnvDict.h:44
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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:64
CLASS_DEF.h
macros to associate a CLID to a type