116 def checkClass(name,version,versionsToChecksums):
118 c = ROOT.TClass.GetClass(name)
120 raise RuntimeError(
"failed to load dictionary for class '"+name+
"'")
121 temp =
"checkTheClass.f(" +
'"' + name +
'"' +
");" 122 retval = ROOT.gROOT.ProcessLine(temp)
124 raise RuntimeError(
"TClass::GetCheckSum: Failed to load dictionary for base class. See previous Error message")
125 classChecksum = c.GetCheckSum()
126 classVersion = c.GetClassVersion()
129 if version != classVersion:
130 return (errorRootDoesNotMatchClassDef,classVersion,classChecksum)
135 for v,cs
in versionsToChecksums:
138 if classChecksum != cs:
139 return (errorMustUpdateClassVersion,classVersion,classChecksum)
141 if not found
and classVersion != 0:
142 return (errorMustAddChecksum,classVersion,classChecksum)
143 return (noError,classVersion,classChecksum)
144 def checkClass(name, version, versionsToChecksums)