Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JRECONSTRUCTION::JShowerPrefit::match_t Struct Reference

Auxiliary class to match hit to root hit. More...

#include <JShowerPrefit.hh>

Public Member Functions

 match_t (const hit_type &root, const double TMax_ns)
 Constructor.
 
bool operator() (const hit_type &hit) const
 Test match.
 

Public Attributes

const hit_typeroot
 
double TMax_ns
 

Detailed Description

Auxiliary class to match hit to root hit.

Definition at line 332 of file JShowerPrefit.hh.

Constructor & Destructor Documentation

◆ match_t()

JRECONSTRUCTION::JShowerPrefit::match_t::match_t ( const hit_type & root,
const double TMax_ns )
inline

Constructor.

Parameters
rootroot hit
TMax_nsmaximal time [ns]

Definition at line 339 of file JShowerPrefit.hh.

Member Function Documentation

◆ operator()()

bool JRECONSTRUCTION::JShowerPrefit::match_t::operator() ( const hit_type & hit) const
inline

Test match.

Parameters
hithit
Returns
true if mach; else false

Definition at line 350 of file JShowerPrefit.hh.

351 {
352 return root.getModuleID() == hit.getModuleID() && fabs(root.getT() - hit.getT()) <= TMax_ns;
353 }

Member Data Documentation

◆ root

const hit_type& JRECONSTRUCTION::JShowerPrefit::match_t::root

Definition at line 355 of file JShowerPrefit.hh.

◆ TMax_ns

double JRECONSTRUCTION::JShowerPrefit::match_t::TMax_ns

Definition at line 356 of file JShowerPrefit.hh.


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