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, 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, 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, CSCComparatorData.debug, CSCDCCUnpacker.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(), AlignmentCorrelationsIO.write(), jsoncollector::Json::Writer.write(), edm::RunAuxiliary.write(), FRDOutputModule.write(), edm::RunLumiEntryInfo.write(), edm::TestGlobalOutput.write(), edm::TestLimitedOutput.write(), l1ct::HadCaloObjEmu.write(), ExTestEcalChannelStatusAnalyzer.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), edm::LuminosityBlockAuxiliary.write(), FileBlob.write(), HcalFrontEndMapPopConAnalyzer.write(), HcalSiPMCharacteristicsPopConAnalyzer.write(), HcalSiPMParametersPopConAnalyzer.write(), HcalTPChannelParametersPopConAnalyzer.write(), HcalTPParametersPopConAnalyzer.write(), edm::EventEntryInfo.write(), HcalPFCutsPopConAnalyzer.write(), HcalRecoParamsPopConAnalyzer.write(), CastorChannelQualityPopConAnalyzer.write(), CastorElectronicsMapPopConAnalyzer.write(), HcalGainWidthsPopConAnalyzer.write(), CastorPedestalsPopConAnalyzer.write(), CastorPedestalWidthsPopConAnalyzer.write(), CastorQIEDataPopConAnalyzer.write(), CastorRecoParamsPopConAnalyzer.write(), CastorSaturationCorrsPopConAnalyzer.write(), HcalLutMetadataPopConAnalyzer.write(), HcalChannelQualityPopConAnalyzer.write(), HcalDcsMapPopConAnalyzer.write(), HcalDcsValuesPopConAnalyzer.write(), HcalElectronicsMapPopConAnalyzer.write(), HcalFlagHFDigiTimeParamsPopConAnalyzer.write(), CastorGainWidthsPopConAnalyzer.write(), HcalGainsPopConAnalyzer.write(), HcalL1TriggerObjectsPopConAnalyzer.write(), HcalLongRecoParamsPopConAnalyzer.write(), HcalLUTCorrsPopConAnalyzer.write(), HcalMCParamsPopConAnalyzer.write(), HcalPedestalsPopConAnalyzer.write(), HcalPedestalWidthsPopConAnalyzer.write(), HcalQIEDataPopConAnalyzer.write(), HcalQIETypesPopConAnalyzer.write(), HcalRespCorrsPopConAnalyzer.write(), HcalTimeCorrsPopConAnalyzer.write(), HcalPFCorrsPopConAnalyzer.write(), HcalTimingParamsPopConAnalyzer.write(), HcalValidationCorrsPopConAnalyzer.write(), CastorGainsPopConAnalyzer.write(), HcalZSThresholdsPopConAnalyzer.write(), HcalZDCLowGainFractionsPopConAnalyzer.write(), edm::TestOneOutput.write(), MultiFileBlob.write(), SiPixelConfigWriter.write(), SiStripConfigWriter.write(), personalPlayback.Applet.write(), edm::AsciiOutputModule.write(), AlignmentParametersIO.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliaryExtra.write(), l1ct::EmCaloObjEmu.write(), AlignmentUserVariablesIO.write(), popcon::PopConAnalyzer< S >.write(), edm::ProductProvenance.write(), edm::TestOutputWithGetterOfProducts.write(), edm::EventEntryDescription.write(), jsoncollector::Json::FastWriter.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(), electronStore.flushfile.write(), l1t::LUT.write(), edm::StableProvenance.write(), MuonAlignmentOutputXML.write(), XMLDOMBlock.write(), Benchmark.write(), edmplugin::CacheParser.write(), edm::EventAuxiliary.write(), l1ct::MuObjEmu.write(), edm::BranchDescription.write(), CSCPairResidualsConstraint.write(), uploads.output.write(), jsoncollector::Json::StyledWriter.write(), edm::Provenance.write(), l1ct::PFChargedObjEmu.write(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary.write(), ztee.GZipLog.write(), amc13::Packet.write(), l1ct::PFNeutralObjEmu.write(), MuonResidualsTwoBin.write(), edmtest::TableTestOutputModule.write(), l1ct::PFRegionEmu.write(), DTWorkflow.DTWorkflow.write(), pkg.AbstractPkg.write(), l1ct::PuppiObjEmu.write(), jsoncollector::Json::StyledStreamWriter.write(), edm::ProductResolverBase.write(), XMLProcessor.write(), l1ct::EGIsoObjEmu.write(), esMonitoring.LineHistoryEnd.write(), MuonResidualsFitter.write(), esMonitoring.LineHistoryStart.write(), l1ct::EGIsoEleObjEmu.write(), StraightTrackAlignment::RPSetPlots.write(), evf::GlobalEvFOutputModule.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, DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, DTDigiToRaw.debug, ALIUtils.debug, DTSegmentsTask.debug, crabFunctions.CrabController.debug, DTOccupancyEfficiency.debug, CSCGEMData.debug, DTTTrigCorrectionFirst.debug, pkg.AbstractPkg.debug, DTDDUUnpacker.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, CSCComparatorData.debug, CSCDCCUnpacker.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 DTDigiToRawModule.debug, CSCRPCData.debug, CSCTMBScope.debug, DTDigiToRaw.debug, ALIUtils.debug, crabFunctions.CrabController.debug, DTSegmentsTask.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, CSCComparatorData.debug, CSCDCCUnpacker.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.load_againstElectronMVA6(), runTauIdMVA.TauIDEmbedder.loadMVA_WPs_run2_2017(), 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().