|
FairRoot/PandaRoot
|
#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... | |
| PndDiscDigitizedHit * | GetNextNoiseDigit () |
| 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 |
Private Member Functions | |
| bool | GetPixelPosition (int n_pixel, double &pos_x, double &pos_y) |
Definition at line 19 of file PndDiscNoiseGeneration.h.
| PndDiscNoiseGeneration::PndDiscNoiseGeneration | ( | ) |
Definition at line 23 of file PndDiscNoiseGeneration.cxx.
References noise_digits.
| PndDiscNoiseGeneration::~PndDiscNoiseGeneration | ( | ) |
Definition at line 34 of file PndDiscNoiseGeneration.cxx.
References noise_digits.
| void PndDiscNoiseGeneration::Clear | ( | ) |
Clears the digit buffer.
Definition at line 127 of file PndDiscNoiseGeneration.cxx.
References current_index, and noise_digits.
Referenced by GenerateNoise().
| int PndDiscNoiseGeneration::GenerateNoise | ( | double | t_start_ns, |
| double | t_end_ns | ||
| ) |
Generate noise pattern in time window given by t_start, t_end.
Definition at line 77 of file PndDiscNoiseGeneration.cxx.
References Clear(), dcr_per_pixel, GetPixelPosition(), half_sensor_height, half_sensor_width, hit, n_detectors, n_pixel_x, n_readout_modules, n_sensor_tiles_x, n_sensor_tiles_y, n_sensors, and noise_digits.
| PndDiscDigitizedHit * PndDiscNoiseGeneration::GetNextNoiseDigit | ( | ) |
Iterate over all generated hits.
Definition at line 119 of file PndDiscNoiseGeneration.cxx.
References current_index, and GetEntries().
|
private |
Definition at line 69 of file PndDiscNoiseGeneration.cxx.
References half_sensor_height, half_sensor_width, n_pixel_total, n_pixel_x, pitch_x, and pitch_y.
Referenced by GenerateNoise().
| void PndDiscNoiseGeneration::SetNumberOfSensors | ( | int | n_detectors_, |
| int | n_readout_modules_, | ||
| int | n_sensors_ | ||
| ) |
Set the number of sensors for the whole apparatus.
Definition at line 39 of file PndDiscNoiseGeneration.cxx.
References n_detectors, n_readout_modules, and n_sensors.
|
inline |
| void PndDiscNoiseGeneration::SetSensorGrid | ( | double | sensor_width_, |
| double | sensor_height_, | ||
| int | n_pixel_x_, | ||
| int | n_pixel_y_ | ||
| ) |
Set the pixel grid on the sensors.
Definition at line 47 of file PndDiscNoiseGeneration.cxx.
References half_sensor_height, half_sensor_width, n_pixel_total, n_pixel_x, n_pixel_y, pitch_x, and pitch_y.
| void PndDiscNoiseGeneration::SetSensorTiling | ( | int | sensor_tiles_x, |
| int | sensor_tiles_y | ||
| ) |
Set a logical tiling (used for dead time handling)
Definition at line 63 of file PndDiscNoiseGeneration.cxx.
References n_sensor_tiles_x, and n_sensor_tiles_y.
|
protected |
current index in pool (used in iteration)
Definition at line 45 of file PndDiscNoiseGeneration.h.
Referenced by Clear(), and GetNextNoiseDigit().
|
protected |
Definition at line 62 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetPerCellDCR().
|
protected |
Definition at line 54 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), GetPixelPosition(), and SetSensorGrid().
|
protected |
Definition at line 53 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), GetPixelPosition(), and SetSensorGrid().
|
protected |
number of detectors
Definition at line 47 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetNumberOfSensors().
|
protected |
Definition at line 57 of file PndDiscNoiseGeneration.h.
Referenced by GetPixelPosition(), and SetSensorGrid().
|
protected |
Definition at line 55 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), GetPixelPosition(), and SetSensorGrid().
|
protected |
Definition at line 56 of file PndDiscNoiseGeneration.h.
Referenced by SetSensorGrid().
|
protected |
number of readout modules on a detector
Definition at line 48 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetNumberOfSensors().
|
protected |
number of sensor tiles = number of dies
Definition at line 50 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetSensorTiling().
|
protected |
number of sensor tiles = number of dies
Definition at line 51 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetSensorTiling().
|
protected |
number of sensors (untiled) at a readout module
Definition at line 49 of file PndDiscNoiseGeneration.h.
Referenced by GenerateNoise(), and SetNumberOfSensors().
|
protected |
Memory pool to store the digits.
Definition at line 44 of file PndDiscNoiseGeneration.h.
Referenced by Clear(), GenerateNoise(), PndDiscNoiseGeneration(), and ~PndDiscNoiseGeneration().
|
protected |
Definition at line 59 of file PndDiscNoiseGeneration.h.
Referenced by GetPixelPosition(), and SetSensorGrid().
|
protected |
Definition at line 60 of file PndDiscNoiseGeneration.h.
Referenced by GetPixelPosition(), and SetSensorGrid().
1.8.5