CMS 3D CMS Logo

List of all members | Public Member Functions
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)
 

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 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 
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
double split
Definition: MVATrainer.cc:139
def HTMLExport.HTMLExport.export (   self,
  data,
  filename,
  filetype 
)

Definition at line 661 of file HTMLExport.py.

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