Pedestals
Author
M. Volkov 2002
Revised by A. Kazantsev 12.2003
stkav@rcf.rhic.bnl.gov
Description
Pedestal extraction code. Calcutates all 5 flavours of pedestals
(LGpre, LGpost, HGpre, HGpost, TAC) and additionally LG and HG.
For each (channel, AMU) pair it collects pedestal values, after that
discards 10% events with highest signal and 10% events with lowest
signal and calculates mean value and RMS using remaining 80% events.
This trick allows to discard events what might be bad probably not
due to electronic noise.
Code repository
/home/phnxpbgl/work/RawData/calib/pedestals
Instruction
- Make sure that HV is on.
- Take a pedestal run with GTM file GTM.pbgl_init_shortlong_IY.gtm
It allows to have all AMU cells occupied. Take 3000-6000 events.
- Make corrections in ped.dat
- Start root -l GetPedestal.C. It takes a few hours to fully
process one file.
- Start root -l writePedestalASCII.C. You'll have a complete set
of pedestal values in ASCII format. It can be submitted to the DB.
Last update:
Andrey Kazantsev