40 if -1!=t.find(
"LArRampP"):
42 for obj_i
in obj.m_vRamp:
43 obj_str = obj_str+str(obj_i)+
' '
44 print(
"ramp = ", obj_str)
47 elif -1!=t.find(
"LArShapeP"):
49 for obj_i
in obj.m_vShape :
50 obj_str = obj_str+str(obj_i)+
' '
51 print(
"LArShape = ", obj_str)
53 for obj_i
in obj.m_vShapeDer :
54 obj_str = obj_str+str(obj_i)+
' '
55 print(
"LArShapeDer = ", obj_str)
57 elif -1!=t.find(
"LArPedestalP"):
59 for obj_i
in obj.m_vPedestal:
60 obj_str = obj_str+str(obj_i)+
' '
61 print(
"Pedestal = ", obj_str)
64 for obj_i
in obj.m_vPedestalRMS:
65 obj_str = obj_str+str(obj_i)+
' '
66 print(
"PedestalRMS = ", obj_str)
68 elif -1!=t.find(
"LArAutoCorrP"):
70 for obj_i
in obj.m_vAutoCorr:
71 obj_str = obj_str+str(obj_i)+
' '
72 print(
"AutoCorr = ", obj_str)
74 elif -1!=t.find(
"LArDAC2uAP"):
76 print(
"DAC2uA = ", obj.m_DAC2uA)
78 elif -1!=t.find(
"LArfSamplP"):
80 print(
"fSampl = ", obj.m_fSampl)
82 elif -1!=t.find(
"LAruA2MeVP"):
83 print(
"uA2MeV = ", obj.m_uA2MeV)
85 elif -1!=t.find(
"LArNoiseP") :
86 print(
"Noise = ", obj.m_Noise)
88 elif -1!=t.find(
"LArMinBiasP") :
89 print(
"MinBias = ", obj.m_MinBiasRMS)
91 elif -1!=t.find(
"LArMphysOverMcalP") :
92 print(
"MphysOverMcal = ", obj.m_MphysOverMcal)
94 elif -1!=t.find(
"LArOFCP") :
96 for obj_i
in obj.m_vOFC_a:
97 print(
" delay=",delay)
101 obj_str = obj_str + str(obj_j) +
' '
102 print(
" OFC_a = ", obj_str)
105 for obj_j
in obj.m_vOFC_b[delay]:
106 obj_str = obj_str + str(obj_j) +
' '
107 print(
" OFC_b = ", obj_str)
111 elif -1!=t.find(
"LArCaliWaveVec") :
113 print(
" DAC_0 = ", wave.getDAC(),
" Dt=", wave.getDt())
117 for obj_i
in wave.getWave():
118 obj_str = obj_str + str(i) +
' ' + str(obj_i) +
' '
120 print(
" Wave = ", obj_str)
132 if len(ListofType) != len(ListofKey) :
133 print(
" ERROR: Type and Key not the same length")
136 import AthenaPython.PyAthena
as PyAthena
137 detStore = PyAthena.py_svc(
'StoreGateSvc/DetectorStore')
141 for i
in range(len(ListofType)):
149 print(
"Cannot get ",typ.__name__,
" Container")
154 container = detStore.retrieve(typ,key)
162 caliWave = -1!=key.find(
"CaliWave")
165 for gain
in range(container.minGain(), container.minGain()+container.nGains()):
166 print(
" Accessing ",key,
" gain = ", gain)
170 for obj,id
in container.conditionsIter(gain):
171 ft = self.
onlineID.feedthrough_name(id)
173 if ( (
not caliWave)
and (
not obj.isEmpty()) )
or (caliWave
and len(obj)!=0):
176 str_id1 = self.
onlineID.print_to_string(id)
180 str_id2 = self.
onlineID.print_to_string(off_id)
183 print(
" disconnected channel" )
187 print(n,
" ",key,
" accessed" )
188 keys = FeedThroughs.keys()
190 print(
" Feedthroughs ",keys )
193 print(
" accessing ",key,
" failed ")
194 typ, value, traceBack = sys.exc_info()
196 traceback.print_exc()
205 if operator.isNumberType(obj):
207 print(tab, objName,
" = ", obj)
211 if objType.__name__ ==
'MethodProxy':
221 if operator.isNumberType(obj):
222 print(
"obj type = ",objType.__name__)
224 print(tab, objName,
" = ", obj)
226 print(
"obj type =",objType.__name__)
229 if objType.__name__.find(
'vector') == 0:
231 elif hasattr(obj,
'begin')
and hasattr(obj,
'end')
and hasattr(obj,
'size'):
245 for attrName
in attrNames:
247 if attrName.find(
"m_") == 0
or attrName.find(
"get") == 0:
249 attr = getattr(obj, attrName)
251 print(
"Could not get attr", attrName)