Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 231 of file JShowerPrefit.hh.

Constructor & Destructor Documentation

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 238 of file JShowerPrefit.hh.

238  :
239  root(root),
241  {}

Member Function Documentation

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 249 of file JShowerPrefit.hh.

250  {
251  return root.getModuleID() == hit.getModuleID() && fabs(root.getT() - hit.getT()) <= TMax_ns;
252  }
double getT() const
Get calibrated time of hit.
int getModuleID() const
Get module identifier.

Member Data Documentation

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

Definition at line 254 of file JShowerPrefit.hh.

double JRECONSTRUCTION::JShowerPrefit::match_t::TMax_ns

Definition at line 255 of file JShowerPrefit.hh.


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