CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
HTMLExport.HTMLExport Class Reference
Inheritance diagram for HTMLExport.HTMLExport:

Public Member Functions

def __init__ (self)
 
def data_to_json (self, data)
 
def export (self, data, filename, filetype)
 
def module_to_json (self, data, module)
 
def path_to_json (self, data, path)
 
def produce (self, data)
 
def pset_to_json (self, pset)
 

Static Public Attributes

 file_types
 
 plugin_name
 

Detailed Description

Definition at line 653 of file HTMLExport.py.

Constructor & Destructor Documentation

def HTMLExport.HTMLExport.__init__ (   self)

Definition at line 658 of file HTMLExport.py.

658  def __init__(self):
659  FileExportPlugin.__init__(self)
660 

Member Function Documentation

def HTMLExport.HTMLExport.data_to_json (   self,
  data 
)

Definition at line 672 of file HTMLExport.py.

References HTMLExport.HTMLExport.module_to_json(), HTMLExport.HTMLExport.path_to_json(), HTMLExport.HTMLExport.pset_to_json(), and cms::dd.split().

Referenced by HTMLExport.HTMLExport.produce().

672  def data_to_json(self, data):
673  cmssw = None
674  if 'CMSSW_BASE' in os.environ:
675  cmssw = os.environ['CMSSW_BASE'].split('/')[-1]
676  elif 'CMSSW_RELEASE_BASE' in os.environ:
677  cmssw = os.environ['CMSSW_RELEASE_BASE'].split('/')[-1]
678  result = {'process': {'name': data.process().name_() if data.process() else '(no process)', 'src': data._filename, 'cmssw':cmssw}}
679  toplevel = data.children(data.topLevelObjects()[0]) if data.process() else data.topLevelObjects()
680  for tlo in toplevel:
681  children = data.children(tlo)
682  label = tlo._label
683  if label in ('source', 'services'):
684  result[label] = [{'class':data.classname(child), 'pset':self.pset_to_json(child.parameters_()), 'type':data.type(child), 'label':data.classname(child)} for child in children]
685  elif label in ('essources', 'esproducers', 'esprefers'):
686  result[label] = [self.module_to_json(data, child) for child in children]
687  elif label in ('paths', 'endpaths'):
688  result[label] = [self.path_to_json(data, child) for child in children]
689  return json.dumps(result, indent=4)
690 
std::vector< std::string_view > split(std::string_view, const char *)
def data_to_json(self, data)
Definition: HTMLExport.py:672
def pset_to_json(self, pset)
Definition: HTMLExport.py:691
def module_to_json(self, data, module)
Definition: HTMLExport.py:724
def path_to_json(self, data, path)
Definition: HTMLExport.py:738
def HTMLExport.HTMLExport.export (   self,
  data,
  filename,
  filetype 
)

Definition at line 661 of file HTMLExport.py.

