ATLAS Offline Software
TLumiBlockRange.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 : TLumiBlockRange *
8  * *
9  * Authors (alphabetical): *
10  * Max Baak <mbaak@cern.ch> - CERN, Switzerland *
11  **********************************************************************************/
12 
13 #ifndef __TLumiBlockRange__
14 #define __TLumiBlockRange__
15 
16 #include "TObject.h"
17 #include <vector>
18 
19 namespace Root {
20 
21  class TLumiBlockRange : public TObject {
22 
23  public:
24 
25  TLumiBlockRange();
26  TLumiBlockRange( const Int_t& start, const Int_t& end = 2147483647 );
27  virtual ~TLumiBlockRange();
28 
31 
33  const std::vector<Root::TLumiBlockRange> GetPartOnlyIn(const TLumiBlockRange& other) const ;
34  const std::vector<Root::TLumiBlockRange> GetPartNotIn(const TLumiBlockRange& other) const ;
35 
36  Bool_t Contains( const Int_t& number ) const;
37 
38  inline Int_t Begin() const { return m_begin; }
39  inline Int_t End() const { return m_end; }
40  inline Bool_t IsEmpty() const { return (Begin()>End()); }
41 
42  inline void SetBegin(const Int_t& begin) { m_begin=begin; }
43  inline void SetEnd(const Int_t& end) { m_end=end; }
44 
45  void Summary() const ;
46 
47  private:
48 
49  Int_t m_begin;
50  Int_t m_end;
51 
52  ClassDef(TLumiBlockRange,1)
53  };
54 }
55 
56 #endif
57 
Root
Definition: GoodRunsListSelectorTool.h:30
Root::TLumiBlockRange::m_end
Int_t m_end
Definition: TLumiBlockRange.h:60
Root::TLumiBlockRange::~TLumiBlockRange
virtual ~TLumiBlockRange()
Definition: TLumiBlockRange.cxx:28
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
Root::TLumiBlockRange::operator=
TLumiBlockRange & operator=(const TLumiBlockRange &other)
Definition: TLumiBlockRange.cxx:42
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
Root::TLumiBlockRange::IsEmpty
Bool_t IsEmpty() const
Definition: TLumiBlockRange.h:50
Root::TLumiBlockRange::End
Int_t End() const
Definition: TLumiBlockRange.h:49
Root::TLumiBlockRange::m_begin
Int_t m_begin
Definition: TLumiBlockRange.h:59
Root::TLumiBlockRange::SetEnd
void SetEnd(const Int_t &end)
Definition: TLumiBlockRange.h:53
python.selection.number
number
Definition: selection.py:20
Root::TLumiBlockRange::GetPartOnlyIn
const std::vector< Root::TLumiBlockRange > GetPartOnlyIn(const TLumiBlockRange &other) const
Definition: TLumiBlockRange.cxx:64
Root::TLumiBlockRange::Contains
Bool_t Contains(const Int_t &number) const
Definition: TLumiBlockRange.cxx:94
Root::TLumiBlockRange::SetBegin
void SetBegin(const Int_t &begin)
Definition: TLumiBlockRange.h:52
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Root::TLumiBlockRange
Definition: TLumiBlockRange.h:26
Root::TLumiBlockRange::TLumiBlockRange
TLumiBlockRange()
Root::TLumiBlockRange::GetPartNotIn
const std::vector< Root::TLumiBlockRange > GetPartNotIn(const TLumiBlockRange &other) const
Definition: TLumiBlockRange.cxx:71
Root::TLumiBlockRange::GetOverlapWith
const Root::TLumiBlockRange GetOverlapWith(const TLumiBlockRange &other) const
Definition: TLumiBlockRange.cxx:55
Root::TLumiBlockRange::Begin
Int_t Begin() const
Definition: TLumiBlockRange.h:48
Root::TLumiBlockRange::Summary
void Summary() const
Definition: TLumiBlockRange.cxx:102