Jpp
 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 JHit 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 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...
 

Detailed Description

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

Template specialisation of hit toolkit for JHit class.

Definition at line 171 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 179 of file JHitToolkit.hh.

180  {
181  return *this;
182  }
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 192 of file JHitToolkit.hh.

193  {
194  return JHitR0(hit.getPMT(), JHitToolkit<JHit, false>::getHit(hit, cal));
195  }
Reduced data structure for L0 hit.
Definition: JHitR0.hh:25
JHitL0 getHit(const Hit &hit)
Get transformation.
static JHitR0 JTRIGGER::JHitToolkit< JHitR0, false >::getEndMarker ( )
inlinestatic

Get end marker.

Returns
latest possible hit

Definition at line 203 of file JHitToolkit.hh.

204  {
206  }
Reduced data structure for L0 hit.
Definition: JHitR0.hh:25
Template definition of hit toolkit.
Definition: JHitToolkit.hh:60
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  }
double getT() const
Get calibrated time of hit.
Definition: JHit.hh:143
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  }
double getToT() const
Get calibrated time over threshold of hit.
Definition: JHit.hh:157
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 value [ns]
secondsecond value [ns]
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

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