Jpp  17.0.0-rc.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 39 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 50 of file JDBSupportkit.hh.

51  :
53  run (run)
54  {}

Member Function Documentation

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

Less-than method.

Parameters
objectrun

Definition at line 62 of file JDBSupportkit.hh.

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

Less-than method.

Parameters
objectrun

Definition at line 76 of file JDBSupportkit.hh.

77  {
78  if (this->detector == object.DETID)
79  return this->run < object.RUN;
80  else
81  return this->detector < object.DETID;
82  }
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 90 of file JDBSupportkit.hh.

91  {
92  if (this->detector == object.DETID)
93  return this->run > object.RUN;
94  else
95  return this->detector > object.DETID;
96  }
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 104 of file JDBSupportkit.hh.

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

More-than method.

Parameters
objectrun

Definition at line 118 of file JDBSupportkit.hh.

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

Member Data Documentation

int JDATABASE::JRun_t::detector

Definition at line 127 of file JDBSupportkit.hh.

int JDATABASE::JRun_t::run

Definition at line 128 of file JDBSupportkit.hh.


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