Jpp test-rotations-old-533-g2bdbdb559
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 331 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 339 of file JCLBDefaultSimulatorInterface.hh.

340 {
341 return first.getT() < second.getT();
342 }
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 352 of file JCLBDefaultSimulatorInterface.hh.

353 {
354 return hit.getT() < tdc;
355 }

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