Public Member Functions | |
def | __init__ (self, config=None) |
def | generate (self) |
def | get_kwds (self) |
def | parse_etags (self, line) |
def | print_etags (self) |
def | print_tags (self) |
def | tmpl_etags (self) |
def | tmpl_tags (self) |
def | write (self, fname, tmpl_name, kwds) |
Public Attributes | |
author | |
config | |
date | |
debug | |
not_in_dir | |
pname | |
tdir | |
tmpl | |
working_dir | |
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 DTDigiToRawModule.debug, CSCRPCData.debug, CSCDCCUnpacker.debug, ALIUtils.debug, CSCTMBScope.debug, crabFunctions.CrabController.debug, DTDigiToRaw.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, CSCDCCEventData.debug, DTTTrigWriter.debug, DTT0CalibrationRMS.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTOccupancyPoint.debug, util.rrapi.RRApi.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTEfficiencyTask.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, HCALResponse.debug, DTChamberEfficiencyTask.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, CSCALCTHeader.debug, crabFunctions.CrabTask.debug, spr.find(), pkg.AbstractPkg.get_kwds(), join(), pkg.AbstractPkg.not_in_dir, pkg.AbstractPkg.pname, edm.print(), python.rootplot.root2matplotlib.replace(), split, pkg.AbstractPkg.tdir, pkg.AbstractPkg.tmpl, pkg.AbstractPkg.working_dir, edm::ThreadSafeOutputFileStream.write(), Json::Writer.write(), AlignmentCorrelationsIO.write(), edm::RunLumiEntryInfo.write(), pos::PixelConfig.write(), FileBlob.write(), HcalSiPMParametersPopConAnalyzer.write(), HcalTPChannelParametersPopConAnalyzer.write(), AlignmentCorrelationsIORoot.write(), edm::EventEntryInfo.write(), HcalSiPMCharacteristicsPopConAnalyzer.write(), HcalTPParametersPopConAnalyzer.write(), SurveyOutput.write(), edm::AsciiOutputModule.write(), ExTestEcalChannelStatusAnalyzer.write(), HcalFrontEndMapPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalValidationCorrsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), personalPlayback.Applet.write(), HcalDcsValuesPopConAnalyzer.write(), HcalRecoParamsPopConAnalyzer.write(), MultiFileBlob.write(), CastorChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), CastorPedestalsPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalLutMetadataPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), HcalQIETypesPopConAnalyzer.write(), HcalRespCorrsPopConAnalyzer.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalTimingParamsPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), edm::RunAuxiliary.write(), HcalZDCLowGainFractionsPopConAnalyzer.write(), SiPixelConfigWriter.write(), AlignmentParametersIO.write(), edm::EventEntryDescription.write(), Json::FastWriter.write(), AlignmentUserVariablesIO.write(), edm::LuminosityBlockAuxiliary.write(), SiStripConfigWriter.write(), edm::ProductProvenance.write(), edm::GetProductCheckerOutputModule.write(), RawEventOutputModuleForBU< Consumer >.write(), popcon::PopConAnalyzer< S >.write(), edm::ProvenanceCheckerOutputModule.write(), edm::Parentage.write(), popcon::PopCon.write(), edm::ModuleDescription.write(), MuonAlignmentOutputXML.write(), l1t::LUT.write(), electronCompare.flushfile.write(), electronStore.flushfile.write(), edm::StableProvenance.write(), edm::EventAuxiliary.write(), CSCPairResidualsConstraint.write(), XMLDOMBlock.write(), edmplugin::CacheParser.write(), Benchmark.write(), edm::BranchDescription.write(), XMLDocument.write, uploads.output.write(), Json::StyledWriter.write(), edm::Provenance.write(), amc13::Packet.write(), ztee.GZipLog.write(), MuonResidualsTwoBin.write(), presentation.SubsectionBase.write(), DTWorkflow.DTWorkflow.write(), edm::FileInPath.write(), pkg.AbstractPkg.write(), Json::StyledStreamWriter.write(), edm::ProductResolverBase.write(), XMLProcessor.write(), esMonitoring.LineHistoryEnd.write(), DQMRootOutputModule.write(), MuonResidualsFitter.write(), esMonitoring.LineHistoryStart.write(), edm::OutputModule.write(), betterConfigParser.BetterConfigParser.write(), edm::one::OutputModuleBase.write(), edm::global::OutputModuleBase.write(), edm::limited::OutputModuleBase.write(), and querying.connection.write().
def pkg.AbstractPkg.get_kwds | ( | self | ) |
Definition at line 143 of file pkg.py.
References pkg.AbstractPkg.author, pkg.AbstractPkg.date, DTDigiToRawModule.debug, CSCRPCData.debug, CSCDCCUnpacker.debug, ALIUtils.debug, CSCTMBScope.debug, DTDigiToRaw.debug, crabFunctions.CrabController.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, CSCDCCEventData.debug, DTT0CalibrationRMS.debug, DTTTrigWriter.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTOccupancyPoint.debug, util.rrapi.RRApi.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTEfficiencyTask.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, HCALResponse.debug, DTChamberEfficiencyTask.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, CSCALCTHeader.debug, crabFunctions.CrabTask.debug, pkg.AbstractPkg.pname, and edm.print().
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 97 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 54 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 76 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 114 of file pkg.py.
References DTDigiToRawModule.debug, CSCRPCData.debug, CSCDCCUnpacker.debug, CSCTMBScope.debug, ALIUtils.debug, DTDigiToRaw.debug, crabFunctions.CrabController.debug, EgammaProbeSelector.debug, DTTTrigCorrectionFirst.debug, DTSegmentsTask.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, CSCDCCEventData.debug, DTTTrigWriter.debug, DTT0CalibrationRMS.debug, SiPixelRawToDigi.debug, DTDDUUnpacker.debug, DTT0Calibration.debug, DTOccupancyPoint.debug, util.rrapi.RRApi.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, DTTTrigSyncT0Only.debug, DTTTrigCalibration.debug, DTEfficiencyTask.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, HCALResponse.debug, DTChamberEfficiencyTask.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, CSCALCTHeader.debug, crabFunctions.CrabTask.debug, utils.functor(), and pkg.AbstractPkg.parse_etags().
Referenced by pkg.AbstractPkg.generate().
pkg.AbstractPkg.author |
Definition at line 49 of file pkg.py.
Referenced by pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.date |
Definition at line 50 of file pkg.py.
Referenced by pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.debug |
Definition at line 47 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 51 of file pkg.py.
Referenced by pkg.AbstractPkg.generate().
pkg.AbstractPkg.pname |
Definition at line 45 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), and pkg.AbstractPkg.get_kwds().
pkg.AbstractPkg.tdir |
Definition at line 48 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), pkg.AbstractPkg.tmpl_etags(), and pkg.AbstractPkg.tmpl_tags().
pkg.AbstractPkg.tmpl |
Definition at line 46 of file pkg.py.
Referenced by pkg.AbstractPkg.generate(), pkg.AbstractPkg.tmpl_etags(), and pkg.AbstractPkg.tmpl_tags().
pkg.AbstractPkg.working_dir |
Definition at line 52 of file pkg.py.
Referenced by pkg.AbstractPkg.generate().