Jpp  master_rocky
the software that should make you happy
Public Member Functions | Public Attributes | List of all members
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. More...
 
bool operator() (const hit_type &hit) const
 Test match. More...
 

Public Attributes

const hit_typeroot
 
double TMax_ns
 

Detailed Description

Auxiliary class to match hit to root hit.

Definition at line 249 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 256 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 267 of file JShowerPrefit.hh.

268  {
269  return root.getModuleID() == hit.getModuleID() && fabs(root.getT() - hit.getT()) <= TMax_ns;
270  }

Member Data Documentation

◆ root

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

Definition at line 272 of file JShowerPrefit.hh.

◆ TMax_ns

double JRECONSTRUCTION::JShowerPrefit::match_t::TMax_ns

Definition at line 273 of file JShowerPrefit.hh.


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