Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JAANET::JHit_t Struct Reference

Auxiliary class to set-up Hit. More...

#include <JHit_t.hh>

Public Member Functions

 JHit_t (const int id, const int pmt_id, const int type, const int origin, const double t, const int npe)
 Constructor. More...
 
 operator const Hit & () const
 Type conversion operator. More...
 

Public Attributes

int id
 
int pmt_id
 
int type
 
int origin
 
double t
 
int npe
 

Detailed Description

Auxiliary class to set-up Hit.

Definition at line 22 of file JHit_t.hh.

Constructor & Destructor Documentation

JAANET::JHit_t::JHit_t ( const int  id,
const int  pmt_id,
const int  type,
const int  origin,
const double  t,
const int  npe 
)
inline

Constructor.

Parameters
ididentifier
pmt_idPMT identifier
typetype
originorigin
ttime [ns]
npenumber of photo-electrons

Definition at line 34 of file JHit_t.hh.

40  {
41  this->id = id;
42  this->pmt_id = pmt_id;
43  this->type = type;
44  this->origin = origin;
45  this->t = t;
46  this->npe = npe;
47  }
double t
Definition: JHit_t.hh:76

Member Function Documentation

JAANET::JHit_t::operator const Hit & ( ) const
inline

Type conversion operator.

Returns
hit

Definition at line 55 of file JHit_t.hh.

56  {
57  static Hit hit;
58 
59  hit.id = this->id;
60  hit.pmt_id = this->pmt_id;
61  hit.type = this->type;
62  hit.origin = this->origin;
63  hit.pure_t = this->t;
64  hit.pure_a = this->npe;
65  hit.t = this->t;
66  hit.a = this->npe;
67 
68  return hit;
69  }
double t
Definition: JHit_t.hh:76

Member Data Documentation

int JAANET::JHit_t::id

Definition at line 72 of file JHit_t.hh.

int JAANET::JHit_t::pmt_id

Definition at line 73 of file JHit_t.hh.

int JAANET::JHit_t::type

Definition at line 74 of file JHit_t.hh.

int JAANET::JHit_t::origin

Definition at line 75 of file JHit_t.hh.

double JAANET::JHit_t::t

Definition at line 76 of file JHit_t.hh.

int JAANET::JHit_t::npe

Definition at line 77 of file JHit_t.hh.


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