Class Reference for E1039 Core & Analysis Software
UtilTdc Namespace Reference

A set of utility functions about the TDC data. More...

Functions

void FindTaiwanTdcBinning (int &n_bin, double &time_lo, double &time_hi)
 Find a proper set of "n_bin", "time_lo" and "time_hi". More...
 
void GetOccupancy (SRawEvent *raw, const bool in_time, int occ_det[N_DET+1])
 Get the occupancy of each detector (plane). More...
 
void GetOccupancy (SRawEvent *raw, const bool in_time, int &occ_D0, int &occ_D1, int &occ_D2, int &occ_D3)
 Get the occupancy of each station. More...
 

Variables

static const int N_DET = 54
 

Detailed Description

A set of utility functions about the TDC data.

Function Documentation

◆ FindTaiwanTdcBinning()

void UtilTdc::FindTaiwanTdcBinning ( int &  n_bin,
double &  time_lo,
double &  time_hi 
)

Find a proper set of "n_bin", "time_lo" and "time_hi".

One TDC count of the Taiwan TDC corresponds to 4/9 nsec. Therefore the bin width has to be "i * 4/9" with "i" integer.

Definition at line 10 of file UtilTdc.cc.

◆ GetOccupancy() [1/2]

void UtilTdc::GetOccupancy ( SRawEvent raw,
const bool  in_time,
int &  occ_D0,
int &  occ_D1,
int &  occ_D2,
int &  occ_D3 
)

Get the occupancy of each station.

Usage:

int occ_D0, occ_D1, occ_D2, occ_D3;
UtilTdc::GetOccupancy(raw, true, occ_D0, occ_D1, occ_D2, occ_D3);
void GetOccupancy(SRawEvent *raw, const bool in_time, int occ_det[N_DET+1])
Get the occupancy of each detector (plane).
Definition: UtilTdc.cc:34

Definition at line 52 of file UtilTdc.cc.

References GetOccupancy(), and N_DET.

+ Here is the call graph for this function:

◆ GetOccupancy() [2/2]

void UtilTdc::GetOccupancy ( SRawEvent raw,
const bool  in_time,
int  occ_det[N_DET+1] 
)

Get the occupancy of each detector (plane).

Usage:

int occ_det[UtilTdc::N_DET+1];
UtilTdc::GetOccupancy(raw, true, occ_det);
static const int N_DET
Definition: UtilTdc.h:7

Definition at line 34 of file UtilTdc.cc.

References Hit::detectorID, SRawEvent::getHit(), SRawEvent::getNHitsAll(), Hit::isInTime(), and N_DET.

Referenced by GetOccupancy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ N_DET

const int UtilTdc::N_DET = 54
static

Definition at line 7 of file UtilTdc.h.

Referenced by GetOccupancy().