CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
ztail Namespace Reference

Classes

class  Decoder
 

Functions

def strip_gzip_header
 

Variables

tuple args = parser.parse_args()
 
string BLOCK_MAGIC = "\x00\x00\xFF\xFF"
 
tuple d = Decoder(args.file, args.n)
 
int DECOMPRESS_BUF_SIZE = 4
 
string ENDLINE_MAGIC = "\n"
 
tuple parser = argparse.ArgumentParser(description='tail, but for gzip files (with Z_FULL_SYNC)')
 

Function Documentation

def ztail.strip_gzip_header (   body)

Definition at line 16 of file ztail.py.

Referenced by ztail.Decoder.decode().

16 
17 def strip_gzip_header(body):
18  assert body[0:2] == "\x1f\x8b"
19  method, flags, mtime = struct.unpack("<BBIxx", body[2:10])
20 
21  FHCRC = 0x02
22  FEXTRA = 0x04
23  FNAME = 0x08
24  FCOMMENT = 0x10
25 
26  i = 10
27 
28  if flags & FEXTRA:
29  size, = struct.unpack("<H", body[i:i+2])
30  i += size + 2
31 
32  def skip_until_zero(ix):
33  while body[ix] != '\x00': ix += 1
34  return ix + 1
35 
36  if flags & FNAME: i = skip_until_zero(i)
37  if flags & FCOMMENT: i = skip_until_zero(i)
38  if flags & FHCRC: i += 2
39 
40  body = body[i:]
41  return body
def strip_gzip_header
Definition: ztail.py:16

Variable Documentation

tuple ztail.args = parser.parse_args()

Definition at line 149 of file ztail.py.

string ztail.BLOCK_MAGIC = "\x00\x00\xFF\xFF"

Definition at line 11 of file ztail.py.

tuple ztail.d = Decoder(args.file, args.n)

Definition at line 151 of file ztail.py.

