Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
bool less (const JRun_t &object) const
 Less-than method.
 
bool less (const JRuns &object) const
 Less-than method.
 
bool more (const JRuns &object) const
 More-than method.
 
bool less (const JRunQuality &object) const
 Less-than method.
 
bool more (const JRunQuality &object) const
 More-than method.
 

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

◆ JRun_t()

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

Constructor.

Parameters
detectordetector
runrun

Definition at line 50 of file JDBSupportkit.hh.

Member Function Documentation

◆ less() [1/3]

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 }

◆ less() [2/3]

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 }

◆ more() [1/2]

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 }

◆ less() [3/3]

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 }

◆ more() [2/2]

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

◆ detector

int JDATABASE::JRun_t::detector

Definition at line 127 of file JDBSupportkit.hh.

◆ run

int JDATABASE::JRun_t::run

Definition at line 128 of file JDBSupportkit.hh.


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