References DimuonMCMatcher.produce(), ShallowExampleProducer.produce(), WeakEffectsWeightProducer.produce(), HcalLaserEventFiltProducer2012.produce(), PatElectronEAIsoCorrectionProducer.produce(), CandPtrProjector.produce(), cond::EmptyIOVSource.produce(), MagneticFieldMapESProducer.produce(), PixelToFEDAssociateFromAsciiESProducer.produce(), TrackerInteractionGeometryESProducer.produce(), PixelToLNKAssociateFromAsciiESProducer.produce(), ShallowEventDataProducer.produce(), HLTDQMObjSelector< ObjType, ObjCollType >.produce(), DoubleProducer.produce(), TrackingRecHitPipe.produce(), Phase2TrackerCablingESProducer.produce(), ElectronSqPtTkIsolationProducer.produce(), SiPixelFakeCPEGenericErrorParmESSource.produce(), ConversionTrackRefFix.produce(), SiStripHashedDetIdFakeESSource.produce(), CSCChannelMapperESProducer.produce(), CSCIndexerESProducer.produce(), SiPixelFedCablingMapBuilder.produce(), TrackingParticleConversionRefSelector.produce(), edm::EndPathStatusInserter.produce(), ShallowTracksProducer.produce(), DTDigiToRawModule.produce(), SiPixelFakeGenErrorDBObjectESSource.produce(), reco::modules::CaloRecHitCandidateProducer< HitCollection >.produce(), MFProducer.produce(), SiPixelFakeTemplateDBObjectESSource.produce(), TkDetMapESProducer.produce(), RazorVarProducer.produce(), SiStripApvSimulationParametersESSource.produce(), ESRawToDigi.produce(), ElectronSeedTrackRefFix.produce(), AlphaTVarProducer.produce(), HLTDQMMuonSelector.produce(), DistortedMETProducer.produce(), sistrip::MeasureLA.produce(), EventVtxInfoNtupleDumper.produce(), ParticleDecayProducer.produce(), Phase2Tracker::Phase2TrackerCommissioningDigiProducer.produce(), ShallowRechitClustersProducer.produce(), L1TriggerKeyDummyProdExt.produce(), edm::PathStatusInserter.produce(), L1TriggerKeyListDummyProdExt.produce(), CTPPSLHCInfoESSource.produce(), HFNoseRawToDigiFake.produce(), HGCalRawToDigiFake.produce(), HGCDigiConverter.produce(), RawDataCollectorByLabel.produce(), FamosProducer.produce(), L1SubsystemKeysOnlineProdExt.produce(), L1TriggerKeyOnlineProdExt.produce(), ShallowSimTracksProducer.produce(), SiStripGainESSource.produce(), SiStripPedestalsESSource.produce(), SiStripNoiseESSource.produce(), RPCPerformanceESSource.produce(), CTPPSOpticalFunctionsESSource.produce(), evf::EvFFEDSelector.produce(), AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >.produce(), CastorFastClusterProducer.produce(), CastorFastTowerProducer.produce(), EmptySimHits.produce(), ShallowTrackClustersProducer.produce(), ShallowSimhitClustersProducer.produce(), SiStripFedCablingESProducer.produce(), DiJetVarProducer.produce(), RegressionEnergyPatElectronProducer.produce(), DistortedMuonProducerFromDB.produce(), SiStripHashedDetIdESModule.produce(), MuonWithPFIsoProducer.produce(), PFEGammaToCandidateRemapper.produce(), HcalCalibFEDSelector.produce(), AssociationMapOneToOne2Association< CKey, CVal >.produce(), ShallowClustersProducer.produce(), CalibratedPhotonProducerRun2T< T >.produce(), DistortedMuonProducer.produce(), DistortedPFCandProducer.produce(), SiStripGainSimESProducer.produce(), ESDigiToRaw.produce(), AssociationVector2ValueMap< KeyRefProd, CVal >.produce(), EcalIsolatedParticleCandidateProducer.produce(), SiStripTemplateEmptyFakeESSource< TObject, TRecord >.produce(), PFMuonUntagger.produce(), CTPPSInterpolatedOpticalFunctionsESSource.produce(), L1ObjectKeysOnlineProdBaseExt.produce(), RPCInverseCPPFLinkMapESProducer.produce(), RPCInverseLBLinkMapESProducer.produce(), RPCInverseOMTFLinkMapESProducer.produce(), RPCInverseTwinMuxLinkMapESProducer.produce(), IPTCorrector.produce(), ISRGammaWeightProducer.produce(), CandViewRefMerger.produce(), DTUnpackingModule.produce(), SiStripProcessedRawDigiProducer.produce(), RawDataSelector.produce(), RPCAMCUnpacker.produce(), PixelTracksProducer.produce(), SiStripQualityFakeESSource.produce(), SiStripGainESProducer.produce(), FSRWeightProducer.produce(), ISRWeightProducer.produce(), CSCDCCUnpacker.produce(), CastorHardcodeCalibrations.produce(), RPCCPPFUnpacker.produce(), CollectionAdder< C >.produce(), FastTrackerRecHitMaskProducer.produce(), FWRecoGeometryESProducer.produce(), HcalTimeSlewEP.produce(), CalibratedElectronProducerRun2T< T >.produce(), IsolatedEcalPixelTrackCandidateProducer.produce(), HBHEDarkeningEP.produce(), PdfWeightProducer.produce(), PFCandidateMuonUntagger.produce(), JetTracksAssociationToTrackRefs.produce(), EcalLaserCorrectionService.produce(), LmfSource.produce(), AlignmentPrescaler.produce(), CastorDigiToRaw.produce(), CTPPSPixelRawToDigi.produce(), TotemTriggerRawToDigi.produce(), NtpProducer< C >.produce(), ElectronPATIdMVAProducer.produce(), AlcaBeamSpotFromDB.produce(), HcalDigiToRaw.produce(), HcalHistogramRawToDigi.produce(), RPCAMCRawToDigi.produce(), RPCTwinMuxDigiToRaw.produce(), FRDStreamSource.produce(), CandidateTriggerObjectProducer.produce(), FastTSGFromL2Muon.produce(), ElectronRecalibSuperClusterAssociator.produce(), ShallowDigisProducer.produce(), TriggerMatchProducer< object >.produce(), ShallowCloneProducer< C >.produce(), CloneProducer< C >.produce(), CandReducer.produce(), DeltaBetaWeights.produce(), Phase2Tracker::Phase2TrackerDigiProducer.produce(), RPCDigiMerger.produce(), reco::modules::MatcherBase< C1, C2, M >.produce(), reco::modulesNew::Matcher< C1, C2, S, D >.produce(), SiPixelFedFillerWordEventNumber.produce(), TrackInfoProducer.produce(), ZMuMuTrackUserData.produce(), EcalDCCTBUnpackingModule.produce(), PFMET.produce(), PuppiPhoton.produce(), TOFPIDProducer.produce(), sistrip::ExcludedFEDListProducer.produce(), edm::FwdPtrProducer< T, H >.produce(), FastTrackerRecHitCombiner.produce(), edm::ProductFromFwdPtrProducer< T, H >.produce(), RawDataMapperByLabel.produce(), ZMuMuMuonUserData.produce(), AlcaBeamSpotProducer.produce(), EcalDCCTB07UnpackingModule.produce(), GEMDigiToRawModule.produce(), HcalRawToDigi.produce(), Type1PFMET.produce(), DaqFakeReader.produce(), VertexCompositeCandidateCollectionSelector.produce(), SiPixel2DTemplateDBObjectESProducer.produce(), MillePedeFileConverter.produce(), RPCUnpackingModule.produce(), SiPixelGenErrorDBObjectESProducer.produce(), EventCountProducer.produce(), SiStripConfObjectFakeESSource.produce(), ZMuMuUserDataOneTrack.produce(), ZMuMuUserData.produce(), TkAlCaOverlapTagger.produce(), SubdetFEDSelector.produce(), pf2pat::PFMETAlgo.produce(), L1GctInternJetProducer.produce(), PFCandIsolatorFromDeposits.produce(), ME0MuonTrackCollProducer.produce(), sistrip::RawToDigiModule.produce(), sistrip::DigiToRawModule.produce(), SiPixelTemplateDBObjectESProducer.produce(), LaserAlignmentProducer.produce(), SiPixelRawToDigi.produce(), FastTrackerRecHitMatcher.produce(), EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.produce(), SiStripApvGainFakeESSource.produce(), edm::ThinningProducer< Collection, Selector >.produce(), DTFakeT0ESProducer.produce(), WMuNuProducer.produce(), CastorRawToDigi.produce(), CSCTFPacker.produce(), SiStripRegFEDSelector.produce(), CandMergerCleanOthersByDR.produce(), DTTFFEDSim.produce(), EcalRegionCablingESProducer.produce(), L1ConfigOnlineProdBaseExt< TRcd, TData >.produce(), PPSTimingCalibrationESSource.produce(), CastorTextCalibrations.produce(), EcalShowerContainmentCorrectionsESProducer.produce(), SiStripBaseDelayFakeESSource.produce(), sistrip::SpyEventSummaryProducer.produce(), SiStripLatencyFakeESSource.produce(), SiStripPedestalsFakeESSource.produce(), SiStripThresholdFakeESSource.produce(), HcalRawToDigiFake.produce(), L1TTwinMuxRawToDigi.produce(), SiStripBackPlaneCorrectionFakeESSource.produce(), SiStripBadModuleConfigurableFakeESSource.produce(), SiStripDelayESProducer.produce(), GEMRawToDigiModule.produce(), PuppiProducer.produce(), RPCTwinMuxRawToDigi.produce(), MatchedProbeMaker< T >.produce(), sistrip::SpyDigiConverterModule.produce(), DTTFFEDReader.produce(), Merger< InputCollection, OutputCollection, P >.produce(), CSCTFUnpacker.produce(), AlcaPCCProducer.produce(), RawPCCProducer.produce(), PFPileUp.produce(), SiPixelFakeGainESSource.produce(), SiPixelFakeGainForHLTESSource.produce(), SiPixelFakeGainOfflineESSource.produce(), RPCPackingModule.produce(), BufferedBoostIOESProducer< DataType, MyRecord >.produce(), AlCaEcalHcalReadoutsProducer.produce(), RunInfoTestESProducer.produce(), TagProbeMassProducer.produce(), LaserAlignmentT0Producer.produce(), SiStripNoisesFakeESSource.produce(), edm::TriggerResultInserter.produce(), HcalRecHitRecalib.produce(), AlCaElectronTracksReducer.produce(), L1TriggerKeyListDummyProd.produce(), SiPixelFakeLorentzAngleESSource.produce(), EcalRecHitRecalib.produce(), SiPixelFakeQualityESSource.produce(), TotemVFATRawToDigi.produce(), SiStripLorentzAngleDepESProducer.produce(), DTuROSDigiToRaw.produce(), L1TriggerKeyDummyProd.produce(), PrimaryVertexSorter< ParticlesCollection >.produce(), SiStripBackPlaneCorrectionDepESProducer.produce(), pf2pat::PFIsoDepositAlgo.produce(), cms::HitReCalibrator.produce(), CSCDigiToRawModule.produce(), L1SubsystemKeysOnlineProd.produce(), L1TriggerKeyOnlineProd.produce(), DDCompactViewESProducer.produce(), DDCompactViewMFESProducer.produce(), PFCand_AssoMap.produce(), HcalDbProducer.produce(), ECALRegFEDSelector.produce(), ZToLLEdmNtupleDumper.produce(), GctDigiToRaw.produce(), HcalDigiToRawuHTR.produce(), DTuROSRawToDigi.produce(), DDSpecParRegistryESProducer.produce(), AlCaDiJetsProducer.produce(), AlCaGammaJetProducer.produce(), L1GlobalTriggerRecordProducer.produce(), LTCRawToDigi.produce(), TrackCandidateProducer.produce(), ScalersRawToDigi.produce(), MisalignedTrackerESProducer.produce(), ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >.produce(), PixelFEDChannelCollectionProducer.produce(), SiStripFineDelayHit.produce(), FromClusterSummaryMultiplicityProducer.produce(), CTPPSBeamParametersESSource.produce(), HBHENoiseFilterResultProducer.produce(), EventWithHistoryProducer.produce(), SiPixelQualityESProducer.produce(), L1ObjectKeysOnlineProdBase.produce(), AlCaHcalNoiseProducer.produce(), DDVectorRegistryESProducer.produce(), CastorDbProducer.produce(), PF_PU_AssoMap.produce(), MisalignedMuonESProducer.produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector.produce(), SiStripLorentzAngleFakeESSource.produce(), HcalTPGCoderULUT.produce(), TcdsRawToDigi.produce(), EventWithHistoryProducerFromL1ABC.produce(), DDDetectorESProducer.produce(), L1GTEvmDigiToRaw.produce(), RctRawToDigi.produce(), FWTGeoRecoGeometryESProducer.produce(), EcalFEDWithCRCErrorProducer.produce(), IsolatedPixelTrackCandidateProducer.produce(), MuonMillepedeTrackRefitter.produce(), CalibrationTrackSelectorFromDetIdList.produce(), CaloTPGTranscoderULUTs.produce(), GctRawToDigi.produce(), EcalRawToDigi.produce(), HcalTextCalibrations.produce(), SoftKillerProducer.produce(), ConfigurableAPVCyclePhaseProducer.produce(), ValueMapTraslator.produce(), L1GTDigiToRaw.produce(), L1GlobalTriggerEvmRawToDigi.produce(), l1t::L1TRawToDigi.produce(), OnlineMetaDataRawToDigi.produce(), HLTTauRefProducer.produce(), SiPixelDigiToRaw.produce(), IsolatedPixelTrackCandidateL1TProducer.produce(), AlCaECALRecHitReducer.produce(), omtf::OmtfPacker.produce(), MultiplicityProducer< T >.produce(), L1GtTextToRaw.produce(), JetDeltaRTagInfoValueMapProducer< T, I >.produce(), omtf::OmtfUnpacker.produce(), CaloMiscalibToolsMC.produce(), CaloMiscalibTools.produce(), AlCaHBHEMuonProducer.produce(), L1ConfigOnlineProdBase< TRcd, TData >.produce(), l1t::L1TDigiToRaw.produce(), PF_PU_FirstVertexTracks.produce(), EcalDigiToRaw.produce(), l1t::AMC13DumpToRaw.produce(), L1GtTriggerMenuLiteProducer.produce(), PFCandidateRecalibrator.produce(), l1t::AMCDumpToRaw.produce(), L1GlobalTriggerRawToDigi.produce(), AlignmentMuonHIPTrajectorySelector.produce(), CTPPSFastTrackingProducer.produce(), TrackingRecHitProducer.produce(), PFCand_NoPU_WithAM.produce(), APVCyclePhaseProducerFromL1ABC.produce(), SiPixelCalibDigiProducer.produce(), reco::modules::TrackFullCloneSelectorBase< Selector >.produce(), ConditionDumperInEdm.produce(), sistrip::SpyUnpackerModule.produce(), sistrip::FEDEmulatorModule.produce(), TGeoMgrFromDdd.produce(), APVCyclePhaseProducerFromL1TS.produce(), JetConstituentSelector< T, C >.produce(), CTPPSSimHitProducer.produce(), ShallowGainCalibration.produce(), SiStripQualityESProducer.produce(), l1t::MP7BufferDumpToRaw.produce(), TkLasBeamFitter.produce(), CTPPSTotemDigiToRaw.produce(), Pi0FixedMassWindowCalibration.produce(), EDMtoMEConverter.produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.produce(), TrackerToMuonPropagator.produce(), CTPPSPixelDigiToRaw.produce(), edm::stream::EDProducerBase.produce(), CSCOverlapsTrackPreparation.produce(), FastSimProducer.produce(), JetDeltaRValueMapProducer< T, C >.produce(), MEtoEDMConverter.produce(), CTPPSRecHitProducer.produce(), FastTrackDeDxProducer.produce(), L1TCaloLayer1RawToDigi.produce(), MuonSimHitProducer.produce(), LaserAlignment.produce(), ZeeCalibration.produce(), TrajectorySeedProducer.produce(), TotemDAQMappingESSourceXML.produce(), SelectedElectronFEDListProducer< TEle, TCand >.produce(), CandidateProducer< TColl, CColl, Selector, Conv, Creator, Init >.produce(), edm::EDProducer.produce(), AlCaIsoTracksProducer.produce(), edm::one::EDProducerBase.produce(), MatacqProducer.produce(), edm::limited::EDProducerBase.produce(), edm::global::EDProducerBase.produce(), reco::modules::CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup, Init >.produce(), TopProjector< Top, Bottom, Matcher >.produce(), AlCaHOCalibProducer.produce(), edm::stream::impl::Accumulator.produce(), edm::stream::CallBeginRunProduceImpl< T, bool >.produce(), edm::stream::CallBeginRunProduceImpl< T, false >.produce(), edm::one::impl::Accumulator< T >.produce(), edm::stream::CallEndRunProduceImpl< T, bProduce, bSummary >.produce(), edm::stream::CallEndRunProduceImpl< T, true, false >.produce(), edm::stream::CallEndRunProduceImpl< T, true, true >.produce(), edm::stream::CallBeginLuminosityBlockProduceImpl< T, bool >.produce(), edm::stream::CallBeginLuminosityBlockProduceImpl< T, false >.produce(), edm::stream::CallEndLuminosityBlockProduceImpl< T, bProduce, bSummary >.produce(), edm::stream::CallEndLuminosityBlockProduceImpl< T, true, false >.produce(), edm::stream::CallEndLuminosityBlockProduceImpl< T, true, true >.produce(), edm::limited::impl::Accumulator< T >.produce(), edm::global::impl::Accumulator< T >.produce(), and HTMLExport.HTMLExport.produce().

