Jpp  17.3.1
the software that should make you happy
 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 38 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 49 of file JDBSupportkit.hh.

50  :
52  run (run)
53  {}

Member Function Documentation

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

Less-than method.

Parameters
objectrun

Definition at line 61 of file JDBSupportkit.hh.

62  {
63  if (this->detector == object.detector)
64  return this->run < object.run;
65  else
66  return this->detector < object.detector;
67  }
bool JDATABASE::JRun_t::less ( const JRuns object) const
inline

Less-than method.

Parameters
objectrun

Definition at line 75 of file JDBSupportkit.hh.

76  {
77  if (this->detector == object.DETID)
78  return this->run < object.RUN;
79  else
80  return this->detector < object.DETID;
81  }
then set_variable DETID
Definition: JEditTuneHV.sh:63
bool JDATABASE::JRun_t::more ( const JRuns object) const
inline

More-than method.

Parameters
objectrun

Definition at line 89 of file JDBSupportkit.hh.

90  {
91  if (this->detector == object.DETID)
92  return this->run > object.RUN;
93  else
94  return this->detector > object.DETID;
95  }
then set_variable DETID
Definition: JEditTuneHV.sh:63
bool JDATABASE::JRun_t::less ( const JRunQuality object) const
inline

Less-than method.

Parameters
objectrun

Definition at line 103 of file JDBSupportkit.hh.

104  {
105  if (this->detector == object.detector)
106  return this->run < object.run;
107  else
108  return this->detector < object.detector;
109  }
bool JDATABASE::JRun_t::more ( const JRunQuality object) const
inline

More-than method.

Parameters
objectrun

Definition at line 117 of file JDBSupportkit.hh.

118  {
119  if (this->detector == object.detector)
120  return this->run > object.run;
121  else
122  return this->detector > object.detector;
123  }

Member Data Documentation

int JDATABASE::JRun_t::detector

Definition at line 126 of file JDBSupportkit.hh.

int JDATABASE::JRun_t::run

Definition at line 127 of file JDBSupportkit.hh.


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