Jpp  15.0.5
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 229 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 236 of file JShowerPrefit.hh.

236  :
237  root(root),
239  {}

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

248  {
249  return root.getModuleID() == hit.getModuleID() && fabs(root.getT() - hit.getT()) <= TMax_ns;
250  }
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 252 of file JShowerPrefit.hh.

double JRECONSTRUCTION::JShowerPrefit::match_t::TMax_ns

Definition at line 253 of file JShowerPrefit.hh.


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