661  def export(self, data, filename, filetype):
662  with open(filename, 'w') as f:
663  f.write(self.produce(data))
664 
def produce(self, data)
Definition: HTMLExport.py:665
def export(self, data, filename, filetype)
Definition: HTMLExport.py:661
def HTMLExport.HTMLExport.module_to_json (   self,
  data,
  module 
)

Definition at line 724 of file HTMLExport.py.

References HTMLExport.HTMLExport.pset_to_json().

Referenced by HTMLExport.HTMLExport.data_to_json(), and HTMLExport.HTMLExport.path_to_json().

724  def module_to_json(self, data, module):
725  return {
726  'label':data.label(module),
727  'class':data.classname(module),
728  'file':data.pypath(module),
729  'line':data.lineNumber(module),
730  #'package':data.pypackage(module),
731  'pset':self.pset_to_json(module.parameters_()),
732  'type':data.type(module),
733  'uses':data.uses(module),
734  'usedby':data.usedBy(module),
735  'memberof':data.foundIn(module)
736  }
737 
def pset_to_json(self, pset)
Definition: HTMLExport.py:691
def module_to_json(self, data, module)
Definition: HTMLExport.py:724
def HTMLExport.HTMLExport.path_to_json (   self,
  data,
  path 
)

Definition at line 738 of file HTMLExport.py.

