Jpp  18.2.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 | List of all members
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. More...
 
bool operator() (const JDAQHit &hit, const JTDC_t tdc) const
 Compare hit and TDC value. More...
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 327 of file JCLBDefaultSimulatorInterface.hh.

Member Function Documentation

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
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  }
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86

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