Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JDATABASE::JRun_t Struct Reference

Auxiliary class for detector/run comparisons. More...

#include <JDBSupportkit.hh>

Inheritance diagram for JDATABASE::JRun_t:
JLANG::JComparable< JFirst_t, JSecond_t > JLANG::JComparable< JFirst_t, JSecond_t > JLANG::JComparable< JFirst_t, JSecond_t >

Public Member Functions

 JRun_t (const int detector, const int run)
 Constructor. More...
 
bool less (const JRun_t &object) const
 Less-than method. More...
 
bool less (const JRuns &object) const
 Less-than method. More...
 
bool more (const JRuns &object) const
 More-than method. More...
 
bool less (const JRunQuality &object) const
 Less-than method. More...
 
bool more (const JRunQuality &object) const
 More-than method. More...
 

Public Attributes

int detector
 
int run
 

Detailed Description

Auxiliary class for detector/run comparisons.

Definition at line 28 of file JDBSupportkit.hh.

Constructor & Destructor Documentation

JDATABASE::JRun_t::JRun_t ( const int  detector,
const int  run 
)
inline

Constructor.

Parameters
detectordetector
runrun

Definition at line 39 of file JDBSupportkit.hh.

40  :
42  run (run)
43  {}

Member Function Documentation

bool JDATABASE::JRun_t::less ( const JRun_t object) const
inline

Less-than method.

Parameters
objectrun

Definition at line 51 of file JDBSupportkit.hh.

52  {
53  if (this->detector == object.detector)
54  return this->run < object.run;
55  else
56  return this->detector < object.detector;
57  }
bool JDATABASE::JRun_t::less ( const JRuns object) const
inline

Less-than method.

Parameters
objectrun

Definition at line 65 of file JDBSupportkit.hh.

66  {
67  if (this->detector == object.DETID)
68  return this->run < object.RUN;
69  else
70  return this->detector < object.DETID;
71  }
bool JDATABASE::JRun_t::more ( const JRuns object) const
inline

More-than method.

Parameters
objectrun

Definition at line 79 of file JDBSupportkit.hh.

80  {
81  if (this->detector == object.DETID)
82  return this->run > object.RUN;
83  else
84  return this->detector > object.DETID;
85  }
bool JDATABASE::JRun_t::less ( const JRunQuality object) const
inline

Less-than method.

Parameters
objectrun

Definition at line 93 of file JDBSupportkit.hh.

94  {
95  if (this->detector == object.detector)
96  return this->run < object.run;
97  else
98  return this->detector < object.detector;
99  }
bool JDATABASE::JRun_t::more ( const JRunQuality object) const
inline

More-than method.

Parameters
objectrun

Definition at line 107 of file JDBSupportkit.hh.

108  {
109  if (this->detector == object.detector)
110  return this->run > object.run;
111  else
112  return this->detector > object.detector;
113  }

Member Data Documentation

int JDATABASE::JRun_t::detector

Definition at line 116 of file JDBSupportkit.hh.

int JDATABASE::JRun_t::run

Definition at line 117 of file JDBSupportkit.hh.


The documentation for this struct was generated from the following file: