#include <BCkovHit.h>
Public Member Functions | |
| BCkovHit () | |
| ~BCkovHit () | |
| float | Charge (int chan) const |
| float | Time (int chan) const |
| int | Mult (int chan) const |
| float | Time (int chan, int hit) const |
| void | Reset () |
| void | InitChan (int chan, float charge, float t, const TrigChan *tc) |
Private Attributes | |
| float | fCharge [BCkov::kNChan] |
| Amount of charge integrated in the ADC (pC). | |
| float | fTime [BCkov::kNChan] |
| Hit time based on precise (LRS2229) TDC's (ns). | |
| short | fMult [BCkov::kNChan] |
| Multiplicity of LRS3377 TDC. | |
| float | fMultTime [BCkov::kNChan][16] |
| Hit times in LRS3377 TDC (ns). | |
Definition at line 19 of file BCkovHit.h.
| BCkovHit::BCkovHit | ( | ) | [inline] |
| BCkovHit::~BCkovHit | ( | ) | [inline] |
| float BCkovHit::Charge | ( | int | chan | ) | const [inline] |
Definition at line 24 of file BCkovHit.h.
References fCharge.
Referenced by BCkovReco::FillPIDHistos(), and BCkovReco::MakeHit().
00024 {return fCharge[chan];}
| void BCkovHit::InitChan | ( | int | chan, | |
| float | charge, | |||
| float | t, | |||
| const TrigChan * | tc | |||
| ) |
Definition at line 26 of file BCkovHit.cxx.
References fCharge, fMult, fMultTime, fTime, BCkov::kNChan, and tc.
Referenced by BCkovReco::MakeHit().
00028 { 00029 assert(chan >= 0 && chan <= BCkov::kNChan); 00030 00031 fCharge[chan] = charge; 00032 fTime[chan] = t; 00033 if (!tc) fMult[chan] = -1; 00034 else fMult[chan] = tc->GetNHit(); 00035 for (int i = 0; i < fMult[chan]; ++i) { 00036 fMultTime[chan][i] = tc->GetTime(i); 00037 } 00038 }
| int BCkovHit::Mult | ( | int | chan | ) | const [inline] |
Definition at line 26 of file BCkovHit.h.
References fMult.
Referenced by BCkovReco::MakeHit(), and BCkovReco::MakeTDCPID().
00026 {return fMult[chan];}
| void BCkovHit::Reset | ( | ) |
Definition at line 16 of file BCkovHit.cxx.
References fCharge, fMult, fMultTime, and fTime.
Referenced by BCkovHit().
00017 { 00018 memset(fCharge, 0, sizeof(fCharge)); 00019 memset(fTime, 0, sizeof(fTime)); 00020 memset(fMult, 0, sizeof(fMult)); 00021 memset(fMultTime, 0, sizeof(fMultTime)); 00022 }
| float BCkovHit::Time | ( | int | chan, | |
| int | hit | |||
| ) | const |
Definition at line 42 of file BCkovHit.cxx.
References fMult, fMultTime, and BCkov::kNChan.
00043 { 00044 assert(chan >= 0 && chan <= BCkov::kNChan); 00045 assert(hit >= 0 && hit < fMult[chan]); 00046 00047 return fMultTime[chan][hit]; 00048 }
| float BCkovHit::Time | ( | int | chan | ) | const [inline] |
Definition at line 25 of file BCkovHit.h.
References fTime.
Referenced by BCkovReco::FillHitHistos(), BCkovReco::MakeHit(), and BCkovReco::MakeTDCPID().
00025 {return fTime[chan];}
float BCkovHit::fCharge[BCkov::kNChan] [private] |
Amount of charge integrated in the ADC (pC).
Definition at line 34 of file BCkovHit.h.
Referenced by Charge(), InitChan(), and Reset().
short BCkovHit::fMult[BCkov::kNChan] [private] |
Multiplicity of LRS3377 TDC.
Definition at line 36 of file BCkovHit.h.
Referenced by InitChan(), Mult(), Reset(), and Time().
float BCkovHit::fMultTime[BCkov::kNChan][16] [private] |
Hit times in LRS3377 TDC (ns).
Definition at line 37 of file BCkovHit.h.
Referenced by InitChan(), Reset(), and Time().
float BCkovHit::fTime[BCkov::kNChan] [private] |
Hit time based on precise (LRS2229) TDC's (ns).
Definition at line 35 of file BCkovHit.h.
Referenced by InitChan(), Reset(), and Time().
1.4.7