Public Member Functions | |
def | __init__ |
def | generate |
def | get_kwds |
def | parse_etags |
def | print_etags |
def | print_tags |
def | tmpl_etags |
def | tmpl_tags |
def | write |
Public Attributes | |
author | |
config | |
date | |
debug | |
not_in_dir | |
pname | |
tdir | |
tmpl | |
AbstractPkg takes care how to generate code from template/PKG package area. The PKG can be any directory which may include any types of files, e.g. C++ (.cc), python (.py), etc. This class relies on specific logic which we outline here: - each template may use tags defined with double underscores enclosure, e.g. __class__, __record__, etc. - each template may have example tags, such tags should start with @example_. While processing template user may choose to strip them off or keep the code behind those tags - in addition user may specify pure python code which can operate with user defined tags. This code snipped should be enclosed with #python_begin and #python_end lines which declares start and end of python block
def pkg.AbstractPkg.generate | ( | self | ) |
Definition at line 158 of file pkg.py.
References DTDigiToRawModule.debug, CSCRPCData.debug, ALIUtils.debug, CSCDCCUnpacker.debug, CSCTMBScope.debug, BxNumberFilter.debug, DTDigiToRaw.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTriggerCheck.debug, IsolatedParticlesGeneratedJets.debug, CSCDCCEventData.debug, DTTPDeadWriter.debug, DTTTrigWriter.debug, SiPixelDigiToRaw.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, LumiblockFilter.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTAlbertoBenvenutiTask.debug, DTTTrigCalibration.debug, DTEfficiencyTask.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, HCALResponse.debug, DTDigiForNoiseTask.debug, DTChamberEfficiencyTask.debug, DTNoiseTest.debug, DTTMax.debug, DTChamberEfficiency.debug, CSCCLCTData.debug, DTVDriftCalibration.debug, PixelDataFormatter.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, BaseParticlePropagator.debug, RPCEfficiency.debug, CSCEventData.debug, CSCTMBHeader.debug, CSCALCTTrailer.debug, AlCaHOCalibProducer.debug, CSCALCTHeader.debug, spr.find(), pkg.AbstractPkg.get_kwds(), join(), pkg.AbstractPkg.not_in_dir, pkg.AbstractPkg.pname, python.rootplot.root2matplotlib.replace(), split, pkg.AbstractPkg.tdir, pkg.AbstractPkg.tmpl, ora::PVectorWriter.write(), pos::PixelConfig.write(), Json::Writer.write(), ora::IBlobStreamingService.write(), AlignmentCorrelationsIO.write(), FileBlob.write(), edm::RunLumiEntryInfo.write(), edm::EventEntryInfo.write(), ora::IRelationalWriter.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), edm::AsciiOutputModule.write(), ora::QueryableVectorWriter.write(), cond::BlobStreamingService.write(), ExTestEcalChannelStatusAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), KalmanAlignmentDataCollector.write(), HcalRespCorrsPopConAnalyzer.write(), HcalTimingParamsPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalLutMetadataPopConAnalyzer.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalCovarianceMatricesPopConAnalyzer.write(), ora::CArrayWriter.write(), HcalValidationCorrsPopConAnalyzer.write(), ora::OraPtrWriter.write(), HcalRecoParamsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), MultiFileBlob.write(), CastorChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), CastorPedestalsPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), HcalCholeskyMatricesPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), HcalDcsValuesPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), edm::RunAuxiliary.write(), HcalZDCLowGainFractionsPopConAnalyzer.write(), edm::Parentage.write(), cond::TBufferBlobStreamingService.write(), ora::UniqueRefWriter.write(), edm::EventEntryDescription.write(), SiPixelConfigWriter.write(), AlignmentParametersIO.write(), RawEventOutputModuleForBU< Consumer >.write(), AlignmentUserVariablesIO.write(), Json::FastWriter.write(), edm::ProvenanceCheckerOutputModule.write(), ora::STLContainerWriter.write(), SiStripConfigWriter.write(), edm::LuminosityBlockAuxiliary.write(), edm::ProductProvenance.write(), popcon::PopConAnalyzer< S >.write(), edm::GetProductCheckerOutputModule.write(), ora::ObjectWriter.write(), popcon::PopCon.write(), edm::ModuleDescription.write(), ora::PrimitiveWriter.write(), MuonAlignmentOutputXML.write(), RootStreamBuffer.write(), electronCompare.flushfile.write(), l1t::LUT.write(), electronStore.flushfile.write(), ora::OraReferenceWriter.write(), ora::InlineCArrayWriter.write(), ora::DependentClassWriter.write(), ora::BlobWriter.write(), cond::RootOutputArchive.write(), edm::EventAuxiliary.write(), CSCPairResidualsConstraint.write(), edmplugin::CacheParser.write(), DDStreamer.write(), ora::NamedRefWriter.write(), XMLDOMBlock.write(), ora::ITokenWriter.write(), Benchmark.write(), edm::BranchDescription.write(), XMLDocument.write, edm::Provenance.write(), Json::StyledWriter.write(), MuonResidualsTwoBin.write(), edm::FileInPath.write(), pkg.AbstractPkg.write(), cond::PoolTokenWriter.write(), edm::ProductHolderBase.write(), Json::StyledStreamWriter.write(), amc13::Packet.write(), XMLProcessor.write(), esMonitoring.ElasticReport.write(), DQMRootOutputModule.write(), esMonitoring.History.write(), edm::OutputModule.write(), MuonResidualsFitter.write(), edm::one::OutputModuleBase.write(), and esMonitoring.JsonInput.write().
def pkg.AbstractPkg.get_kwds | ( | self | ) |
Definition at line 142 of file pkg.py.
References pkg.AbstractPkg.author, pkg.AbstractPkg.date, DTDigiToRawModule.debug, CSCRPCData.debug, ALIUtils.debug, CSCDCCUnpacker.debug, CSCTMBScope.debug, BxNumberFilter.debug, DTDigiToRaw.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTriggerCheck.debug, CSCDCCEventData.debug, DTTPDeadWriter.debug, IsolatedParticlesGeneratedJets.debug, DTTTrigWriter.debug, SiPixelDigiToRaw.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, LumiblockFilter.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTAlbertoBenvenutiTask.debug, DTEfficiencyTask.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, HCALResponse.debug, DTDigiForNoiseTask.debug, DTChamberEfficiencyTask.debug, DTNoiseTest.debug, DTTMax.debug, DTChamberEfficiency.debug, CSCCLCTData.debug, DTVDriftCalibration.debug, PixelDataFormatter.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, BaseParticlePropagator.debug, RPCEfficiency.debug, CSCEventData.debug, CSCTMBHeader.debug, CSCALCTTrailer.debug, AlCaHOCalibProducer.debug, CSCALCTHeader.debug, and pkg.AbstractPkg.pname.
Referenced by pkg.AbstractPkg.generate().
def pkg.AbstractPkg.parse_etags | ( | self, | |
line | |||
) |
Determine either skip or keep given line based on class tags meta-strings
Definition at line 95 of file pkg.py.
References pkg.AbstractPkg.tmpl_etags().
Referenced by pkg.AbstractPkg.write().
def pkg.AbstractPkg.print_etags | ( | self | ) |
def pkg.AbstractPkg.print_tags | ( | self | ) |
def pkg.AbstractPkg.tmpl_etags | ( | self | ) |
Definition at line 52 of file pkg.py.
References pkg.AbstractPkg.tdir, and pkg.AbstractPkg.tmpl.
Referenced by pkg.AbstractPkg.parse_etags(), and pkg.AbstractPkg.print_etags().
def pkg.AbstractPkg.tmpl_tags | ( | self | ) |
Definition at line 74 of file pkg.py.
References utils.parse_word(), pkg.AbstractPkg.tdir, and pkg.AbstractPkg.tmpl.
Referenced by pkg.AbstractPkg.print_tags().
def pkg.AbstractPkg.write | ( | self, | |
fname, | |||
tmpl_name, | |||
kwds | |||
) |
Definition at line 115 of file pkg.py.
References DTDigiToRawModule.debug, CSCRPCData.debug, CSCDCCUnpacker.debug, ALIUtils.debug, CSCTMBScope.debug, BxNumberFilter.debug, DTDigiToRaw.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTriggerCheck.debug, IsolatedParticlesGeneratedJets.debug, CSCDCCEventData.debug, DTTPDeadWriter.debug, DTTTrigWriter.debug, SiPixelDigiToRaw.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, DTNoiseComputation.debug, LumiblockFilter.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTAlbertoBenvenutiTask.debug, DTEfficiencyTask.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, HCALResponse.debug, DTDigiForNoiseTask.debug, DTChamberEfficiencyTask.debug, DTNoiseTest.debug, DTTMax.debug, DTChamberEfficiency.debug, CSCCLCTData.debug, DTVDriftCalibration.debug, PixelDataFormatter.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, BaseParticlePropagator.debug, RPCEfficiency.debug, CSCEventData.debug, CSCTMBHeader.debug, CSCALCTTrailer.debug, AlCaHOCalibProducer.debug, CSCALCTHeader.debug, utils.functor(), and pkg.AbstractPkg.parse_etags().
Referenced by pkg.AbstractPkg.generate().
pkg.AbstractPkg.author |
Definition at line 48 of file pkg.py.
Referenced by pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.date |
Definition at line 49 of file pkg.py.
Referenced by pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.debug |
Definition at line 46 of file pkg.py.
Referenced by rrapi.RRApi.dprint(), pkg.AbstractPkg.generate(), rrapi.RRApi.get(), pkg.AbstractPkg.get_kwds(), and pkg.AbstractPkg.write().
pkg.AbstractPkg.not_in_dir |
Definition at line 50 of file pkg.py.
Referenced by pkg.AbstractPkg.generate().
pkg.AbstractPkg.pname |
Definition at line 44 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), and pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.tdir |
Definition at line 47 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), pkg.AbstractPkg.tmpl_etags(), and pkg.AbstractPkg.tmpl_tags().
pkg.AbstractPkg.tmpl |
Definition at line 45 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), pkg.AbstractPkg.tmpl_etags(), and pkg.AbstractPkg.tmpl_tags().