Referenced by GenParticleDecaySelector.add(), FWCaloDataHistProxyBuilder.addEntryToTEveCaloData(), GEMSimTrackMatch.analyze(), RawToText.analyze(), TPGCheck.analyze(), fastmath.atan2r(), edm.binary_search_all(), GEMPadDigiProducer.buildPads(), VFATFrame.calculateCRC(), TtDecayChannelSelector.checkSum(), funct::Difference< FractionStruct< a, b >, FractionStruct< c, d > >.combine(), convert32(), convert64(), d2str(), CSCCLCTData.dataWord(), reco::CompositeCandidate.daughter(), ParticleDecayDrawer.decay(), edm::reftobase::VectorHolder< T, REFVECTOR >::const_iterator_imp_specific.decrease(), PhysicsTools::Spline::Segment.deriv(), matching.digi_bx(), matching.digi_channel(), matching.digi_dphi(), matching.digi_id(), matching.digi_pattern(), matching.digi_quality(), matching.digi_type(), FWEveDigitSetScalableMarkerGL.DirectDraw(), FWFFMetadataManager.doUpdate(), RPCEfficiencyShiftHisto.dqmEndJob(), DTConfigLUTs.DTConfigLUTs(), KalmanVertexTrackCompatibilityEstimator< N >.estimate(), CandCommonVertexFitterBase.fill(), PFCandCommonVertexFitterBase.fill(), ME0DigiPreRecoModel.fillDigis(), GEMDigiModel.fillDigis(), edm.find_in_all(), LinearFit.fit(), L1GctInternHFData.fromConcBitCounts(), L1GctInternHFData.fromConcRingSums(), L1GctInternJetData.fromEmulator(), L1GctInternJetData.fromGctTrigObject(), L1GctInternJetData.fromJetCluster(), L1GctInternJetData.fromJetClusterMinimal(), L1GctInternJetData.fromJetPreCluster(), L1GctInternHFData.fromWheelBitCounts(), L1GctInternHFData.fromWheelRingSums(), GammaContinuedFraction(), PairProductionSimulator.gbteth(), BremsstrahlungSimulator.gbteth(), CSCMonitorObject.GetBinContent(), CSCMonitorObject.GetBinError(), SimG4HcalHitJetFinder.getClusters(), CSCMonitorObject.GetEntries(), LMFIOV.getParameters(), pftools::ParticleDeposit.getRecEnergy(), DataReducer< T >.getReducedDataList(), pftools::ParticleDeposit.getTruthEnergy(), ecalpyutils.hashedIndex(), ecalpyutils.hashedIndexEE(), HcalRawDataClient.hashup(), HelixBarrelPlaneCrossing2OrderLocal.HelixBarrelPlaneCrossing2OrderLocal(), edm::reftobase::VectorHolder< T, REFVECTOR >::const_iterator_imp_specific.increase(), FileInPath.init(), matching.is_valid(), edm.isFinite(), ecalpyutils.ism(), linearFit(), PixelEndcapLinkMaker.links(), PixelBarrelLinkMaker.links(), Plane.localZclamped(), SiStripApvShotCleaner.loop(), edm.lower_bound_all(), TFileDirectory.make(), GEMRecHitMatcher.matchRecHitsToSimTrack(), MuonSimHitNumberingScheme.MuonSimHitNumberingScheme(), MuonSlaveSD.MuonSlaveSD(), RPCMultiplicityTest.myBooker(), DTDBDataHandle.nearestInt(), TrackClassFilter.operator()(), FFTJetCorrectorTransient.operator*=(), reco::candidate::iterator.operator+=(), reco::candidate::const_iterator.operator+=(), Selection< C, Selector, StoreContainer >::const_iterator.operator+=(), reco::candidate::iterator.operator-=(), reco::candidate::const_iterator.operator-=(), Selection< C, Selector, StoreContainer >::const_iterator.operator-=(), reco::utilsNew::CandMatcher< C >.operator[](), l1t::stage1::RCTEmRegionPacker.pack(), NAStrangeDensity.ParticleNumberDensity(), HelixBarrelPlaneCrossing2OrderLocal.positionOnly(), ParticleTreeDrawer.printDecay(), TextToRaw.produce(), MuonSegmentProducer.produce(), GEMRecHitMatcher.recHitMeanPosition(), VertexFitterManager.registerFitter(), VertexRecoManager.registerReconstructor(), FW3DViewDistanceMeasureTool.resetAction(), BeamHaloPairGenerator.run(), edm.search_all(), Booster.set(), AddFourMomenta.set(), DTConfigLUTs.setD(), L1DataEmulDigi.setData(), L1DataEmulDigi.setDEpair(), DDScope.setDepth(), RPCMuon.setDigiIdxVec(), AcceptJet.setEtaMax(), AcceptJet.setEtaMin(), AcceptJet.setPRecJetMax(), AcceptJet.setPRecJetMin(), AcceptJet.setPtRecJetMax(), AcceptJet.setPtRecJetMin(), L1DataEmulDigi.setRank(), AcceptJet.setRatioMax(), AcceptJet.setRatioMin(), pftools::ParticleDeposit.setRecEnergy(), RunDCSLVDat.setStatusForBarrel(), RunDCSLVDat.setStatusForEndcaps(), tracking::TempMeasurements.sortIndex(), TangentHelix.TangentHelix(), ThirdHitZPrediction.ThirdHitZPrediction(), two_joined_lines(), FWBoxRecHit.updateScale(), FWPFLegoRecHit.updateScale(), reco::TrackGhostTrackState.vertexStateOnGhostTrack(), and reco::TrackGhostTrackState.vertexStateOnMeasurement().

int ztail.DECOMPRESS_BUF_SIZE = 4

Definition at line 9 of file ztail.py.

string ztail.ENDLINE_MAGIC = "\n"

Definition at line 12 of file ztail.py.

tuple ztail.parser = argparse.ArgumentParser(description='tail, but for gzip files (with Z_FULL_SYNC)')

Definition at line 144 of file ztail.py.