ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
grl_run Class Reference

#include <grl_run.h>

Inheritance diagram for grl_run:
Collaboration diagram for grl_run:

Public Member Functions

 grl_run (int run)
 
 grl_run (int run, int first, int last)
 
virtual ~grl_run ()
 
void add_range (int first, int last)
 
int run () const
 
int first () const
 
int last () const
 
int lbsize () const
 

Static Public Member Functions

static bool comparison (const grl_run *r1, const grl_run *r2)
 

Public Attributes

elements
 STL member. More...
 

Private Attributes

int m_run
 
int m_size
 
int m_first
 
int m_last
 

Detailed Description

Definition at line 26 of file grl_run.h.

Constructor & Destructor Documentation

◆ grl_run() [1/2]

grl_run::grl_run ( int  run)
inline

Definition at line 30 of file grl_run.h.

30 : m_run(run), m_size(0), m_first(0), m_last(0) { }

◆ grl_run() [2/2]

grl_run::grl_run ( int  run,
int  first,
int  last 
)
inline

Definition at line 32 of file grl_run.h.

32  : m_run(run), m_size(0), m_first(0), m_last(0) {
33  this->push_back( std::pair<int,int>( first, last ) );
34  m_size += last-first+1;
35  m_first = first;
36  m_last = last;
37  }

◆ ~grl_run()

virtual grl_run::~grl_run ( )
inlinevirtual

Definition at line 39 of file grl_run.h.

39 { }

Member Function Documentation

◆ add_range()

void grl_run::add_range ( int  first,
int  last 
)
inline

Definition at line 41 of file grl_run.h.

41  {
42  this->push_back( std::pair<int,int>( first, last ) );
43  m_size += last-first+1;
44  if ( last>m_last ) m_last = last;
45  if ( m_first==0 || first<m_first ) m_first = first;
46 
47  }

◆ comparison()

static bool grl_run::comparison ( const grl_run r1,
const grl_run r2 
)
inlinestatic

Definition at line 55 of file grl_run.h.

55  {
56  return r1->lbsize()>r2->lbsize();
57  }

◆ first()

int grl_run::first ( ) const
inline

Definition at line 50 of file grl_run.h.

50 { return m_first; }

◆ last()

int grl_run::last ( ) const
inline

Definition at line 51 of file grl_run.h.

51 { return m_last; }

◆ lbsize()

int grl_run::lbsize ( ) const
inline

Definition at line 53 of file grl_run.h.

53 { return m_size; }

◆ run()

int grl_run::run ( ) const
inline

Definition at line 49 of file grl_run.h.

49 { return m_run; }

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_first

int grl_run::m_first
private

Definition at line 66 of file grl_run.h.

◆ m_last

int grl_run::m_last
private

Definition at line 67 of file grl_run.h.

◆ m_run

int grl_run::m_run
private

Definition at line 62 of file grl_run.h.

◆ m_size

int grl_run::m_size
private

Definition at line 64 of file grl_run.h.


The documentation for this class was generated from the following file:
grl_run::last
int last() const
Definition: grl_run.h:51
MCP::ScaleSmearParam::r2
@ r2
run
Definition: run.py:1
grl_run::m_first
int m_first
Definition: grl_run.h:66
grl_run::m_last
int m_last
Definition: grl_run.h:67
grl_run::m_run
int m_run
Definition: grl_run.h:62
MCP::ScaleSmearParam::r1
@ r1
grl_run::m_size
int m_size
Definition: grl_run.h:64
grl_run::first
int first() const
Definition: grl_run.h:50