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 159 of file pkg.py.
References geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, plottingOptions.BasePlottingOptions.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, genericValidation.GenericValidation.config, CSCOfflineClient.config, validateAlignments.ValidationBase.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, validateAlignments.ValidationJobMultiIOV.config, DigiComparisonTask.debug, TPComparisonTask.debug, ZDCTask.debug, HcalOfflineHarvesting.debug, HcalOnlineHarvesting.debug, HFRaddamTask.debug, LaserTask.debug, NoCQTask.debug, PedestalTask.debug, QIE10Task.debug, QIE11Task.debug, RecHitTask.debug, UMNioTask.debug, RawTask.debug, TPTask.debug, DigiTask.debug, LEDTask.debug, DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, DTDigiToRaw.debug, ALIUtils.debug, crabFunctions.CrabController.debug, DTSegmentsTask.debug, DTOccupancyEfficiency.debug, DTTTrigCorrectionFirst.debug, DTDDUUnpacker.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, DTTTrigWriter.debug, CSCDCCEventData.debug, DTT0CalibrationRMS.debug, SiPixelRawToDigi.debug, DTNoiseComputation.debug, DTOccupancyPoint.debug, DTTTrigSyncT0Only.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTEfficiencyTask.debug, DTT0Calibration.debug, DTTTrigCalibration.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, PPSAlignmentConfigESSource.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, DTChamberEfficiency.debug, FCDTask.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTVDriftCalibration.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, PixelDataFormatter.debug, DTTTrigSyncTOFCorr.debug, CSCTMBHeader.debug, CSCEventData.debug, BaseParticlePropagator.debug, CSCALCTTrailer.debug, CSCALCTHeader.debug, crabFunctions.CrabTask.debug, spr.find(), pkg.AbstractPkg.get_kwds(), join(), pkg.AbstractPkg.not_in_dir, pkg.AbstractPkg.pname, print(), python.rootplot.root2matplotlib.replace(), submitPVValidationJobs.split(), pkg.AbstractPkg.tdir, pkg.AbstractPkg.tmpl, pkg.AbstractPkg.working_dir, edm::ThreadSafeOutputFileStream.write(), Json::Writer.write(), AlignmentCorrelationsIO.write(), FRDOutputModule.write(), edm::RunAuxiliary.write(), edm::RunLumiEntryInfo.write(), pos::PixelConfig.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), ExTestEcalChannelStatusAnalyzer.write(), HcalTPParametersPopConAnalyzer.write(), HcalTPChannelParametersPopConAnalyzer.write(), HcalSiPMParametersPopConAnalyzer.write(), FileBlob.write(), HcalSiPMCharacteristicsPopConAnalyzer.write(), HcalFrontEndMapPopConAnalyzer.write(), edm::EventEntryInfo.write(), CastorPedestalsPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), HcalRecoParamsPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), HcalLutMetadataPopConAnalyzer.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), HcalQIETypesPopConAnalyzer.write(), HcalValidationCorrsPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalTimingParamsPopConAnalyzer.write(), HcalRespCorrsPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), CastorChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), HcalDcsValuesPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalZDCLowGainFractionsPopConAnalyzer.write(), edm::LuminosityBlockAuxiliary.write(), MultiFileBlob.write(), SiPixelConfigWriter.write(), personalPlayback.Applet.write(), edm::AsciiOutputModule.write(), SiStripConfigWriter.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliaryExtra.write(), AlignmentParametersIO.write(), AlignmentUserVariablesIO.write(), popcon::PopConAnalyzer< S >.write(), edm::ProductProvenance.write(), Json::FastWriter.write(), edm::EventEntryDescription.write(), edm::ModuleDescription.write(), popcon::PopCon.write(), edm::ProvenanceCheckerOutputModule.write(), edm::GetProductCheckerOutputModule.write(), edm::Parentage.write(), RawEventOutputModuleForBU< Consumer >.write(), MuonAlignmentOutputXML.write(), electronCompare.flushfile.write(), electronStore.flushfile.write(), edm::StableProvenance.write(), l1t::LUT.write(), XMLDOMBlock.write(), edmplugin::CacheParser.write(), Benchmark.write(), edm::EventAuxiliary.write(), edm::BranchDescription.write(), CSCPairResidualsConstraint.write(), uploads.output.write(), Json::StyledWriter.write(), edm::Provenance.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary.write(), evf::EvFOutputModule.write(), ztee.GZipLog.write(), amc13::Packet.write(), presentation.SubsectionBase.write(), edm::FileInPath.write(), MuonResidualsTwoBin.write(), DTWorkflow.DTWorkflow.write(), pkg.AbstractPkg.write(), Json::StyledStreamWriter.write(), edm::ProductResolverBase.write(), XMLProcessor.write(), esMonitoring.LineHistoryEnd.write(), MuonResidualsFitter.write(), esMonitoring.LineHistoryStart.write(), DQMRootOutputModule.write(), StraightTrackAlignment::RPSetPlots.write(), edm::global::OutputModuleBase.write(), betterConfigParser.BetterConfigParser.write(), edm::limited::OutputModuleBase.write(), edm::one::OutputModuleBase.write(), and querying.connection.write().
def pkg.AbstractPkg.get_kwds | ( | self | ) |
Definition at line 143 of file pkg.py.
References pkg.AbstractPkg.author, geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, plottingOptions.BasePlottingOptions.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, genericValidation.GenericValidation.config, CSCOfflineClient.config, validateAlignments.ValidationBase.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, validateAlignments.ValidationJobMultiIOV.config, pkg.AbstractPkg.date, DigiComparisonTask.debug, TPComparisonTask.debug, HcalOfflineHarvesting.debug, HcalOnlineHarvesting.debug, HFRaddamTask.debug, LaserTask.debug, NoCQTask.debug, PedestalTask.debug, QIE10Task.debug, QIE11Task.debug, RecHitTask.debug, UMNioTask.debug, ZDCTask.debug, RawTask.debug, TPTask.debug, DigiTask.debug, LEDTask.debug, DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, ALIUtils.debug, DTDigiToRaw.debug, crabFunctions.CrabController.debug, DTSegmentsTask.debug, DTOccupancyEfficiency.debug, DTTTrigCorrectionFirst.debug, DTDDUUnpacker.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, DTTTrigWriter.debug, DTT0CalibrationRMS.debug, CSCDCCEventData.debug, SiPixelRawToDigi.debug, DTNoiseComputation.debug, DTOccupancyPoint.debug, DTTTrigSyncT0Only.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTT0Calibration.debug, DTEfficiencyTask.debug, DTTTrigCalibration.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, PPSAlignmentConfigESSource.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, FCDTask.debug, DTChamberEfficiency.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTTTrigSyncFromDB.debug, DTVDriftCalibration.debug, CSCTMBData.debug, PixelDataFormatter.debug, DTTTrigSyncTOFCorr.debug, CSCTMBHeader.debug, CSCEventData.debug, BaseParticlePropagator.debug, CSCALCTTrailer.debug, CSCALCTHeader.debug, crabFunctions.CrabTask.debug, pkg.AbstractPkg.pname, and 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 geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, plottingOptions.BasePlottingOptions.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, genericValidation.GenericValidation.config, CSCOfflineClient.config, validateAlignments.ValidationBase.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, validateAlignments.ValidationJobMultiIOV.config, and 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 DigiComparisonTask.debug, TPComparisonTask.debug, NoCQTask.debug, PedestalTask.debug, QIE10Task.debug, QIE11Task.debug, RecHitTask.debug, LaserTask.debug, UMNioTask.debug, ZDCTask.debug, HcalOfflineHarvesting.debug, HcalOnlineHarvesting.debug, HFRaddamTask.debug, RawTask.debug, TPTask.debug, LEDTask.debug, DigiTask.debug, DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, ALIUtils.debug, DTDigiToRaw.debug, crabFunctions.CrabController.debug, DTSegmentsTask.debug, DTOccupancyEfficiency.debug, DTTTrigCorrectionFirst.debug, pkg.AbstractPkg.debug, DTTPDeadWriter.debug, DTDDUUnpacker.debug, DTTTrigWriter.debug, CSCDCCEventData.debug, DTT0CalibrationRMS.debug, SiPixelRawToDigi.debug, DTNoiseComputation.debug, DTOccupancyPoint.debug, DTTTrigSyncT0Only.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTT0Calibration.debug, DTEfficiencyTask.debug, DTTTrigCalibration.debug, DTRunConditionVar.debug, CSCDDUEventData.debug, PPSAlignmentConfigESSource.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, DTChamberEfficiency.debug, FCDTask.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTTTrigSyncFromDB.debug, DTVDriftCalibration.debug, CSCTMBData.debug, PixelDataFormatter.debug, DTTTrigSyncTOFCorr.debug, CSCTMBHeader.debug, CSCEventData.debug, BaseParticlePropagator.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.config |
Definition at line 42 of file pkg.py.
Referenced by confdb.HLTProcess.addEras(), confdb.HLTProcess.addGlobalOptions(), confdb.HLTProcess.build_source(), confdb.HLTProcess.buildOptions(), confdb.HLTProcess.customize(), confdb.HLTProcess.dump(), confdb.HLTProcess.fixPrescales(), pkg.AbstractPkg.generate(), pkg.AbstractPkg.get_kwds(), confdb.HLTProcess.getPathList(), confdb.HLTProcess.getRawConfigurationFromDB(), confdb.HLTProcess.getSetupConfigurationFromDB(), confdb.HLTProcess.instrumentDQM(), confdb.HLTProcess.instrumentErrorEventType(), confdb.HLTProcess.instrumentOpenMode(), confdb.HLTProcess.instrumentTiming(), confdb.HLTProcess.loadCffCommand(), confdb.HLTProcess.loadSetupCff(), confdb.HLTProcess.overrideGlobalTag(), confdb.HLTProcess.overrideL1MenuXml(), confdb.HLTProcess.overrideOutput(), confdb.HLTProcess.overrideProcessName(), pkg.AbstractPkg.parse_etags(), confdb.HLTProcess.runL1Emulator(), and confdb.HLTProcess.specificCustomize().
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(), runTauIdMVA.TauIDEmbedder.loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder.runTauID(), 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().