This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gempython.gemplotting.mapping.chamberInfo import chamber_config | |
from gempython.utils.nesteddict import nesteddict as ndict | |
import ROOT as r | |
dict_Histos = ndict() | |
for link,chamber in chamber_config.iteritems(): | |
dict_Histos[chamber] = r.TH1F("h_{0}_dV".format(chamber),"Voltage Fluctuations for {0}".format(chamber),500,-0.5,499.5) | |
dict_Histos[chamber].Sumw2() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registers2apply = { | |
#Pulse Stretch | |
"CFG_PULSE_STRETCH":3, | |
#Provide a slight offset to the ZCC comparator baseline voltage | |
"CFG_THR_ZCC_DAC":10, | |
#Medium VFAT3 preamp gain | |
"CFG_RES_PRE":2, | |
"CFG_CAP_PRE":1, | |
#Comparator Mode - CFD | |
"CFG_PT":0xf, |