Adjusting pedestal subtraction
Adjusting pedestal subtraction to work with 4 asics and fixing data monitoring
Merge request reports
Activity
After skimming through this code I have few comments:
- Delete .vscode files
- ThresholdPlotter is never used anywhere?
- UTEmuDataReader moved or created?
- in UTEmuDataReader.cpp the
decodeData
function is too long - https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmu/src/UTEmuPedestalSubtractorAlgorithm.cpp#L90 this does not seem very informative
- https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmu/src/UTEmuPedestalSubtractorAlgorithm.cpp#L137 this wool be mor readable in form of
auto pedestalFollowing = m_followingFactories[asic_num].createPedestalFollowing(m_followingOption); m_pedestalFollowingPtrs[asic_num].reset(pedestalFollowing);
and this file could be written more clearly (split in to more functions). The indendation is wrong.
-
https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmu/src/UTEmuPedestalCalculator.cpp#L82 does it should be
cout
? -
It is a good practice to use pre-incrementation instead of post incrementation.
-
commented-out code at https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmu/src/UTEmuRandomNoiseGenerator.cpp#L20
-
https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmuMonitoring/src/UTEmuDataMonitorAlgorithm.cpp#L186 if statement is nod needed
-
Should this hard-coded string be there? will it work ? https://gitlab.cern.ch/lhcb/Vetra/blob/UTEmu_PedestalSubtraction/UT/UTEmuStandalone/python/UTEmuStandalone/Configuration.py#L29