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 | |
rcsid | |
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 160 of file pkg.py.
References CSCRPCData.debug, DTDigiToRawModule.debug, CSCTMBScope.debug, ALIUtils.debug, CSCDCCUnpacker.debug, BxNumberFilter.debug, EgammaProbeSelector.debug, DTDigiToRaw.debug, DTTTrigCorrectionFirst.debug, CSCDCCEventData.debug, pkg.AbstractPkg.debug, DTSegmentsTask.debug, DTDDUUnpacker.debug, IsolatedParticlesGeneratedJets.debug, SiPixelDigiToRaw.debug, DTTriggerCheck.debug, DTTPDeadWriter.debug, SiPixelRawToDigi.debug, DTTTrigWriter.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, DTEfficiencyTask.debug, HCALResponse.debug, LumiblockFilter.debug, DTNoiseComputation.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTAlbertoBenvenutiTask.debug, DTTTrigCalibration.debug, DTDigiForNoiseTask.debug, CSCCLCTData.debug, DTChamberEfficiencyTask.debug, DTChamberEfficiency.debug, DTTMax.debug, PixelDataFormatter.debug, CSCTMBData.debug, DTVDriftCalibration.debug, DTNoiseTest.debug, DTTTrigSyncFromDB.debug, DTTTrigSyncTOFCorr.debug, CSCALCTTrailer.debug, CSCEventData.debug, CSCTMBHeader.debug, BaseParticlePropagator.debug, CSCALCTHeader.debug, RPCEfficiency.debug, AlCaHOCalibProducer.debug, RPCEfficiencySecond.debug, spr.find(), pkg.AbstractPkg.get_kwds(), join(), pkg.AbstractPkg.not_in_dir, pkg.AbstractPkg.pname, linker.replace(), split, pkg.AbstractPkg.tdir, pkg.AbstractPkg.tmpl, diffTreeTool.tree, ora::PVectorWriter.write(), pos::PixelConfig.write(), FileBlob.write(), ora::IBlobStreamingService.write(), AlignmentCorrelationsIO.write(), edm::RunLumiEntryInfo.write(), edm::AsciiOutputModule.write(), edm::EventEntryInfo.write(), ora::IRelationalWriter.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), ora::QueryableVectorWriter.write(), cond::BlobStreamingService.write(), MultiFileBlob.write(), ExTestEcalChannelStatusAnalyzer.write(), edm::ConstBranchDescription.write(), EcalUnpackerWorkerBase.write(), HcalTimingParamsPopConAnalyzer.write(), HcalValidationCorrsPopConAnalyzer.write(), KalmanAlignmentDataCollector.write(), HcalLutMetadataPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), ora::CArrayWriter.write(), ora::OraPtrWriter.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalRecoParamsPopConAnalyzer.write(), HcalDcsValuesPopConAnalyzer.write(), CastorChannelQualityPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), CastorPedestalsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), cond::TBufferBlobStreamingService.write(), HcalCholeskyMatricesPopConAnalyzer.write(), HcalCovarianceMatricesPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalRespCorrsPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), edm::RunAuxiliary.write(), edm::Parentage.write(), edm::ProvenanceCheckerOutputModule.write(), ora::UniqueRefWriter.write(), edm::EventEntryDescription.write(), AlignmentParametersIO.write(), ESUnpackerWorker.write(), AlignmentUserVariablesIO.write(), edm::LuminosityBlockAuxiliary.write(), SiPixelConfigWriter.write(), edm::GetProductCheckerOutputModule.write(), ora::STLContainerWriter.write(), edm::ProductProvenance.write(), popcon::PopConAnalyzer< S >.write(), SiStripConfigWriter.write(), ora::ObjectWriter.write(), EcalUnpackerWorker.write(), MuonAlignmentOutputXML.write(), ora::PrimitiveWriter.write(), edm::ModuleDescription.write(), electronCompare.flushfile.write(), stor::DbFileHandler.write(), ora::OraReferenceWriter.write(), ora::InlineCArrayWriter.write(), electronStore.flushfile.write(), ora::DependentClassWriter.write(), ora::BlobWriter.write(), popcon::PopCon.write(), CSCPairResidualsConstraint.write(), edm::EventAuxiliary.write(), DDStreamer.write(), edmplugin::CacheParser.write(), ora::NamedRefWriter.write(), XMLDOMBlock.write(), ora::ITokenWriter.write(), Benchmark.write(), XMLDocument.write, edm::BranchDescription.write(), stor::DQMEventConsumerRegistrationInfo.write(), stor::EventConsumerRegistrationInfo.write(), edm::Provenance.write(), MuonResidualsTwoBin.write(), edm::FileInPath.write(), pkg.AbstractPkg.write(), cond::PoolTokenWriter.write(), edm::ProductHolderBase.write(), XMLProcessor.write(), DQMRootOutputModule.write(), RPCDBPopConAnalyzer.write(), edm::OutputModule.write(), edm::SubProcess.write(), and MuonResidualsFitter.write().
def pkg.AbstractPkg.get_kwds | ( | self | ) |
Definition at line 143 of file pkg.py.
References pkg.AbstractPkg.author, pkg.AbstractPkg.date, CSCRPCData.debug, DTDigiToRawModule.debug, CSCTMBScope.debug, CSCDCCUnpacker.debug, ALIUtils.debug, BxNumberFilter.debug, EgammaProbeSelector.debug, DTDigiToRaw.debug, CSCDCCEventData.debug, DTTTrigCorrectionFirst.debug, pkg.AbstractPkg.debug, DTSegmentsTask.debug, DTDDUUnpacker.debug, IsolatedParticlesGeneratedJets.debug, SiPixelDigiToRaw.debug, DTTPDeadWriter.debug, DTTriggerCheck.debug, SiPixelRawToDigi.debug, DTTTrigWriter.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, DTEfficiencyTask.debug, HCALResponse.debug, LumiblockFilter.debug, DTNoiseComputation.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, DTROS25Unpacker.debug, DTAlbertoBenvenutiTask.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTDigiForNoiseTask.debug, CSCCLCTData.debug, DTChamberEfficiencyTask.debug, DTChamberEfficiency.debug, DTTMax.debug, PixelDataFormatter.debug, CSCTMBData.debug, DTNoiseTest.debug, DTVDriftCalibration.debug, DTTTrigSyncFromDB.debug, DTTTrigSyncTOFCorr.debug, CSCALCTTrailer.debug, CSCEventData.debug, CSCTMBHeader.debug, BaseParticlePropagator.debug, CSCALCTHeader.debug, RPCEfficiency.debug, AlCaHOCalibProducer.debug, RPCEfficiencySecond.debug, pkg.AbstractPkg.pname, and pkg.AbstractPkg.rcsid.
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 96 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 53 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 75 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 116 of file pkg.py.
References CSCRPCData.debug, DTDigiToRawModule.debug, CSCTMBScope.debug, CSCDCCUnpacker.debug, ALIUtils.debug, BxNumberFilter.debug, DTDigiToRaw.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, CSCDCCEventData.debug, pkg.AbstractPkg.debug, DTDDUUnpacker.debug, DTSegmentsTask.debug, IsolatedParticlesGeneratedJets.debug, SiPixelDigiToRaw.debug, DTTPDeadWriter.debug, DTTriggerCheck.debug, SiPixelRawToDigi.debug, DTTTrigWriter.debug, DTT0Calibration.debug, DTT0CalibrationNew.debug, DTOccupancyPoint.debug, DTEfficiencyTask.debug, HCALResponse.debug, LumiblockFilter.debug, DTNoiseComputation.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, DTROS25Unpacker.debug, DTAlbertoBenvenutiTask.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTDigiForNoiseTask.debug, CSCCLCTData.debug, DTChamberEfficiencyTask.debug, DTChamberEfficiency.debug, DTTMax.debug, PixelDataFormatter.debug, CSCTMBData.debug, DTVDriftCalibration.debug, DTNoiseTest.debug, DTTTrigSyncFromDB.debug, DTTTrigSyncTOFCorr.debug, CSCALCTTrailer.debug, CSCEventData.debug, CSCTMBHeader.debug, BaseParticlePropagator.debug, CSCALCTHeader.debug, RPCEfficiency.debug, AlCaHOCalibProducer.debug, RPCEfficiencySecond.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 pkg.AbstractPkg.generate(), pkg.AbstractPkg.get_kwds(), and pkg.AbstractPkg.write().
pkg.AbstractPkg.not_in_dir |
Definition at line 51 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.rcsid |
Definition at line 50 of file pkg.py.
Referenced by 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().