ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace Root {
20
21 class TLumiBlockRange : public TObject {
22
23 public:
24
26 TLumiBlockRange( const Int_t& start, const Int_t& end = 2147483647 );
27 virtual ~TLumiBlockRange();
28
31
32 const Root::TLumiBlockRange GetOverlapWith(const TLumiBlockRange& other) const ;
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
void SetBegin(const Int_t &begin)
const std::vector< Root::TLumiBlockRange > GetPartNotIn(const TLumiBlockRange &other) const
const std::vector< Root::TLumiBlockRange > GetPartOnlyIn(const TLumiBlockRange &other) const
TLumiBlockRange & operator=(const TLumiBlockRange &other)
Bool_t Contains(const Int_t &number) const
const Root::TLumiBlockRange GetOverlapWith(const TLumiBlockRange &other) const
void SetEnd(const Int_t &end)
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186