SiWECAL-TestBeam / SiWECAL-TB-monitoring

Event-based almost-online monitoring for the SiW ECAL
GNU General Public License v3.0
0 stars 3 forks source link

Miscalculation in uncalled function? #18

Closed yuichiok closed 2 years ago

yuichiok commented 2 years ago

Hi all,

In a build_events.py below https://github.com/kunathj/SiWECAL-TB-analysis/blob/1f56c2788a2d95f95724a8120515ff1076d78319/eventbuilding/build_events.py#L392-L399 I see the the line says energy = (adc - pedestal) + mip This is definitely a mistake, no? Even though it seems it's not being called at the default setting.

kunathj commented 2 years ago

Sorry for the late response! It is definitely a mistake (should be energy = (adc - pedestal) / mip of course). We should fix this directly in https://github.com/SiWECAL-TestBeam/SiWECAL-TB-analysis. Do you want to commit the fix, or should I? When it is fixed, I can change the monitoring to use the updated SiWECAL-TB-analysis.

But it is also true that this is not an issue in the standard use case, so we can keep all build.root files.

kunathj commented 2 years ago

Will be fixed by https://github.com/SiWECAL-TestBeam/SiWECAL-TB-analysis/pull/44.