Page History
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
pc = evt.getPhaseCavity() try: pcFitTime1 = pc.fFitTime1 pcFitTime2 = pc.fFitTime2 pcCharge1 = pc.fCharge1 pcCharge2 = pc.fCharge2 print "PhaseCavity: ", pcFitTime1, pcFitTime2, pcCharge1, pcCharge2 except : print "No Phase Cavity object found" |
Event code
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
def event(self, evt, env):
evrdata = evt.getEvrData("NoDetector-0|Evr-0")
for i in range (evrdata.numFifoEvents()):
print "Event code: ", evrdata.fifoEvent(i).EventCode
|
In the example above, the address of the EvrData object is given as "NoDetector-0|Evr-0". The address may be different in other cases, so make sure you have the correct address. If you don't know what it is, you can use 'pyxtcreader -vv <xtcfile> | less' to browse your xtcfile and look for it. Look for a lines with 'contains=EvrConfig_V' or 'contains=EvrData_V'. The address will be found on the same line in 'src=DetInfo(<address>)'
Encoder data (delay scanner)
...
Overview
Content Tools