ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
19
20class 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
62
63CLASS_DEF( LumiBlockCollection , 210948284 , 1 )
64
65#endif //> LUMIBLOCKCOLLECTION_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
Validity Range object.
Definition IOVRange.h:30
bool operator()(const IOVRange &t1, const IOVRange &t2) const
LumiBlockCollection()
Public methods:
LumiBlockCollection & operator=(const LumiBlockCollection &rhs)
OwnershipPolicy
-event-from-file