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.__init__ | ( | self, | |
config = None |
|||
) |
Definition at line 39 of file pkg.py.
def pkg.AbstractPkg.generate | ( | self | ) |
Definition at line 164 of file pkg.py.
References AllInOneConfig::Options.config, geometry.Alignables.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, CSCOfflineClient.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, 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, DTDigiToRaw.debug, ALIUtils.debug, DTSegmentsTask.debug, crabFunctions.CrabController.debug, DTOccupancyEfficiency.debug, CSCGEMData.debug, DTDDUUnpacker.debug, pkg.AbstractPkg.debug, DTTTrigCorrectionFirst.debug, CSCDCCEventData.debug, DTT0CalibrationRMS.debug, DTTTrigWriter.debug, DTTPDeadWriter.debug, PPSAlignmentConfigurationESSource.debug, DTOccupancyPoint.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTT0Calibration.debug, DTTTrigSyncT0Only.debug, DTEfficiencyTask.debug, CSCDDUEventData.debug, DTTTrigCalibration.debug, DTRunConditionVar.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, DTChamberEfficiency.debug, FCDTask.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTVDriftCalibration.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, CSCEventData.debug, BaseParticlePropagator.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, 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(), edm::RunAuxiliary.write(), FRDOutputModule.write(), l1ct::HadCaloObjEmu.write(), edm::TestLimitedOutput.write(), edm::RunLumiEntryInfo.write(), edm::TestGlobalOutput.write(), ExTestEcalChannelStatusAnalyzer.write(), AlignmentCorrelationsIORoot.write(), edm::LuminosityBlockAuxiliary.write(), SurveyOutput.write(), HcalSiPMCharacteristicsPopConAnalyzer.write(), HcalSiPMParametersPopConAnalyzer.write(), HcalTPChannelParametersPopConAnalyzer.write(), HcalTPParametersPopConAnalyzer.write(), FileBlob.write(), HcalFrontEndMapPopConAnalyzer.write(), HcalPFCutsPopConAnalyzer.write(), edm::EventEntryInfo.write(), CastorPedestalsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), HcalQIETypesPopConAnalyzer.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalTimingParamsPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), HcalLutMetadataPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalRespCorrsPopConAnalyzer.write(), HcalValidationCorrsPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), HcalRecoParamsPopConAnalyzer.write(), CastorChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), HcalDcsValuesPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), HcalZDCLowGainFractionsPopConAnalyzer.write(), edm::TestOneOutput.write(), MultiFileBlob.write(), SiPixelConfigWriter.write(), SiStripConfigWriter.write(), edm::AsciiOutputModule.write(), personalPlayback.Applet.write(), l1ct::EmCaloObjEmu.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliaryExtra.write(), AlignmentParametersIO.write(), popcon::PopConAnalyzer< S >.write(), AlignmentUserVariablesIO.write(), edm::TestOutputWithGetterOfProducts.write(), Json::FastWriter.write(), edm::ProductProvenance.write(), edm::EventEntryDescription.write(), edm::TestOutputWithGetterOfProductsGlobal.write(), edm::TestOutputWithGetterOfProductsLimited.write(), popcon::PopCon.write(), edm::ModuleDescription.write(), edm::ProvenanceCheckerOutputModule.write(), edm::GetProductCheckerOutputModule.write(), edm::Parentage.write(), RawEventOutputModuleForBU< Consumer >.write(), ProduceDropBoxMetadata.write, l1ct::TkObjEmu.write(), electronCompare.flushfile.write(), edm::StableProvenance.write(), electronStore.flushfile.write(), l1t::LUT.write(), MuonAlignmentOutputXML.write(), XMLDOMBlock.write(), Benchmark.write(), edmplugin::CacheParser.write(), edm::EventAuxiliary.write(), l1ct::MuObjEmu.write(), edm::BranchDescription.write(), CSCPairResidualsConstraint.write(), uploads.output.write(), Json::StyledWriter.write(), edm::Provenance.write(), l1ct::PFChargedObjEmu.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary.write(), evf::EvFOutputModule.write(), ztee.GZipLog.write(), amc13::Packet.write(), l1ct::PFNeutralObjEmu.write(), MuonResidualsTwoBin.write(), edmtest::TableTestOutputModule.write(), DTWorkflow.DTWorkflow.write(), l1ct::PFRegionEmu.write(), pkg.AbstractPkg.write(), l1ct::PuppiObjEmu.write(), Json::StyledStreamWriter.write(), edm::ProductResolverBase.write(), XMLProcessor.write(), l1ct::EGIsoObjEmu.write(), evf::GlobalEvFOutputModule.write(), esMonitoring.LineHistoryEnd.write(), MuonResidualsFitter.write(), esMonitoring.LineHistoryStart.write(), l1ct::EGIsoEleObjEmu.write(), StraightTrackAlignment::RPSetPlots.write(), DQMRootOutputModule.write(), betterConfigParser.BetterConfigParser.write(), edm::core::OutputModuleCore.write(), l1ct::PVObjEmu.write(), l1ct::RawInputs.write(), querying.connection.write(), l1ct::RegionizerDecodedInputs.write(), l1ct::PFInputRegion.write(), l1ct::OutputRegion.write(), l1ct::OutputBoard.write(), and l1ct::Event.write().
def pkg.AbstractPkg.get_kwds | ( | self | ) |
Definition at line 147 of file pkg.py.
References pkg.AbstractPkg.author, AllInOneConfig::Options.config, geometry.Alignables.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, CSCOfflineClient.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, pkg.AbstractPkg.date, 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, DTDigiToRaw.debug, CSCTMBScope.debug, ALIUtils.debug, crabFunctions.CrabController.debug, DTSegmentsTask.debug, DTOccupancyEfficiency.debug, CSCGEMData.debug, DTDDUUnpacker.debug, pkg.AbstractPkg.debug, DTTTrigCorrectionFirst.debug, CSCDCCEventData.debug, DTT0CalibrationRMS.debug, DTTTrigWriter.debug, DTTPDeadWriter.debug, PPSAlignmentConfigurationESSource.debug, DTOccupancyPoint.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTT0Calibration.debug, DTTTrigSyncT0Only.debug, DTEfficiencyTask.debug, DTTTrigCalibration.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, DTChamberEfficiency.debug, FCDTask.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTVDriftCalibration.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, CSCEventData.debug, BaseParticlePropagator.debug, CSCTMBHeader.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 AllInOneConfig::Options.config, geometry.Alignables.config, pkg.AbstractPkg.config, cscdqm::EventProcessorMutex.config, CSCOfflineClient.config, CSCMonitorModule.config, cscdqm::Collection.config, cscdqm::Dispatcher.config, cscdqm::EventProcessor.config, and pkg.AbstractPkg.tmpl_etags().
Referenced by pkg.AbstractPkg.write().
def pkg.AbstractPkg.print_etags | ( | self | ) |
Definition at line 71 of file pkg.py.
References print(), and pkg.AbstractPkg.tmpl_etags().
def pkg.AbstractPkg.print_tags | ( | self | ) |
Definition at line 92 of file pkg.py.
References print(), and pkg.AbstractPkg.tmpl_tags().
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 118 of file pkg.py.
References HcalOfflineHarvesting.debug, NoCQTask.debug, PedestalTask.debug, QIE10Task.debug, QIE11Task.debug, RecHitTask.debug, UMNioTask.debug, ZDCTask.debug, HcalOnlineHarvesting.debug, HFRaddamTask.debug, LaserTask.debug, RawTask.debug, TPTask.debug, LEDTask.debug, DigiTask.debug, DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, DTDigiToRaw.debug, ALIUtils.debug, DTSegmentsTask.debug, crabFunctions.CrabController.debug, DTOccupancyEfficiency.debug, CSCGEMData.debug, DTTTrigCorrectionFirst.debug, DTDDUUnpacker.debug, pkg.AbstractPkg.debug, CSCDCCEventData.debug, DTTTrigWriter.debug, DTT0CalibrationRMS.debug, DTTPDeadWriter.debug, PPSAlignmentConfigurationESSource.debug, DTOccupancyPoint.debug, DTNoiseComputation.debug, DTROS25Unpacker.debug, util.rrapi.RRApi.debug, DTT0Calibration.debug, DTTTrigSyncT0Only.debug, DTEfficiencyTask.debug, DTTTrigCalibration.debug, CSCDDUEventData.debug, DTRunConditionVar.debug, DTChamberEfficiencyTask.debug, HCALResponse.debug, DTChamberEfficiency.debug, FCDTask.debug, CSCDCCUnpacker.debug, CSCComparatorData.debug, DTTMax.debug, DTVDriftCalibration.debug, DTTTrigSyncFromDB.debug, CSCTMBData.debug, DTTTrigSyncTOFCorr.debug, CSCEventData.debug, BaseParticlePropagator.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.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().