8 #ifndef PNDDISCNOISEGENERATION_H
9 #define PNDDISCNOISEGENERATION_H
12 #include "TClonesArray.h"
30 void SetSensorGrid(
double sensor_width_,
double sensor_height_,
int n_pixel_x_,
int n_pixel_y_);
65 #endif // PNDDISCNOISEGENERATION_HH_
void SetSensorTiling(int sensor_tiles_x, int sensor_tiles_y)
Set a logical tiling (used for dead time handling)
void SetPerCellDCR(double dcr_Hz)
~PndDiscNoiseGeneration()
int n_sensor_tiles_x
number of sensor tiles = number of dies
int n_readout_modules
number of readout modules on a detector
void SetSensorGrid(double sensor_width_, double sensor_height_, int n_pixel_x_, int n_pixel_y_)
Set the pixel grid on the sensors.
void SetNumberOfSensors(int n_detectors_, int n_readout_modules_, int n_sensors_)
Set the number of sensors for the whole apparatus.
TClonesArray * noise_digits
Memory pool to store the digits.
bool GetPixelPosition(int n_pixel, double &pos_x, double &pos_y)
int n_sensor_tiles_y
number of sensor tiles = number of dies
int n_sensors
number of sensors (untiled) at a readout module
PndDiscDigitizedHit * GetNextNoiseDigit()
Iterate over all generated hits.
int n_detectors
number of detectors
void Clear()
Clears the digit buffer.
double half_sensor_height
int GenerateNoise(double t_start_ns, double t_end_ns)
Generate noise pattern in time window given by t_start, t_end.
int current_index
current index in pool (used in iteration)