R3BROOT
R3B analysis software
|
Adding parameters whose values are randomly generated from the original file to the output file. More...
Public Member Functions | |
__init__ (self, int module_num) | |
Constructor. | |
set_run_id (self, int val) | |
Set the run id in the parameter file. | |
insert_parameters (self, str original_filepath, str output_filepath) | |
Adding the parameters with random values to the output file. | |
Static Public Member Functions | |
generate_random_value_with_cos (ParValueSet par, module_id) | |
Generating a random value according to the module id and the given random generator parameters. | |
Public Attributes | |
effective_speed = ParValueSet.empty() | |
Effective speed of light paramter in the scintillation material. | |
t_sync = ParValueSet.empty() | |
Time synchronization paramter. | |
t_diff = ParValueSet.empty() | |
Time offset parameter. | |
light_attenuation_length = ParValueSet.empty() | |
Light attenuation length parameter. | |
energy_gain = ParValueSet.empty() | |
Energy gain parameter of the PMT (Both sides) | |
pedestal = ParValueSet.empty() | |
Pedestal parameter of the PMT (Both sides) | |
pmt_thresh = ParValueSet.empty() | |
PMT threshold parameter (Both sides) | |
saturation_coefficient = ParValueSet.empty() | |
Saturation coefficient of the PMT (Both sides) | |
Example:
Definition at line 96 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.__init__ | ( | self, | |
int | module_num ) |
module_num | The number of bars |
Definition at line 132 of file neuland_add_random_hitpar.py.
|
static |
module_id | The module ID (0-based number) of the bar |
Definition at line 169 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.insert_parameters | ( | self, | |
str | original_filepath, | ||
str | output_filepath ) |
original_filepath | The original input file to be added |
output_filepath | The output file containing the new parameter |
Definition at line 255 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.set_run_id | ( | self, | |
int | val ) |
val | Run id |
Definition at line 187 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.effective_speed = ParValueSet.empty() |
Definition at line 145 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.energy_gain = ParValueSet.empty() |
Definition at line 157 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.light_attenuation_length = ParValueSet.empty() |
Definition at line 154 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.pedestal = ParValueSet.empty() |
Definition at line 160 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.pmt_thresh = ParValueSet.empty() |
Definition at line 163 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.saturation_coefficient = ParValueSet.empty() |
Definition at line 166 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.t_diff = ParValueSet.empty() |
Definition at line 151 of file neuland_add_random_hitpar.py.
neuland_add_random_hitpar.NeulandRandHitParAdder.t_sync = ParValueSet.empty() |
Definition at line 148 of file neuland_add_random_hitpar.py.