Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDETECTOR::JMonteCarloDetector::LCM_reverse_logic Class Reference

Auxiliary class for LCM logic parameters. More...

Inheritance diagram for JDETECTOR::JMonteCarloDetector::LCM_reverse_logic:
JLANG::JObjectID< T > JLANG::JComparable< JObjectID< T > > JLANG::JComparable< JObjectID< T >, int >

Public Member Functions

 LCM_reverse_logic ()
 Default constructor.
 
 LCM_reverse_logic (const int __id, const int __lcm_id, const int __pmt_id)
 Constructor.
 
int getID () const
 Get identifier.
 
int & getID ()
 Get identifier.
 
void setID (const int id)
 Set identifier.
 
bool less (const JObjectID &object) const
 Less than method.
 
bool less (const int id) const
 Less than method.
 
bool more (const int id) const
 More than method.
 

Public Attributes

int lcm_id
 LCM identifier.
 
int pmt_id
 PMT identifier.
 

Protected Attributes

int _id_
 

Detailed Description

Auxiliary class for LCM logic parameters.

Definition at line 217 of file JMonteCarloDetector.hh.

Constructor & Destructor Documentation

◆ LCM_reverse_logic() [1/2]

JDETECTOR::JMonteCarloDetector::LCM_reverse_logic::LCM_reverse_logic ( )
inline

Default constructor.

Definition at line 224 of file JMonteCarloDetector.hh.

224 :
225 JObjectID<LCM_reverse_logic>(),
226 lcm_id(-1),
227 pmt_id(-1)
228 {}

◆ LCM_reverse_logic() [2/2]

JDETECTOR::JMonteCarloDetector::LCM_reverse_logic::LCM_reverse_logic ( const int __id,
const int __lcm_id,
const int __pmt_id )
inline

Constructor.

Parameters
__ididentifier
__lcm_idLCM identifier
__pmt_idPMT identifier

Definition at line 238 of file JMonteCarloDetector.hh.

240 :
241 JObjectID(__id),
242 lcm_id (__lcm_id),
243 pmt_id (__pmt_id)
244 {}
JObjectID()
Default constructor.
Definition JObjectID.hh:43

Member Function Documentation

◆ getID() [1/2]

template<class T >
int JLANG::JObjectID< T >::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 63 of file JObjectID.hh.

64 {
65 return _id_;
66 }

◆ getID() [2/2]

template<class T >
int & JLANG::JObjectID< T >::getID ( )
inlineinherited

Get identifier.

Returns
identifier

Definition at line 74 of file JObjectID.hh.

75 {
76 return _id_;
77 }

◆ setID()

template<class T >
void JLANG::JObjectID< T >::setID ( const int id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 85 of file JObjectID.hh.

86 {
87 this->_id_ = id;
88 }

◆ less() [1/2]

template<class T >
bool JLANG::JObjectID< T >::less ( const JObjectID< T > & object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 97 of file JObjectID.hh.

98 {
99 return this->getID() < object.getID();
100 }
int getID() const
Get identifier.
Definition JObjectID.hh:63

◆ less() [2/2]

template<class T >
bool JLANG::JObjectID< T >::less ( const int id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 109 of file JObjectID.hh.

110 {
111 return this->getID() < id;
112 }

◆ more()

template<class T >
bool JLANG::JObjectID< T >::more ( const int id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 121 of file JObjectID.hh.

122 {
123 return this->getID() > id;
124 }

Member Data Documentation

◆ lcm_id

int JDETECTOR::JMonteCarloDetector::LCM_reverse_logic::lcm_id

LCM identifier.

Definition at line 247 of file JMonteCarloDetector.hh.

◆ pmt_id

int JDETECTOR::JMonteCarloDetector::LCM_reverse_logic::pmt_id

PMT identifier.

Definition at line 248 of file JMonteCarloDetector.hh.

◆ _id_

template<class T >
int JLANG::JObjectID< T >::_id_
protectedinherited

Definition at line 153 of file JObjectID.hh.


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