References HTMLExport.HTMLExport.module_to_json(), and HTMLExport.HTMLExport.path_to_json().

Referenced by HTMLExport.HTMLExport.data_to_json(), and HTMLExport.HTMLExport.path_to_json().

738  def path_to_json(self, data, path):
739  children = data.children(path)
740  if data.isContainer(path):
741  json_children = [self.path_to_json(data, child) for child in children]
742  return {'type':data.type(path), 'label':data.label(path),
743  'path':json_children, 'memberof': data.foundIn(path),
744  'file': data.pypath(path), 'line': data.lineNumber(path)}
745  #'package': data.pypackage(path)}
746  else:
747  return self.module_to_json(data, path)
748 
749 
750 
751 
def module_to_json(self, data, module)
Definition: HTMLExport.py:724
def path_to_json(self, data, path)
Definition: HTMLExport.py:738
def HTMLExport.HTMLExport.produce (   self,
  data 
)

Definition at line 665 of file HTMLExport.py.

References HTMLExport.HTMLExport.data_to_json(), and HTMLExport.get_jquery().

Referenced by JSONExport.JsonExport.export(), HTMLExport.HTMLExport.export(), and HTMLExport.HTMLExportStatic.export().

665  def produce(self, data):
666  return PAGE_TEMPLATE % dict(title=data._filename, jquery=get_jquery(),
667  css=CSS_TEMPLATE, js=JS_TEMPLATE, dirname='.',
668  filename=data._filename, json=self.data_to_json(data),
669  cmslogo=CMSLOGO)
670 
671 
def data_to_json(self, data)
Definition: HTMLExport.py:672
def produce(self, data)
Definition: HTMLExport.py:665
def get_jquery()
Definition: HTMLExport.py:28
def HTMLExport.HTMLExport.pset_to_json (   self,
  pset 
)

