Definition at line 16 of file JSONExport.py.
def JSONExport.JsonExport.export |
( |
|
self, |
|
|
|
data, |
|
|
|
filename, |
|
|
|
filetype |
|
) |
| |
Definition at line 137 of file JSONExport.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(), JSONExport.JsonExport.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(), RPCInverseCPPFLinkMapESProducer.produce(), RPCInverseLBLinkMapESProducer.produce(), RPCInverseOMTFLinkMapESProducer.produce(), RPCInverseTwinMuxLinkMapESProducer.produce(), IPTCorrector.produce(), ISRGammaWeightProducer.produce(), L1ObjectKeysOnlineProdBaseExt.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(), ZMuMuMuonUserData.produce(), RawDataMapperByLabel.produce(), AlcaBeamSpotProducer.produce(), EcalDCCTB07UnpackingModule.produce(), GEMDigiToRawModule.produce(), HcalRawToDigi.produce(), Type1PFMET.produce(), DaqFakeReader.produce(), VertexCompositeCandidateCollectionSelector.produce(), SiPixel2DTemplateDBObjectESProducer.produce(), MillePedeFileConverter.produce(), SiPixelGenErrorDBObjectESProducer.produce(), RPCUnpackingModule.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(), edm::ThinningProducer< Collection, Selector >.produce(), SiPixelRawToDigi.produce(), FastTrackerRecHitMatcher.produce(), EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.produce(), SiStripApvGainFakeESSource.produce(), DTFakeT0ESProducer.produce(), WMuNuProducer.produce(), CastorRawToDigi.produce(), CSCTFPacker.produce(), SiStripRegFEDSelector.produce(), CandMergerCleanOthersByDR.produce(), DTTFFEDSim.produce(), EcalRegionCablingESProducer.produce(), PPSTimingCalibrationESSource.produce(), CastorTextCalibrations.produce(), L1ConfigOnlineProdBaseExt< TRcd, TData >.produce(), EcalShowerContainmentCorrectionsESProducer.produce(), SiStripBaseDelayFakeESSource.produce(), sistrip::SpyEventSummaryProducer.produce(), SiStripLatencyFakeESSource.produce(), SiStripPedestalsFakeESSource.produce(), SiStripThresholdFakeESSource.produce(), L1TTwinMuxRawToDigi.produce(), HcalRawToDigiFake.produce(), SiStripBackPlaneCorrectionFakeESSource.produce(), SiStripBadModuleConfigurableFakeESSource.produce(), SiStripDelayESProducer.produce(), GEMRawToDigiModule.produce(), PuppiProducer.produce(), MatchedProbeMaker< T >.produce(), sistrip::SpyDigiConverterModule.produce(), DTTFFEDReader.produce(), Merger< InputCollection, OutputCollection, P >.produce(), RPCTwinMuxRawToDigi.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(), EcalRecHitRecalib.produce(), AlCaElectronTracksReducer.produce(), L1TriggerKeyListDummyProd.produce(), SiPixelFakeQualityESSource.produce(), SiPixelFakeLorentzAngleESSource.produce(), TotemVFATRawToDigi.produce(), SiStripLorentzAngleDepESProducer.produce(), DTuROSDigiToRaw.produce(), L1TriggerKeyDummyProd.produce(), PrimaryVertexSorter< ParticlesCollection >.produce(), pf2pat::PFIsoDepositAlgo.produce(), SiStripBackPlaneCorrectionDepESProducer.produce(), CSCDigiToRawModule.produce(), ECALRegFEDSelector.produce(), L1SubsystemKeysOnlineProd.produce(), L1TriggerKeyOnlineProd.produce(), DDCompactViewESProducer.produce(), PFCand_AssoMap.produce(), DDCompactViewMFESProducer.produce(), cms::HitReCalibrator.produce(), HcalDbProducer.produce(), ZToLLEdmNtupleDumper.produce(), GctDigiToRaw.produce(), DDSpecParRegistryESProducer.produce(), AlCaDiJetsProducer.produce(), AlCaGammaJetProducer.produce(), HcalDigiToRawuHTR.produce(), DTuROSRawToDigi.produce(), L1GlobalTriggerRecordProducer.produce(), LTCRawToDigi.produce(), ScalersRawToDigi.produce(), ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >.produce(), PixelFEDChannelCollectionProducer.produce(), MisalignedTrackerESProducer.produce(), SiStripFineDelayHit.produce(), TrackCandidateProducer.produce(), FromClusterSummaryMultiplicityProducer.produce(), CTPPSBeamParametersESSource.produce(), HBHENoiseFilterResultProducer.produce(), SiPixelQualityESProducer.produce(), DDVectorRegistryESProducer.produce(), L1ObjectKeysOnlineProdBase.produce(), EventWithHistoryProducer.produce(), AlCaHcalNoiseProducer.produce(), CastorDbProducer.produce(), PF_PU_AssoMap.produce(), HcalTPGCoderULUT.produce(), TcdsRawToDigi.produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector.produce(), MisalignedMuonESProducer.produce(), SiStripLorentzAngleFakeESSource.produce(), DDDetectorESProducer.produce(), L1GTEvmDigiToRaw.produce(), EventWithHistoryProducerFromL1ABC.produce(), FWTGeoRecoGeometryESProducer.produce(), RctRawToDigi.produce(), EcalFEDWithCRCErrorProducer.produce(), CalibrationTrackSelectorFromDetIdList.produce(), MuonMillepedeTrackRefitter.produce(), CaloTPGTranscoderULUTs.produce(), IsolatedPixelTrackCandidateProducer.produce(), EcalRawToDigi.produce(), GctRawToDigi.produce(), HcalTextCalibrations.produce(), L1GlobalTriggerEvmRawToDigi.produce(), SoftKillerProducer.produce(), ConfigurableAPVCyclePhaseProducer.produce(), L1GTDigiToRaw.produce(), ValueMapTraslator.produce(), HLTTauRefProducer.produce(), l1t::L1TRawToDigi.produce(), OnlineMetaDataRawToDigi.produce(), SiPixelDigiToRaw.produce(), IsolatedPixelTrackCandidateL1TProducer.produce(), omtf::OmtfPacker.produce(), AlCaECALRecHitReducer.produce(), JetDeltaRTagInfoValueMapProducer< T, I >.produce(), L1GtTextToRaw.produce(), MultiplicityProducer< T >.produce(), omtf::OmtfUnpacker.produce(), CaloMiscalibToolsMC.produce(), CaloMiscalibTools.produce(), l1t::L1TDigiToRaw.produce(), AlCaHBHEMuonProducer.produce(), PF_PU_FirstVertexTracks.produce(), L1ConfigOnlineProdBase< TRcd, TData >.produce(), PFCandidateRecalibrator.produce(), EcalDigiToRaw.produce(), l1t::AMC13DumpToRaw.produce(), l1t::AMCDumpToRaw.produce(), L1GtTriggerMenuLiteProducer.produce(), L1GlobalTriggerRawToDigi.produce(), CTPPSFastTrackingProducer.produce(), AlignmentMuonHIPTrajectorySelector.produce(), TrackingRecHitProducer.produce(), PFCand_NoPU_WithAM.produce(), APVCyclePhaseProducerFromL1ABC.produce(), SiPixelCalibDigiProducer.produce(), reco::modules::TrackFullCloneSelectorBase< Selector >.produce(), ConditionDumperInEdm.produce(), TGeoMgrFromDdd.produce(), sistrip::FEDEmulatorModule.produce(), sistrip::SpyUnpackerModule.produce(), CTPPSSimHitProducer.produce(), JetConstituentSelector< T, C >.produce(), APVCyclePhaseProducerFromL1TS.produce(), ShallowGainCalibration.produce(), l1t::MP7BufferDumpToRaw.produce(), SiStripQualityESProducer.produce(), CTPPSTotemDigiToRaw.produce(), TkLasBeamFitter.produce(), Pi0FixedMassWindowCalibration.produce(), TrackerToMuonPropagator.produce(), EDMtoMEConverter.produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.produce(), CTPPSPixelDigiToRaw.produce(), edm::stream::EDProducerBase.produce(), FastSimProducer.produce(), CSCOverlapsTrackPreparation.produce(), MEtoEDMConverter.produce(), JetDeltaRValueMapProducer< T, C >.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(), HTMLExport.HTMLExport.produce(), and HTMLExport.HTMLExportStatic.produce().
138 if not data.process():
139 raise "JSONExport requires a cms.Process object" 144 jsonfile = open(filename,
'w')
151
def export(self, data, filename, filetype)
def JSONExport.JsonExport.produce |
( |
|
self, |
|
|
|
data |
|
) |
| |
Definition at line 23 of file JSONExport.py.
References muonDTDigis_cfi.pset.
Referenced by JSONExport.JsonExport.export().
28 for k,v
in pdict.items():
29 if v.pythonTypeName()==
'cms.PSet' or v.pythonTypeName()==
'cms.untracked.PSet':
30 result.append([k,v.pythonTypeName(),
'pset',
pset(v.parameters_())])
31 elif v.pythonTypeName()==
'cms.VPSet' or v.pythonTypeName()==
'cms.untracked.VPSet':
32 result.append([k,v.pythonTypeName(),
'vpset',[
pset(a.parameters_())
for a
in v]])
33 elif v.pythonTypeName().lower().startswith(
'cms.v')
or v.pythonTypeName().lower().startswith(
'cms.untracked.v'):
34 result.append([k,v.pythonTypeName(),
'list',[repr(a)
for a
in v]])
36 result.append([k,v.pythonTypeName(),
'single',repr(v.pythonValue())])
42 def moduledict(mod,prefix,links=False):
44 result[
'label']=data.label(mod)
45 result[
'class']=data.classname(mod)
46 result[
'file']=data.pypath(mod)
47 result[
'line']=data.lineNumber(mod)
48 result[
'package']=data.pypackage(mod)
49 result[
'pset']=
pset(mod.parameters_())
50 result[
'type']=data.type(mod)
52 result[
'uses']=[data.uses(mod)]
53 result[
'usedby']=[data.usedBy(mod)]
54 result[
'id']=
'%s_%s'%(prefix,data.label(mod))
58 for tlo
in data.topLevelObjects():
59 children=data.children(tlo)
61 all[tlo._label]=children
63 process = {
'name':data.process().name_(),
'src':data._filename}
74 source[
'class']=data.classname(s)
75 source[
'pset']=
pset(s.parameters_())
78 if 'essources' in all:
79 for e
in all[
'essources']:
80 essources.append(moduledict(e,
'essource'))
82 if 'esproducers' in all:
83 for e
in all[
'esproducers']:
84 essources.append(moduledict(e,
'esproducer'))
86 if 'esprefers' in all:
87 for e
in all[
'esprefers']:
88 essources.append(moduledict(e,
'esprefers'))
91 for s
in all[
'services']:
92 services.append({
'class':data.classname(s),
'pset':
pset(s.parameters_())})
95 def jsonPathRecursive(p,prefix):
97 children = data.children(p)
99 children = [jsonPathRecursive(c,prefix)
for c
in children]
100 return {
'type':
'Sequence',
'label':
'Sequence %s'%(data.label(p)),
'id':
'seq_%s' % data.label(p),
'children':children}
102 return moduledict(p,prefix,
True)
107 for p
in all[
'paths']:
108 path=jsonPathRecursive(p,data.label(p))
110 if not isinstance(path, type([])):
111 if path[
'type']==
'Sequence':
112 path = path[
'children']
117 paths.append({
'label':data.label(p),
'path':path})
119 if 'endpaths' in all:
120 for p
in all[
'endpaths']:
121 path=jsonPathRecursive(p,data.label(p))
123 if not isinstance(path, type([])):
124 if path[
'type']==
'Sequence':
125 path = path[
'children']
130 endpaths.append({
'label':data.label(p),
'path':path})
133 json={
'process':process,
'source':source,
'essources':essources,
'esproducers':esproducers,
'esprefers':esprefers,
'services':services,
'paths':paths,
'endpaths':endpaths}
JSONExport.JsonExport.file_types |
|
static |
JSONExport.JsonExport.option_types |
|
static |
JSONExport.JsonExport.plugin_name |
|
static |