PandaRoot
PndDiscNoiseGeneration Class Reference

#include <PndDiscNoiseGeneration.h>

Public Member Functions

 PndDiscNoiseGeneration ()
 
 ~PndDiscNoiseGeneration ()
 
void SetNumberOfSensors (int n_detectors_, int n_readout_modules_, int n_sensors_)
 Set the number of sensors for the whole apparatus. More...
 
void SetSensorGrid (double sensor_width_, double sensor_height_, int n_pixel_x_, int n_pixel_y_)
 Set the pixel grid on the sensors. More...
 
void SetSensorTiling (int sensor_tiles_x, int sensor_tiles_y)
 Set a logical tiling (used for dead time handling) More...
 
void SetPerCellDCR (double dcr_Hz)
 
int GenerateNoise (double t_start_ns, double t_end_ns)
 Generate noise pattern in time window given by t_start, t_end. More...
 
PndDiscDigitizedHitGetNextNoiseDigit ()
 Iterate over all generated hits. More...
 
void Clear ()
 Clears the digit buffer. More...
 

Protected Attributes

TClonesArray * noise_digits
 Memory pool to store the digits. More...
 
int current_index
 current index in pool (used in iteration) More...
 
int n_detectors
 number of detectors More...
 
int n_readout_modules
 number of readout modules on a detector More...
 
int n_sensors
 number of sensors (untiled) at a readout module More...
 
int n_sensor_tiles_x
 number of sensor tiles = number of dies More...
 
int n_sensor_tiles_y
 number of sensor tiles = number of dies More...
 
double half_sensor_width
 
double half_sensor_height
 
int n_pixel_x
 
int n_pixel_y
 
int n_pixel_total
 
double pitch_x
 
double pitch_y
 
double dcr_per_pixel
 

Detailed Description

Definition at line 15 of file PndDiscNoiseGeneration.h.

Constructor & Destructor Documentation

◆ PndDiscNoiseGeneration()

PndDiscNoiseGeneration::PndDiscNoiseGeneration ( )

◆ ~PndDiscNoiseGeneration()

PndDiscNoiseGeneration::~PndDiscNoiseGeneration ( )

Member Function Documentation

◆ Clear()

void PndDiscNoiseGeneration::Clear ( )

Clears the digit buffer.

Referenced by SetPerCellDCR().

◆ GenerateNoise()

int PndDiscNoiseGeneration::GenerateNoise ( double  t_start_ns,
double  t_end_ns 
)

Generate noise pattern in time window given by t_start, t_end.

Referenced by SetPerCellDCR().

◆ GetNextNoiseDigit()

PndDiscDigitizedHit* PndDiscNoiseGeneration::GetNextNoiseDigit ( )

Iterate over all generated hits.

Referenced by SetPerCellDCR().

◆ SetNumberOfSensors()

void PndDiscNoiseGeneration::SetNumberOfSensors ( int  n_detectors_,
int  n_readout_modules_,
int  n_sensors_ 
)

Set the number of sensors for the whole apparatus.

◆ SetPerCellDCR()

void PndDiscNoiseGeneration::SetPerCellDCR ( double  dcr_Hz)
inline

Definition at line 28 of file PndDiscNoiseGeneration.h.

References Clear(), dcr_per_pixel, GenerateNoise(), and GetNextNoiseDigit().

28 { dcr_per_pixel = dcr_Hz * 1E-9; }

◆ SetSensorGrid()

void PndDiscNoiseGeneration::SetSensorGrid ( double  sensor_width_,
double  sensor_height_,
int  n_pixel_x_,
int  n_pixel_y_ 
)

Set the pixel grid on the sensors.

◆ SetSensorTiling()

void PndDiscNoiseGeneration::SetSensorTiling ( int  sensor_tiles_x,
int  sensor_tiles_y 
)

Set a logical tiling (used for dead time handling)

Member Data Documentation

◆ current_index

int PndDiscNoiseGeneration::current_index
protected

current index in pool (used in iteration)

Definition at line 40 of file PndDiscNoiseGeneration.h.

◆ dcr_per_pixel

double PndDiscNoiseGeneration::dcr_per_pixel
protected

Definition at line 57 of file PndDiscNoiseGeneration.h.

Referenced by SetPerCellDCR().

◆ half_sensor_height

double PndDiscNoiseGeneration::half_sensor_height
protected

Definition at line 49 of file PndDiscNoiseGeneration.h.

◆ half_sensor_width

double PndDiscNoiseGeneration::half_sensor_width
protected

Definition at line 48 of file PndDiscNoiseGeneration.h.

◆ n_detectors

int PndDiscNoiseGeneration::n_detectors
protected

number of detectors

Definition at line 42 of file PndDiscNoiseGeneration.h.

◆ n_pixel_total

int PndDiscNoiseGeneration::n_pixel_total
protected

Definition at line 52 of file PndDiscNoiseGeneration.h.

◆ n_pixel_x

int PndDiscNoiseGeneration::n_pixel_x
protected

Definition at line 50 of file PndDiscNoiseGeneration.h.

◆ n_pixel_y

int PndDiscNoiseGeneration::n_pixel_y
protected

Definition at line 51 of file PndDiscNoiseGeneration.h.

◆ n_readout_modules

int PndDiscNoiseGeneration::n_readout_modules
protected

number of readout modules on a detector

Definition at line 43 of file PndDiscNoiseGeneration.h.

◆ n_sensor_tiles_x

int PndDiscNoiseGeneration::n_sensor_tiles_x
protected

number of sensor tiles = number of dies

Definition at line 45 of file PndDiscNoiseGeneration.h.

◆ n_sensor_tiles_y

int PndDiscNoiseGeneration::n_sensor_tiles_y
protected

number of sensor tiles = number of dies

Definition at line 46 of file PndDiscNoiseGeneration.h.

◆ n_sensors

int PndDiscNoiseGeneration::n_sensors
protected

number of sensors (untiled) at a readout module

Definition at line 44 of file PndDiscNoiseGeneration.h.

◆ noise_digits

TClonesArray* PndDiscNoiseGeneration::noise_digits
protected

Memory pool to store the digits.

Definition at line 39 of file PndDiscNoiseGeneration.h.

◆ pitch_x

double PndDiscNoiseGeneration::pitch_x
protected

Definition at line 54 of file PndDiscNoiseGeneration.h.

◆ pitch_y

double PndDiscNoiseGeneration::pitch_y
protected

Definition at line 55 of file PndDiscNoiseGeneration.h.


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