Jpp  18.6.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JSIRENE::JPulse Class Reference

Auxiliary class for a time-over-threshold pulse from a PMT. More...

#include <JPulse.hh>

Inheritance diagram for JSIRENE::JPulse:
JLANG::JObjectID JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, int >

Public Member Functions

 JPulse ()
 Default constructor. More...
 
 JPulse (const Hit &hit)
 Constructor. More...
 
 JPulse (const JPulse &first, const JPulse &second)
 Constructor. More...
 
int getID () const
 Get identifier. More...
 
int & getID ()
 Get identifier. More...
 
void setID (const int id)
 Set identifier. More...
 
bool less (const JObjectID &object) const
 Less than method. More...
 
bool less (const int id) const
 Less than method. More...
 
bool more (const int id) const
 More than method. More...
 

Protected Attributes

int __id
 

Detailed Description

Auxiliary class for a time-over-threshold pulse from a PMT.

A ToT pulse is defined by a object identifier and a start and stop time.

Definition at line 33 of file JPulse.hh.

Constructor & Destructor Documentation

JSIRENE::JPulse::JPulse ( )
inline

Default constructor.

Definition at line 41 of file JPulse.hh.

41  :
42  JObjectID(),
43  JTimeRange()
44  {}
JObjectID()
Default constructor.
Definition: JObjectID.hh:30
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [s]).
JSIRENE::JPulse::JPulse ( const Hit hit)
inline

Constructor.

Parameters
hithit

Definition at line 52 of file JPulse.hh.

52  :
53  JObjectID(hit.pmt_id),
54  JTimeRange(getTime(hit),getTime(hit))
55  {}
int pmt_id
global PMT identifier as found in evt files
Definition: Hit.hh:20
double getTime(const Hit &hit)
Get true time of hit.
JObjectID()
Default constructor.
Definition: JObjectID.hh:30
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [s]).
JSIRENE::JPulse::JPulse ( const JPulse first,
const JPulse second 
)
inline

Constructor.

Parameters
firstfirst hit
secondsecond hit

Definition at line 64 of file JPulse.hh.

65  :
66  JObjectID(first.getID()),
67  JTimeRange(first)
68  {
69  combine(second);
70  }
JObjectID()
Default constructor.
Definition: JObjectID.hh:30
int getID() const
Get identifier.
Definition: JObjectID.hh:50
JRange< T, JComparator_t > combine(const JRange< T, JComparator_t > &first, const JRange< T, JComparator_t > &second)
Combine ranges.
Definition: JRange.hh:676
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [s]).

Member Function Documentation

int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 50 of file JObjectID.hh.

51  {
52  return __id;
53  }
int& JLANG::JObjectID::getID ( )
inlineinherited

Get identifier.

Returns
identifier

Definition at line 61 of file JObjectID.hh.

62  {
63  return __id;
64  }
void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 72 of file JObjectID.hh.

73  {
74  this->__id = id;
75  }
bool JLANG::JObjectID::less ( const JObjectID object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 84 of file JObjectID.hh.

85  {
86  return this->getID() < object.getID();
87  }
int getID() const
Get identifier.
Definition: JObjectID.hh:50
bool JLANG::JObjectID::less ( const int  id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 96 of file JObjectID.hh.

97  {
98  return this->getID() < id;
99  }
int getID() const
Get identifier.
Definition: JObjectID.hh:50
bool JLANG::JObjectID::more ( const int  id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 108 of file JObjectID.hh.

109  {
110  return this->getID() > id;
111  }
int getID() const
Get identifier.
Definition: JObjectID.hh:50

Member Data Documentation

int JLANG::JObjectID::__id
protectedinherited

Definition at line 140 of file JObjectID.hh.


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