Jpp
Public Member Functions | Public Attributes | List of all members
Hit Struct Reference

#include <Hit.hh>

Public Member Functions

 Hit ()
 Default constructor. More...
 
void read (const Hit &h)
 Read hit (useful in python). More...
 
void write (Hit &h) const
 Write hit (useful in python). More...
 
void print (std::ostream &out) const
 Print hit. More...
 

Public Attributes

int id
 
int dom_id
 module identifier from the data (unique in the detector). More...
 
unsigned int channel_id
 PMT channel id {0,1, .., 31} local to moduke. More...
 
unsigned int tdc
 hit tdc (=time in ns) More...
 
unsigned int tot
 tot value as stored in raw data (int for pyroot) More...
 
int trig
 non-zero if the hit is a trigger hit. More...
 
int pmt_id
 global PMT identifier as found in evt files More...
 
double t
 hit time (from calibration or MC truth) More...
 
double a
 hit amplitude (in p.e.) More...
 
Vec pos
 hit position More...
 
Vec dir
 hit direction; i.e. direction of the PMT More...
 
double pure_t
 photon time before pmt simultion (MC only) More...
 
double pure_a
 amptitude before pmt simution (MC only) More...
 
int type
 particle type or parametrisation used for hit (mc only) More...
 
int origin
 track id of the track that created this hit More...
 
unsigned pattern_flags
 some number that you can use to flag the hit More...
 

Detailed Description

Definition at line 7 of file Hit.hh.

Constructor & Destructor Documentation

◆ Hit()

Hit::Hit ( )
inline

Default constructor.

Definition at line 36 of file Hit.hh.

36  : id(0), dom_id(0), channel_id(0), tdc(0), tot(0), trig(0), pmt_id(0),
37  t(0), a(0), pure_t(0), pure_a(0), type(0), origin(0), pattern_flags(0) {}

Member Function Documentation

◆ read()

void Hit::read ( const Hit h)
inline

Read hit (useful in python).

Parameters
hhit

Definition at line 46 of file Hit.hh.

46 { *this = h;}

◆ write()

void Hit::write ( Hit h) const
inline

Write hit (useful in python).

Parameters
hhit

Definition at line 53 of file Hit.hh.

53 { h = *this;}

◆ print()

void Hit::print ( std::ostream &  out) const
inline

Print hit.

Parameters
outoutput stream

Definition at line 60 of file Hit.hh.

61  {
62  out << "Hit: id=" << id << " dom="<<dom_id << " channel="<<channel_id;
63  out << " pmt="<<pmt_id << " t=" << t << " tot="<<tot;
64  out << " pos="; pos.print(out);
65  out << " dir="; dir.print(out);
66  }

Member Data Documentation

◆ id

int Hit::id

Definition at line 9 of file Hit.hh.

◆ dom_id

int Hit::dom_id

module identifier from the data (unique in the detector).

Definition at line 12 of file Hit.hh.

◆ channel_id

unsigned int Hit::channel_id

PMT channel id {0,1, .., 31} local to moduke.

Definition at line 13 of file Hit.hh.

◆ tdc

unsigned int Hit::tdc

hit tdc (=time in ns)

Definition at line 14 of file Hit.hh.

◆ tot

unsigned int Hit::tot

tot value as stored in raw data (int for pyroot)

Definition at line 15 of file Hit.hh.

◆ trig

int Hit::trig

non-zero if the hit is a trigger hit.

Definition at line 16 of file Hit.hh.

◆ pmt_id

int Hit::pmt_id

global PMT identifier as found in evt files

Definition at line 18 of file Hit.hh.

◆ t

double Hit::t

hit time (from calibration or MC truth)

Definition at line 21 of file Hit.hh.

◆ a

double Hit::a

hit amplitude (in p.e.)

Definition at line 22 of file Hit.hh.

◆ pos

Vec Hit::pos

hit position

Definition at line 23 of file Hit.hh.

◆ dir

Vec Hit::dir

hit direction; i.e. direction of the PMT

Definition at line 24 of file Hit.hh.

◆ pure_t

double Hit::pure_t

photon time before pmt simultion (MC only)

Definition at line 26 of file Hit.hh.

◆ pure_a

double Hit::pure_a

amptitude before pmt simution (MC only)

Definition at line 27 of file Hit.hh.

◆ type

int Hit::type

particle type or parametrisation used for hit (mc only)

Definition at line 28 of file Hit.hh.

◆ origin

int Hit::origin

track id of the track that created this hit

Definition at line 29 of file Hit.hh.

◆ pattern_flags

unsigned Hit::pattern_flags

some number that you can use to flag the hit

Definition at line 31 of file Hit.hh.


The documentation for this struct was generated from the following file:
Hit::pure_t
double pure_t
photon time before pmt simultion (MC only)
Definition: Hit.hh:26
Hit::tdc
unsigned int tdc
hit tdc (=time in ns)
Definition: Hit.hh:14
Hit::origin
int origin
track id of the track that created this hit
Definition: Hit.hh:29
Hit::pmt_id
int pmt_id
global PMT identifier as found in evt files
Definition: Hit.hh:18
Hit::a
double a
hit amplitude (in p.e.)
Definition: Hit.hh:22
Hit::t
double t
hit time (from calibration or MC truth)
Definition: Hit.hh:21
Hit::tot
unsigned int tot
tot value as stored in raw data (int for pyroot)
Definition: Hit.hh:15
Hit::id
int id
Definition: Hit.hh:9
Hit::dom_id
int dom_id
module identifier from the data (unique in the detector).
Definition: Hit.hh:12
Hit::dir
Vec dir
hit direction; i.e. direction of the PMT
Definition: Hit.hh:24
Hit::pure_a
double pure_a
amptitude before pmt simution (MC only)
Definition: Hit.hh:27
Hit::trig
int trig
non-zero if the hit is a trigger hit.
Definition: Hit.hh:16
Hit::pattern_flags
unsigned pattern_flags
some number that you can use to flag the hit
Definition: Hit.hh:31
Hit::pos
Vec pos
hit position
Definition: Hit.hh:23
Hit::channel_id
unsigned int channel_id
PMT channel id {0,1, .., 31} local to moduke.
Definition: Hit.hh:13
Hit::type
int type
particle type or parametrisation used for hit (mc only)
Definition: Hit.hh:28
Vec::print
void print(std::ostream &out=std::cout) const
Print vector.
Definition: Vec.hh:166