Jpp  15.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JTRIGGER::JHitToolkit< JHit_t, true > Struct Template Reference

Template specialisation of hit toolkit for any primitive data type. More...

#include <JHitToolkit.hh>

Public Member Functions

const JHitToolkit< JHit_t, true > & getToolkit () const
 Get toolkit. More...
 
bool operator() (const JHit_t first, const JHit_t second) const
 Compare time of two hits. More...
 

Static Public Member Functions

static double getT (const JHit_t hit)
 Get time of hit. More...
 
static double getToT (const JHit_t &hit)
 Get time-over-threshold of hit. More...
 
static JHit getJHit (const JHit_t hit)
 Construct JHit. More...
 
static JHit_t getHit (const JDAQHit &hit, const JCalibration &cal)
 Construct hit. More...
 
static JHit_t getEndMarker ()
 Get end marker. More...
 
static JHit_t getTimeDifference (const JHit_t first, const JHit_t second)
 Get time difference between two hits. More...
 
static JHit_t join (const JHit_t &first, const JHit_t &second)
 Join two hits. More...
 

Detailed Description

template<class JHit_t>
struct JTRIGGER::JHitToolkit< JHit_t, true >

Template specialisation of hit toolkit for any primitive data type.

Definition at line 369 of file JHitToolkit.hh.

Member Function Documentation

template<class JHit_t >
const JHitToolkit<JHit_t, true>& JTRIGGER::JHitToolkit< JHit_t, true >::getToolkit ( ) const
inline

Get toolkit.

Returns
this hit toolkit

Definition at line 376 of file JHitToolkit.hh.

377  {
378  return *this;
379  }
template<class JHit_t >
static double JTRIGGER::JHitToolkit< JHit_t, true >::getT ( const JHit_t  hit)
inlinestatic

Get time of hit.

Parameters
hithit
Returns
time of hit [ns]

Definition at line 388 of file JHitToolkit.hh.

389  {
390  return hit;
391  }
template<class JHit_t >
static double JTRIGGER::JHitToolkit< JHit_t, true >::getToT ( const JHit_t hit)
inlinestatic

Get time-over-threshold of hit.

Parameters
hithit
Returns
0

Definition at line 400 of file JHitToolkit.hh.

401  {
402  return 0.0;
403  }
template<class JHit_t >
static JHit JTRIGGER::JHitToolkit< JHit_t, true >::getJHit ( const JHit_t  hit)
inlinestatic

Construct JHit.

Parameters
hithit
Returns
hit

Definition at line 412 of file JHitToolkit.hh.

413  {
414  return JHit(getT(hit), getToT(hit));
415  }
Acoustics hit.
static double getT(const JHit_t hit)
Get time of hit.
Definition: JHitToolkit.hh:388
static double getToT(const JHit_t &hit)
Get time-over-threshold of hit.
Definition: JHitToolkit.hh:400
template<class JHit_t >
static JHit_t JTRIGGER::JHitToolkit< JHit_t, true >::getHit ( const JDAQHit hit,
const JCalibration cal 
)
inlinestatic

Construct hit.

Parameters
hitDAQ hit
calcalibration
Returns
hit

Definition at line 425 of file JHitToolkit.hh.

426  {
427  return getTime(hit, cal);
428  }
double getTime(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time of DAQ hit.
Definition: JHitToolkit.hh:34
template<class JHit_t >
static JHit_t JTRIGGER::JHitToolkit< JHit_t, true >::getEndMarker ( )
inlinestatic

Get end marker.

Returns
latest possible hit

Definition at line 436 of file JHitToolkit.hh.

437  {
438  return std::numeric_limits<JHit_t>::max();
439  }
template<class JHit_t >
static JHit_t JTRIGGER::JHitToolkit< JHit_t, true >::getTimeDifference ( const JHit_t  first,
const JHit_t  second 
)
inlinestatic

Get time difference between two hits.

Parameters
firstfirst hit
secondsecond hit
Returns
time second hit - time first hit [ns]

Definition at line 449 of file JHitToolkit.hh.

450  {
451  return second - first;
452  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JHit_t >
bool JTRIGGER::JHitToolkit< JHit_t, true >::operator() ( const JHit_t  first,
const JHit_t  second 
) const
inline

Compare time of two hits.

Parameters
firstfirst value [ns]
secondsecond value [ns]
Returns
true if second hit later; else false

Definition at line 462 of file JHitToolkit.hh.

463  {
464  return first < second;
465  }
template<class JHit_t >
static JHit_t JTRIGGER::JHitToolkit< JHit_t, true >::join ( const JHit_t first,
const JHit_t second 
)
inlinestatic

Join two hits.

Note that this method returns the first hit as-is.

Parameters
firstfirst hit
secondsecond hit
Returns
joined hit

Definition at line 477 of file JHitToolkit.hh.

478  {
479  return first;
480  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first

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