Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TGRLCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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 __TGRLCollection__
14 #define __TGRLCollection__
15 
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 
33 
34  void SetVersion( const TString& version );
35  void SetMetaData( const std::map<TString,TString>& metadata );
36  inline void SetCheckGRLInfo( Bool_t check=kTRUE ) { m_checkGRLInfo=check; }
37 
38  Bool_t HasRun( const Int_t& runnr ) const;
39  Bool_t HasRunLumiBlock( const Int_t& runnr, const Int_t& lumiblocknr ) const ;
40  Bool_t IsEmpty() const;
41  Bool_t HasGoodRunsList( const TString& name ) const;
42 
43  const TGoodRunsList GetMergedGoodRunsList( const Root::BoolOperation& operation = OR ) const ;
44  const TGoodRunsList GetGoodRunsList( unsigned int idx ) const ;
46  std::vector<TGoodRunsList>::const_iterator find( const TString& name ) const ;
47  const Root::TGRLCollection GetMergedGRLCollection( const Root::BoolOperation& operation = OR) const ;
49 
50  void Reset() ;
51  void Summary(Bool_t verbose=kFALSE) const ;
52 
53  private:
54 
55  Bool_t m_checkGRLInfo;
56 
57  ClassDef(TGRLCollection,1)
58  };
59 }
60 
61 #endif
62 
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
TGoodRunsList.h
Root::TGRLCollection::GetGoodRunsList
const TGoodRunsList GetGoodRunsList(unsigned int idx) const
Definition: TGRLCollection.cxx:172
Root::TGRLCollection::SetMetaData
void SetMetaData(const std::map< TString, TString > &metadata)
Definition: TGRLCollection.cxx:67
Root
Definition: GoodRunsListSelectorTool.h:30
Root::TGRLCollection::SetCheckGRLInfo
void SetCheckGRLInfo(Bool_t check=kTRUE)
Definition: TGRLCollection.h:41
Root::TGRLCollection::m_checkGRLInfo
Bool_t m_checkGRLInfo
Definition: TGRLCollection.h:60
Root::AND
@ AND
Definition: TGRLCollection.h:32
Root::TGRLCollection::TGRLCollection
TGRLCollection(Bool_t checkGRLInfo=kFALSE)
Root::TGRLCollection::~TGRLCollection
virtual ~TGRLCollection()
Definition: TGRLCollection.cxx:22
Root::TGRLCollection::GetOverlapWith
const Root::TGRLCollection GetOverlapWith(const TGoodRunsList &other) const
Definition: TGRLCollection.cxx:267
Root::TGRLCollection::HasRun
Bool_t HasRun(const Int_t &runnr) const
Definition: TGRLCollection.cxx:86
Root::TGRLCollection::find
std::vector< TGoodRunsList >::iterator find(const TString &name)
Definition: TGRLCollection.cxx:226
Root::TGRLCollection::SetVersion
void SetVersion(const TString &version)
Definition: TGRLCollection.cxx:58
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
Root::TGRLCollection::HasGoodRunsList
Bool_t HasGoodRunsList(const TString &name) const
Definition: TGRLCollection.cxx:260
Root::TGRLCollection::HasRunLumiBlock
Bool_t HasRunLumiBlock(const Int_t &runnr, const Int_t &lumiblocknr) const
Definition: TGRLCollection.cxx:100
beamspotman.runnr
runnr
Definition: beamspotman.py:724
Root::TGRLCollection::GetMergedGRLCollection
const Root::TGRLCollection GetMergedGRLCollection(const Root::BoolOperation &operation=OR) const
Definition: TGRLCollection.cxx:182
Root::TGRLCollection
Definition: TGRLCollection.h:29
Root::TGRLCollection::operator=
TGRLCollection & operator=(const TGRLCollection &other)
Definition: TGRLCollection.cxx:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Root::TGoodRunsList
Definition: TGoodRunsList.h:31
LArNewCalib_Delay_OFC_Cali.check
check
Definition: LArNewCalib_Delay_OFC_Cali.py:289
Root::TGRLCollection::Summary
void Summary(Bool_t verbose=kFALSE) const
Definition: TGRLCollection.cxx:75
Root::TGRLCollection::GetMergedGoodRunsList
const TGoodRunsList GetMergedGoodRunsList(const Root::BoolOperation &operation=OR) const
Definition: TGRLCollection.cxx:128
Root::TGRLCollection::IsEmpty
Bool_t IsEmpty() const
Definition: TGRLCollection.cxx:114
get_generator_info.version
version
Definition: get_generator_info.py:33
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
python.TriggerHandler.verbose
verbose
Definition: TriggerHandler.py:297
Root::TGRLCollection::Reset
void Reset()
Definition: TGRLCollection.cxx:50
Root::OR
@ OR
Definition: TGRLCollection.h:32
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
Root::BoolOperation
BoolOperation
Definition: TGRLCollection.h:27