Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JDETECTOR::JCLBDefaultSimulatorInterface::compare Struct Reference

Auxiliary data structure for sorting of hits. More...

#include <JCLBDefaultSimulatorInterface.hh>

Public Member Functions

bool operator() (const JDAQHit &first, const JDAQHit &second) const
 Compare hits by time.
 
bool operator() (const JDAQHit &hit, const JTDC_t tdc) const
 Compare hit and TDC value.
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 327 of file JCLBDefaultSimulatorInterface.hh.

Member Function Documentation

◆ operator()() [1/2]

bool JDETECTOR::JCLBDefaultSimulatorInterface::compare::operator() ( const JDAQHit & first,
const JDAQHit & second ) const
inline

Compare hits by time.

Parameters
firstfirst hit
secondsecond hit
Returns
true if first earlier than second; else false

Definition at line 335 of file JCLBDefaultSimulatorInterface.hh.

336 {
337 return first.getT() < second.getT();
338 }
JTDC_t getT() const
Get time.
Definition JDAQHit.hh:86

◆ operator()() [2/2]

bool JDETECTOR::JCLBDefaultSimulatorInterface::compare::operator() ( const JDAQHit & hit,
const JTDC_t tdc ) const
inline

Compare hit and TDC value.

Parameters
hithit
tdcTDC
Returns
true if hit earlier than given TDC value; else false

Definition at line 348 of file JCLBDefaultSimulatorInterface.hh.

349 {
350 return hit.getT() < tdc;
351 }

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