Functions | |
def | pack (high, low) |
def | packToString (high, low) |
def | timeStamptoDate (i) |
def | timeStamptoUTC (i) |
def | unpack (i) |
def | unpackFromString (i) |
def | unpackLumiid (i) |
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 pat::MET::PackedMETUncertainty.add(), CmsShowMainFrame.getSummaryViewWeight(), BeamSpotWorkflow.main(), reco::TrackResiduals.pack_pull(), reco::TrackResiduals.pack_residual(), pat::MET::PackedMETUncertainty.PackedMETUncertainty(), packToString(), pat::MET::PackedMETUncertainty.set(), CmsShowMainFrame.setSummaryViewWeight(), L1MuGMTLFCOUDeltaEtaLUT.TheLookupFunction(), and L1MuGMTLFDeltaEtaLUT.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::MET::PackedMETUncertainty.add(), edmStreamStallGrapher.consolidateContiguousBlocks(), pat::MET::PackedMETUncertainty.dpx(), pat::MET::PackedMETUncertainty.dpy(), pat::MET::PackedMETUncertainty.dsumEt(), reco::PatternSet< N >.fill(), pat::PackedCandidate.pack(), pat::MET::PackedMETUncertainty.PackedMETUncertainty(), TreeCrawler.mymf.scan_opcodes_25(), pat::MET::PackedMETUncertainty.set(), timeStamptoDate(), timeStamptoUTC(), CSCSPEvent.unpack(), CSCTFEvent.unpack(), reco::TrackResiduals.unpack_pull(), reco::TrackResiduals.unpack_residual(), 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 createfilelist.int, and 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(), and BeamSpotWorkflow.main().