Jpp  17.3.0-rc.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< JHitR0, false > Struct Template Reference

Template specialisation of hit toolkit for JHitR0 class. More...

#include <JHitToolkit.hh>

Inheritance diagram for JTRIGGER::JHitToolkit< JHitR0, false >:
JTRIGGER::JHitToolkit< JHit, false >

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<>
struct JTRIGGER::JHitToolkit< JHitR0, false >

Template specialisation of hit toolkit for JHitR0 class.

Definition at line 309 of file JHitToolkit.hh.

Member Function Documentation

const JHitToolkit<JHit, false>& JTRIGGER::JHitToolkit< JHitR0, false >::getToolkit ( ) const
inline

Get toolkit.

Returns
this hit toolkit

Definition at line 317 of file JHitToolkit.hh.

318  {
319  return *this;
320  }
static JHitR0 JTRIGGER::JHitToolkit< JHitR0, false >::getHit ( const JDAQHit hit,
const JCalibration cal 
)
inlinestatic

Construct hit.

Parameters
hitDAQ hit
calcalibration
Returns
hit

Definition at line 330 of file JHitToolkit.hh.

331  {
332  return JHitR0(hit.getPMT(), JHitToolkit<JHit, false>::getHit(hit, cal));
333  }
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
Reduced data structure for L0 hit.
Definition: JHitR0.hh:25
Template definition of hit toolkit.
Definition: JHitToolkit.hh:60
static JHitR0 JTRIGGER::JHitToolkit< JHitR0, false >::getEndMarker ( )
inlinestatic

Get end marker.

Returns
latest possible hit

Definition at line 341 of file JHitToolkit.hh.

342  {
344  }
Reduced data structure for L0 hit.
Definition: JHitR0.hh:25
Template definition of hit toolkit.
Definition: JHitToolkit.hh:60
static JHitR0 JTRIGGER::JHitToolkit< JHitR0, false >::join ( const JHitR0 first,
const JHitR0 second 
)
inlinestatic

Join two hits.

Parameters
firstfirst hit
secondsecond hit
Returns
joined hit

Definition at line 354 of file JHitToolkit.hh.

355  {
356  JHitR0 hit(first);
357 
358  hit.join(second);
359 
360  return hit;
361  }
Reduced data structure for L0 hit.
Definition: JHitR0.hh:25
static double JTRIGGER::JHitToolkit< JHit, false >::getT ( const JHit hit)
inlinestaticinherited

Get time of hit.

Parameters
hithit
Returns
time of hit [ns]

Definition at line 86 of file JHitToolkit.hh.

87  {
88  return hit.getT();
89  }
static double JTRIGGER::JHitToolkit< JHit, false >::getToT ( const JHit hit)
inlinestaticinherited

Get time-over-threshold of hit.

Parameters
hithit
Returns
time-over-threshold of hit [ns]

Definition at line 98 of file JHitToolkit.hh.

99  {
100  return hit.getToT();
101  }
static JHit JTRIGGER::JHitToolkit< JHit, false >::getJHit ( const JHit hit)
inlinestaticinherited

Construct JHit.

Parameters
hithit
Returns
hit

Definition at line 110 of file JHitToolkit.hh.

111  {
112  return hit;
113  }
static double JTRIGGER::JHitToolkit< JHit, false >::getTimeDifference ( const JHit first,
const JHit second 
)
inlinestaticinherited

Get time difference between two hits.

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

Definition at line 147 of file JHitToolkit.hh.

148  {
149  return getT(second) - getT(first);
150  }
static double getT(const JHit &hit)
Get time of hit.
Definition: JHitToolkit.hh:86
bool JTRIGGER::JHitToolkit< JHit, false >::operator() ( const JHit first,
const JHit second 
) const
inlineinherited

Compare time of two hits.

Parameters
firstfirst hit
secondsecond hit
Returns
true if second hit later; else false

Definition at line 160 of file JHitToolkit.hh.

161  {
162  return getT(first) < getT(second);
163  }
static double getT(const JHit &hit)
Get time of hit.
Definition: JHitToolkit.hh:86
static JHit JTRIGGER::JHitToolkit< JHit, false >::join ( const JHit first,
const JHit second 
)
inlinestaticinherited

Join two hits.

Parameters
firstfirst hit
secondsecond hit
Returns
joined hit

Definition at line 173 of file JHitToolkit.hh.

174  {
175  JHit hit(first);
176 
177  hit.join(second);
178 
179  return hit;
180  }
Acoustics hit.

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