Macros (all located in PhatII/macros/setup) to make important super modules :
pcal_unpack_setup.C - Contains two TPhPCALCalibMod's one each for PCAL-P and PCAL-N. The trigger channels are not used in normal event processing. The CalibMod's read the peds and gains (if requested) from the DB and apply them as well as jitter (if requested).
vme_unpack_setup.C - Contains TPhVMEInitMod (reads the VMEMap from the DB) and TPhVMEUnpackerMod (creates TPhVMESubDetEventData objects using the VMEMap from the DB).
pcal_onlmonitor_setup.C - Contains two TPhPCALOnlClientMod's one each for PCAL-P and PCAL-N. The trigger channels are not used in normal event processing. This is part of the online monitor (NOT the event display) which checks for missing VME data as well as ADC values out of range which usually signal latchup. This modules also talks to the central alarmer.
pcal_pedcalc_setup.C - Like vme_unpack_setup.C, this contains TPhVMEInitMod and TPhVMEUnpackerMod. It also has TPhPCALPedMod (fills and fits histograms to get pedestals) and TPhPCALCalibSaveMod (write the peds to file and the DB).
This link will give a list of all the db tables owned by ASSEMBLY including those for attenuation length, HV, and VMEMap. Search for PCAL or VME to see the tables used for this detector. This link will list the db tables owned by PHOFFLINE which includes calibrations (pedestals and gains) under VMECALIBRATIONS. More info on the db is available here.