Definition at line 691 of file HTMLExport.py.

References HTMLExport.HTMLExport.pset_to_json(), cms::dd.split(), and str.

Referenced by HTMLExport.HTMLExport.data_to_json(), HTMLExport.HTMLExport.module_to_json(), and HTMLExport.HTMLExport.pset_to_json().

691  def pset_to_json(self, pset):
692  result = []
693  for k, v in pset.items():
694  typename = v.pythonTypeName().split('.')[-1]
695  item = {'label': k, 'type': typename}
696  if not v.isTracked():
697  item['untracked'] = True
698  if typename == 'PSet':
699  item['value'] = self.pset_to_json(v.parameters_())
700  elif typename == 'VPSet':
701  item['value'] = [self.pset_to_json(vv.parameters_()) for vv in v]
702  item['list'] = True
703  elif typename == 'VInputTag':
704  v_it = []
705  for vv in v:
706  if isinstance(vv, cms.InputTag):
707  v_it.append(vv)
708  elif isinstance(vv, str):
709  v_it.append(cms.InputTag(vv))
710  else:
711  raise ValueError("Unsupported type in VInputTag "+type(vv))
712  item['value'] = [(vv.moduleLabel, vv.productInstanceLabel, vv.processName) for vv in v_it]
713  item['list'] = True
714  elif typename == 'InputTag':
715  item['value'] = [v.moduleLabel, v.productInstanceLabel, v.processName]
716  elif isinstance(v, mix._ValidatingListBase):
717  item['value'] = [str(vv) for vv in v]
718  item['list'] = True
719  else:
720  item['value'] = v.pythonValue()
721  result += [item]
722  return result
723 
std::vector< std::string_view > split(std::string_view, const char *)
def pset_to_json(self, pset)
Definition: HTMLExport.py:691
#define str(s)

Member Data Documentation

HTMLExport.HTMLExport.file_types
static

Definition at line 656 of file HTMLExport.py.

HTMLExport.HTMLExport.plugin_name
static

Definition at line 655 of file HTMLExport.py.