ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
GoodRunsLists
GoodRunsLists
TGRLCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
/**********************************************************************************
7
* Class : TGRLCollection *
8
* *
9
* Authors (alphabetical): *
10
* Max Baak <mbaak@cern.ch> - CERN, Switzerland *
11
**********************************************************************************/
12
13
#ifndef GOODRUNSLISTS_TGRLCOLLECTION_H
14
#define GOODRUNSLISTS_TGRLCOLLECTION_H
15
16
#include "
GoodRunsLists/TGoodRunsList.h
"
17
#include "TObject.h"
18
#include <vector>
19
20
namespace
Root
{
21
22
enum
BoolOperation
{
OR
,
AND
};
23
24
class
TGRLCollection
:
public
std::vector< TGoodRunsList >,
public
TObject {
25
26
public
:
27
28
TGRLCollection
( Bool_t checkGRLInfo=kFALSE ) ;
29
virtual
~TGRLCollection
();
30
31
TGRLCollection
(
const
Root::TGRLCollection
& other) =
default
;
32
TGRLCollection
&
operator=
(
const
TGRLCollection
& other) =
default
;
33
TGRLCollection
(
Root::TGRLCollection
&&) =
default
;
34
TGRLCollection
&
operator=
(
TGRLCollection
&& other) =
default
;
35
36
void
SetVersion
(
const
TString& version );
37
void
SetMetaData
(
const
std::map<TString,TString>& metadata );
38
inline
void
SetCheckGRLInfo
( Bool_t check=kTRUE ) {
m_checkGRLInfo
=check; }
39
40
Bool_t
HasRun
(
const
Int_t& runnr )
const
;
41
Bool_t
HasRunLumiBlock
(
const
Int_t& runnr,
const
Int_t& lumiblocknr )
const
;
42
Bool_t
IsEmpty
()
const
;
43
Bool_t
HasGoodRunsList
(
const
TString& name )
const
;
44
45
const
TGoodRunsList
GetMergedGoodRunsList
(
const
Root::BoolOperation
& operation =
OR
)
const
;
46
const
TGoodRunsList
GetGoodRunsList
(
unsigned
int
idx )
const
;
47
std::vector<TGoodRunsList>::iterator
find
(
const
TString& name );
48
std::vector<TGoodRunsList>::const_iterator
find
(
const
TString& name )
const
;
49
const
Root::TGRLCollection
GetMergedGRLCollection
(
const
Root::BoolOperation
& operation =
OR
)
const
;
50
const
Root::TGRLCollection
GetOverlapWith
(
const
TGoodRunsList
& other)
const
;
51
52
void
Reset
() ;
53
void
Summary
(Bool_t
verbose
=kFALSE)
const
;
54
55
private
:
56
57
Bool_t
m_checkGRLInfo
;
58
59
ClassDef(
TGRLCollection
,1)
60
};
61
}
62
63
#endif
64
TGoodRunsList.h
Root::TGRLCollection
Definition
TGRLCollection.h:24
Root::TGRLCollection::TGRLCollection
TGRLCollection(Root::TGRLCollection &&)=default
Root::TGRLCollection::GetMergedGoodRunsList
const TGoodRunsList GetMergedGoodRunsList(const Root::BoolOperation &operation=OR) const
Definition
TGRLCollection.cxx:107
Root::TGRLCollection::TGRLCollection
TGRLCollection(const Root::TGRLCollection &other)=default
Root::TGRLCollection::GetGoodRunsList
const TGoodRunsList GetGoodRunsList(unsigned int idx) const
Definition
TGRLCollection.cxx:151
Root::TGRLCollection::Reset
void Reset()
Definition
TGRLCollection.cxx:29
Root::TGRLCollection::operator=
TGRLCollection & operator=(const TGRLCollection &other)=default
Root::TGRLCollection::m_checkGRLInfo
Bool_t m_checkGRLInfo
Definition
TGRLCollection.h:57
Root::TGRLCollection::SetVersion
void SetVersion(const TString &version)
Definition
TGRLCollection.cxx:37
Root::TGRLCollection::operator=
TGRLCollection & operator=(TGRLCollection &&other)=default
Root::TGRLCollection::SetMetaData
void SetMetaData(const std::map< TString, TString > &metadata)
Definition
TGRLCollection.cxx:46
Root::TGRLCollection::HasRun
Bool_t HasRun(const Int_t &runnr) const
Definition
TGRLCollection.cxx:65
Root::TGRLCollection::HasRunLumiBlock
Bool_t HasRunLumiBlock(const Int_t &runnr, const Int_t &lumiblocknr) const
Definition
TGRLCollection.cxx:79
Root::TGRLCollection::GetOverlapWith
const Root::TGRLCollection GetOverlapWith(const TGoodRunsList &other) const
Definition
TGRLCollection.cxx:246
Root::TGRLCollection::Summary
void Summary(Bool_t verbose=kFALSE) const
Definition
TGRLCollection.cxx:54
Root::TGRLCollection::GetMergedGRLCollection
const Root::TGRLCollection GetMergedGRLCollection(const Root::BoolOperation &operation=OR) const
Definition
TGRLCollection.cxx:161
Root::TGRLCollection::TGRLCollection
TGRLCollection(Bool_t checkGRLInfo=kFALSE)
Root::TGRLCollection::HasGoodRunsList
Bool_t HasGoodRunsList(const TString &name) const
Definition
TGRLCollection.cxx:239
Root::TGRLCollection::IsEmpty
Bool_t IsEmpty() const
Definition
TGRLCollection.cxx:93
Root::TGRLCollection::~TGRLCollection
virtual ~TGRLCollection()
Definition
TGRLCollection.cxx:22
Root::TGRLCollection::find
std::vector< TGoodRunsList >::iterator find(const TString &name)
Definition
TGRLCollection.cxx:205
Root::TGRLCollection::SetCheckGRLInfo
void SetCheckGRLInfo(Bool_t check=kTRUE)
Definition
TGRLCollection.h:38
Root::TGoodRunsList
Definition
TGoodRunsList.h:26
verbose
bool verbose
Definition
hcg.cxx:75
Root
Definition
IGoodRunsListSelectorTool.h:15
Root::BoolOperation
BoolOperation
Definition
TGRLCollection.h:22
Root::AND
@ AND
Definition
TGRLCollection.h:22
Root::OR
@ OR
Definition
TGRLCollection.h:22
Generated on
for ATLAS Offline Software by
1.17.0