Functions | |
def | pack |
def | packToString |
def | timeStamptoDate |
def | timeStamptoUTC |
def | unpack |
def | unpackFromString |
def | unpackLumiid |
Some helper classes to convert conditions time units back and forth
def timeUnitHelper.pack | ( | high, | |
low | |||
) |
pack high,low 32bit unsigned int to one unsigned 64bit long long Note:the print value of result number may appear signed, if the sign bit is used.
Definition at line 3 of file timeUnitHelper.py.
Referenced by packToString(), L1MuGMTLFDeltaEtaLUT.TheLookupFunction(), and L1MuGMTLFCOUDeltaEtaLUT.TheLookupFunction().
def timeUnitHelper.packToString | ( | high, | |
low | |||
) |
pack high,low 32bit unsigned int to one unsigned 64bit long long in string format Note:the print value of result number may appear signed, if the sign bit is used.
Definition at line 10 of file timeUnitHelper.py.
References pack().
def timeUnitHelper.timeStamptoDate | ( | i | ) |
convert 64bit timestamp to local date in string format
Definition at line 29 of file timeUnitHelper.py.
References unpack().
def timeUnitHelper.timeStamptoUTC | ( | i | ) |
convert 64bit timestamp to Universal Time in string format
Definition at line 35 of file timeUnitHelper.py.
References unpack().
def timeUnitHelper.unpack | ( | i | ) |
unpack 64bit unsigned long long into 2 32bit unsigned int, return tuple (high,low)
Definition at line 17 of file timeUnitHelper.py.
References reco.return().
Referenced by pat::PackedGenParticle.dxy(), pat::PackedGenParticle.dz(), timeStamptoDate(), timeStamptoUTC(), CSCTFEvent.unpack(), unpackFromString(), and unpackLumiid().
def timeUnitHelper.unpackFromString | ( | i | ) |
unpack 64bit unsigned long long in string format into 2 32bit unsigned int, return tuple(high,low)
Definition at line 24 of file timeUnitHelper.py.
References unpack().
def timeUnitHelper.unpackLumiid | ( | i | ) |
unpack 64bit lumiid to dictionary {'run','lumisection'}
Definition at line 42 of file timeUnitHelper.py.
References unpack().
Referenced by uploader.main().