CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
edm::ConfigurationDescriptions Class Reference

#include <ConfigurationDescriptions.h>

Classes

class  DescriptionCounter
 

Public Types

typedef std::vector< std::pair< std::string, ParameterSetDescription > >::iterator iterator
 

Public Member Functions

void add (std::string const &label, ParameterSetDescription const &psetDescription)
 
void add (char const *label, ParameterSetDescription const &psetDescription)
 
void addDefault (ParameterSetDescription const &psetDescription)
 
void addWithDefaultLabel (ParameterSetDescription const &psetDescription)
 
iterator begin ()
 
std::string const & comment () const
 
 ConfigurationDescriptions (std::string const &baseType, std::string const &pluginName)
 
ParameterSetDescriptiondefaultDescription ()
 Returns 0 if no default has been assigned. More...
 
iterator end ()
 
void print (std::ostream &os, std::string const &moduleLabel, bool brief, bool printOnlyLabels, size_t lineWidth, int indentation, int iPlugin) const
 
void setComment (std::string const &value)
 
void setComment (char const *value)
 
void validate (ParameterSet &pset, std::string const &moduleLabel) const
 
void writeCfis (std::set< std::string > &usedCfiFileNames) const
 
 ~ConfigurationDescriptions ()
 

Private Member Functions

void printForLabel (std::pair< std::string, ParameterSetDescription > const &labelAndDesc, std::ostream &os, std::string const &moduleLabel, bool brief, bool printOnlyLabels, size_t lineWidth, int indentationn, DescriptionCounter &counter) const
 
void printForLabel (std::ostream &os, std::string const &label, ParameterSetDescription const &description, std::string const &moduleLabel, bool brief, bool printOnlyLabels, size_t lineWidth, int indentationn, DescriptionCounter &counter) const
 

Static Private Member Functions

static void writeCfiForLabel (std::pair< std::string, ParameterSetDescription > const &labelAndDesc, std::string const &baseType, std::string const &pluginName, std::set< std::string > &usedCfiFileNames)
 

Private Attributes

std::string baseType_
 
std::string comment_
 
ParameterSetDescription defaultDesc_
 
bool defaultDescDefined_
 
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
 
std::string pluginName_
 

Detailed Description

Definition at line 28 of file ConfigurationDescriptions.h.

Member Typedef Documentation

typedef std::vector<std::pair<std::string, ParameterSetDescription> >::iterator edm::ConfigurationDescriptions::iterator

Definition at line 30 of file ConfigurationDescriptions.h.

Constructor & Destructor Documentation

ConfigurationDescriptions::ConfigurationDescriptions ( std::string const &  baseType,
std::string const &  pluginName 
)
ConfigurationDescriptions::~ConfigurationDescriptions ( )

Definition at line 46 of file ConfigurationDescriptions.cc.

46 {}

Member Function Documentation

void ConfigurationDescriptions::add ( std::string const &  label,
ParameterSetDescription const &  psetDescription 
)

Definition at line 57 of file ConfigurationDescriptions.cc.

References baseType_, defaultDescDefined_, descriptions_, Exception, k_source, kService, edm::kSource, label, and edm::errors::LogicError.

Referenced by add(), addWithDefaultLabel(), comment(), PFTauPrimaryVertexProducer::fillDescriptions(), cond::EmptyIOVSource::fillDescriptions(), GEDGsfElectronCoreProducer::fillDescriptions(), edm::EmptySource::fillDescriptions(), HLTDynamicPrescaler::fillDescriptions(), PixelTrackCleanerBySharedHitsESProducer::fillDescriptions(), edm::ModuloEventIDFilter::fillDescriptions(), edm::ModuloStreamIDFilter::fillDescriptions(), PFTauMiniAODPrimaryVertexProducer::fillDescriptions(), TrackAlgoPriorityOrderESProducer::fillDescriptions(), TrackCleanerESProducer::fillDescriptions(), edm::Prescaler::fillDescriptions(), edm::TestSource::fillDescriptions(), RecoTauDecayModeCutMultiplexer::fillDescriptions(), ClusterCheckerEDProducer::fillDescriptions(), CrossingFramePSimHitToPSimHitsConverter::fillDescriptions(), L1TStage2RatioClient::fillDescriptions(), PixelCPEClusterRepairESProducer::fillDescriptions(), SeedingLayersEDProducer::fillDescriptions(), TrackingParticleConversionRefSelector::fillDescriptions(), HLTDQMObjSelector< ObjType, ObjCollType >::fillDescriptions(), dqmservices::JsonWritingTimeoutPoolOutputModule::fillDescriptions(), edm::EventAuxiliaryHistoryProducer::fillDescriptions(), HLTDiMuonGlbTrkFilter::fillDescriptions(), LwtnnESProducer::fillDescriptions(), SeedGeneratorFromProtoTracksEDProducer::fillDescriptions(), HLTEcalIsolationFilter::fillDescriptions(), HLTPixelClusterShapeFilter::fillDescriptions(), HLTDisplacedmumuFilter::fillDescriptions(), HLTTrackSeedMultiplicityFilter::fillDescriptions(), HLTDisplacedmumumuFilter::fillDescriptions(), HLTDisplacedtktkFilter::fillDescriptions(), HLTDisplacedtktktkFilter::fillDescriptions(), ValidHitPairFilterProducer::fillDescriptions(), PixelTrackProducer::fillDescriptions(), GsfTrackProducer::fillDescriptions(), HLTMuonTrkL1TFilter::fillDescriptions(), HLTMuonTrkFilter::fillDescriptions(), HLTmumutkFilter::fillDescriptions(), HGCalRawToDigiFake::fillDescriptions(), HGCDigiConverter::fillDescriptions(), LowPtGsfElectronCoreProducer::fillDescriptions(), HIBestVertexProducer::fillDescriptions(), BasicToPFJet::fillDescriptions(), DeepMETProducer::fillDescriptions(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::fillDescriptions(), HFNoseRawToDigiFake::fillDescriptions(), PixelTrackFilterByKinematicsProducer::fillDescriptions(), TrackingParticleNumberOfLayersProducer::fillDescriptions(), HLTPixelActivityFilter::fillDescriptions(), HLTPixelIsolTrackFilter::fillDescriptions(), edmtest::AlignPCLThresholdsReader::fillDescriptions(), HLTmumutktkFilter::fillDescriptions(), QGTagger::fillDescriptions(), TrackingParticleBHadronRefSelector::fillDescriptions(), HLTPixelIsolTrackL1TFilter::fillDescriptions(), pat::UnclusteredBlobProducer::fillDescriptions(), ClusterShapeTrackFilterProducer::fillDescriptions(), MeasurementTrackerEventProducer::fillDescriptions(), VertexAssociatorByTracksProducer::fillDescriptions(), HLTMuonTrackMassFilter::fillDescriptions(), CTPPSModifiedOpticalFunctionsESSource::fillDescriptions(), HLTEcalPixelIsolTrackFilter::fillDescriptions(), TrackerGeometricDetESModule::fillDescriptions(), MTDGeometricTimingDetESModule::fillDescriptions(), ESRawToDigi::fillDescriptions(), HLTElectronMissingHitsFilter::fillDescriptions(), HIPixelTrackFilterProducer::fillDescriptions(), L1TStage2uGMTMuon::fillDescriptions(), PFRecoTauDiscriminationByLeadingObjectPtCut::fillDescriptions(), MultiHitFromChi2EDProducer::fillDescriptions(), HLTCSCOverlapFilter::fillDescriptions(), HLTDQMMuonSelector::fillDescriptions(), GeneratorSmearedProducer::fillDescriptions(), HLTCSCRing2or3Filter::fillDescriptions(), HLTMultipletFilter::fillDescriptions(), HcalTrigTowerGeometryESProducer::fillDescriptions(), HcalParametersESModule::fillDescriptions(), MTDTopologyEP::fillDescriptions(), MTDDigiGeometryESModule::fillDescriptions(), TrackerTopologyEP::fillDescriptions(), edm::StreamerOutputModule< Consumer >::fillDescriptions(), dqmservices::DQMProtobufReader::fillDescriptions(), LowPtGsfElectronSCProducer::fillDescriptions(), LowPtGsfElectronSeedValueMapsProducer::fillDescriptions(), EgammaHLTTimeCleanedRechitProducer::fillDescriptions(), ECFAdder::fillDescriptions(), HLTHemiDPhiFilter::fillDescriptions(), L1TStage2RegionalMuonCandComp::fillDescriptions(), TrigObjTnPSource::fillDescriptions(), L1TStage2MuonComp::fillDescriptions(), VertexAssociatorByPositionAndTracksProducer::fillDescriptions(), HLTHcalNoiseFilter::fillDescriptions(), HLTPixelTrackFilter::fillDescriptions(), TrackerParametersESModule::fillDescriptions(), NumberPerLSFilter::fillDescriptions(), HLTElectronPixelMatchFilter::fillDescriptions(), PUFilter::fillDescriptions(), EcalUncalibRecHitProducer::fillDescriptions(), MTDCPEESProducer::fillDescriptions(), HLTForwardBackwardJetsFilter< T >::fillDescriptions(), HLTJetL1MatchProducer< T >::fillDescriptions(), GEMDQMHarvester::fillDescriptions(), HLTNVFilter::fillDescriptions(), HLTPhi2METFilter::fillDescriptions(), HLTRapGapFilter::fillDescriptions(), PFJetsMatchedToFilteredCaloJetsProducer::fillDescriptions(), TriggerRatesMonitorClient::fillDescriptions(), HLTMuonL1RegionalFilter::fillDescriptions(), HLTMuonL1TFilter::fillDescriptions(), HLTRPCFilter::fillDescriptions(), TFileAdaptor::fillDescriptions(), IPTCorrector::fillDescriptions(), IsolatedEcalPixelTrackCandidateProducer::fillDescriptions(), ElectronIDValueMapProducer::fillDescriptions(), HLTScoutingPrimaryVertexProducer::fillDescriptions(), HLT2jetGapFilter::fillDescriptions(), MuonReducedTrackExtraProducer::fillDescriptions(), evf::EvFFEDSelector::fillDescriptions(), HLTHcalMETNoiseCleaner::fillDescriptions(), edm::BunchCrossingFilter::fillDescriptions(), HLTJetCollectionsFilter< jetType >::fillDescriptions(), HLTPFTauPairLeadTrackDzMatchFilter::fillDescriptions(), L2TauJetsMerger::fillDescriptions(), CaloRecoTauDiscriminationByLeadingTrackPtCut::fillDescriptions(), HLTJetL1TMatchProducer< T >::fillDescriptions(), PFRecoTauDiscriminationByCharge::fillDescriptions(), L1TStage2uGMT::fillDescriptions(), CTPPSOpticalFunctionsESSource::fillDescriptions(), MCParticleModuloFilter::fillDescriptions(), HLTHcalTowerFilter::fillDescriptions(), HcalTopologyIdealEP::fillDescriptions(), MTDParametersESModule::fillDescriptions(), HLTJetPairDzMatchFilter< T >::fillDescriptions(), CSCDCCUnpacker::fillDescriptions(), HLTEgammaAllCombMassFilter::fillDescriptions(), HLTEgammaDoubleLegCombFilter::fillDescriptions(), DeepFlavourONNXJetTagsProducer::fillDescriptions(), CTPPSInterpolatedOpticalFunctionsESSource::fillDescriptions(), DTObjectMapESProducer::fillDescriptions(), CSCObjectMapESProducer::fillDescriptions(), AnyJetToCaloJetProducer::fillDescriptions(), HLTHPDFilter::fillDescriptions(), L1THLTTauMatching::fillDescriptions(), PFTauDiscriminatorLogicalAndProducer::fillDescriptions(), HLTMuonL1TRegionalFilter::fillDescriptions(), HLTMuonL3SimplePreFilter::fillDescriptions(), TOFPIDProducer::fillDescriptions(), HLTSingleVertexPixelTrackFilter::fillDescriptions(), StableParametersTrivialProducer::fillDescriptions(), RPCInverseCPPFLinkMapESProducer::fillDescriptions(), RPCInverseLBLinkMapESProducer::fillDescriptions(), RPCInverseOMTFLinkMapESProducer::fillDescriptions(), HLTEgammaCombMassFilter::fillDescriptions(), PATMuonMerger::fillDescriptions(), PileUpFilter::fillDescriptions(), RPCInverseTwinMuxLinkMapESProducer::fillDescriptions(), HLTHcalLaserFilter::fillDescriptions(), L1HLTTauMatching::fillDescriptions(), HLTDeDxFilter::fillDescriptions(), HitPairEDProducer::fillDescriptions(), SeedCreatorFromRegionHitsEDProducerT< T_SeedCreator >::fillDescriptions(), edm::service::UnixSignalService::fillDescriptions(), JetTracksAssociationToTrackRefs::fillDescriptions(), pat::BadPFCandidateJetsEEnoiseProducer::fillDescriptions(), L1GTPrescaler::fillDescriptions(), HLTElectronEtFilter::fillDescriptions(), EgammaHLTHybridClusterProducer::fillDescriptions(), EgammaHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), EgammaEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), MVAJetPuIdProducer::fillDescriptions(), HLTHcalMETNoiseFilter::fillDescriptions(), GEMDQMStatusDigi::fillDescriptions(), MTDTimeCalibESProducer::fillDescriptions(), BunchSpacingProducer::fillDescriptions(), HLTDiJetAveEtaFilter< T >::fillDescriptions(), HLTDiJetAveFilter< T >::fillDescriptions(), HLTDiJetEtaTopologyFilter< T >::fillDescriptions(), TrackFitterProducer::fillDescriptions(), KFBasedPixelFitterProducer::fillDescriptions(), PixelFitterByHelixProjectionsProducer::fillDescriptions(), HLTHcalTowerNoiseCleaner::fillDescriptions(), HLTHcalTowerNoiseCleanerWithrechit::fillDescriptions(), HLTJetEtaTopologyFilter< T >::fillDescriptions(), HLTJetVBFFilter< T >::fillDescriptions(), HLTMonoJetFilter< T >::fillDescriptions(), PFRecoTauDiscriminationByNProngs::fillDescriptions(), L1TMP7ZeroSupp::fillDescriptions(), HLTMuonDimuonL2Filter::fillDescriptions(), HLTMuonDimuonL2FromL1TFilter::fillDescriptions(), PixelInactiveAreaTrackingRegionsSeedingLayersProducer::fillDescriptions(), HLTMuonL2PreFilter::fillDescriptions(), HLTMuonL2FromL1TPreFilter::fillDescriptions(), HLTMuonPFIsoFilter::fillDescriptions(), HLTTriMuonIsolation::fillDescriptions(), HLTPhysicsDeclared::fillDescriptions(), ConeIsolation::fillDescriptions(), HLTDisplacedEgammaFilter::fillDescriptions(), LowPtGSFToPackedCandidateLinker::fillDescriptions(), HLTEgammaDoubleEtDeltaPhiFilter::fillDescriptions(), HLTEgammaEtFilter::fillDescriptions(), HLTEgammaEtFilterPairs::fillDescriptions(), HLTElectronGenericFilter::fillDescriptions(), HLTElectronOneOEMinusOneOPFilterRegional::fillDescriptions(), LowPtGSFToTrackLinker::fillDescriptions(), EcalRecHitsMerger::fillDescriptions(), RPCUnpackingModule::fillDescriptions(), ESRecHitsMerger::fillDescriptions(), photonIsolationHIProducer::fillDescriptions(), GEMDQMSourceDigi::fillDescriptions(), L3MuonSumCaloPFIsolationProducer::fillDescriptions(), HLTExclDiJetFilter< T >::fillDescriptions(), HLTFatJetMassFilter< jetType >::fillDescriptions(), TreeWriterForEcalCorrection::fillDescriptions(), HLTJetCollectionsVBFFilter< T >::fillDescriptions(), PFRecoTauDiscriminationByTauPolarization::fillDescriptions(), RecoTauPileUpVertexSelector::fillDescriptions(), HLTMuonIsoFilter::fillDescriptions(), PuppiProducer::fillDescriptions(), edm::StreamerFileReader::fillDescriptions(), CTPPSPixelRawToDigi::fillDescriptions(), DTUnpackingModule::fillDescriptions(), DeepDoubleXONNXJetTagsProducer::fillDescriptions(), HLTEgammaGenericQuadraticEtaFilter::fillDescriptions(), HLTEgammaGenericQuadraticFilter::fillDescriptions(), HLTEgammaTriggerFilterObjectWrapper::fillDescriptions(), HLTElectronEoverpFilterRegional::fillDescriptions(), EgammaHLTCaloTowerProducer::fillDescriptions(), EgammaHLTIslandClusterProducer::fillDescriptions(), TriggerSummaryAnalyzerRAW::fillDescriptions(), TriggerSummaryAnalyzerAOD::fillDescriptions(), RPCAMCRawToDigi::fillDescriptions(), RPCTwinMuxDigiToRaw::fillDescriptions(), HiFJGridEmptyAreaCalculator::fillDescriptions(), HIProtoTrackFilterProducer::fillDescriptions(), edm::AsciiOutputModule::fillDescriptions(), HitTripletEDProducerT< T_HitTripletGenerator >::fillDescriptions(), CAHitNtupletEDProducerT< T_Generator >::fillDescriptions(), HLTMhtFilter::fillDescriptions(), PFRecoTauDiscriminationByHPSSelection::fillDescriptions(), PFTauViewRefMerger::fillDescriptions(), HLTMuonL1toL3TkPreFilter::fillDescriptions(), HLTMuonTrimuonL3Filter::fillDescriptions(), edm::TimeoutPoolOutputModule::fillDescriptions(), CTPPSLHCInfoRandomXangleESSource::fillDescriptions(), LowPtGsfElectronIDProducer::fillDescriptions(), HLTPMDocaFilter::fillDescriptions(), BeamSpotProblemMonitor::fillDescriptions(), RPCDigiMerger::fillDescriptions(), HLTBool::fillDescriptions(), HiFJRhoProducer::fillDescriptions(), HLTSinglet< T >::fillDescriptions(), cms::CSJetProducer::fillDescriptions(), HcalSimpleReconstructor::fillDescriptions(), GEMDQMSource::fillDescriptions(), HLTAcoFilter::fillDescriptions(), SiPixelClusterShapeCacheProducer::fillDescriptions(), PFJetsMaxInvMassModule::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), HLTMuonL1TtoL3TkPreFilter::fillDescriptions(), edm::ZombieKillerService::fillDescriptions(), ThroughputServiceClient::fillDescriptions(), VertexCompositeCandidateCollectionSelector::fillDescriptions(), dqmservices::DQMStreamerReader::fillDescriptions(), dqm::RamdiskMonitor::fillDescriptions(), PATPuppiJetSpecificProducer::fillDescriptions(), CTPPSBeamParametersFromLHCInfoESSource::fillDescriptions(), HLTEventAnalyzerAOD::fillDescriptions(), HLTEventAnalyzerRAW::fillDescriptions(), EgammaHLTMulti5x5ClusterProducer::fillDescriptions(), HLTGlobalSums< T >::fillDescriptions(), EcalRecHitProducer::fillDescriptions(), HLTAlphaTFilter< T >::fillDescriptions(), HLTMuonL2SelectorForL3IO::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), HLTPFJetIDProducer::fillDescriptions(), GlobalTrackingRegionProducer::fillDescriptions(), edm::service::ConcurrentModuleTimer::fillDescriptions(), RandomEngineStateProducer::fillDescriptions(), MuonIDTableProducer::fillDescriptions(), HLTEgammaDoubleEtFilter::fillDescriptions(), HLTEgammaDoubleEtPhiFilter::fillDescriptions(), DeepBoostedJetTagInfoProducer::fillDescriptions(), HLTEgammaL1MatchFilterPairs::fillDescriptions(), HLTEgammaL1MatchFilterRegional::fillDescriptions(), sistrip::ExcludedFEDListProducer::fillDescriptions(), HLTRFilter::fillDescriptions(), L2MuonIsolationProducer::fillDescriptions(), L3MuonCombinedRelativeIsolationProducer::fillDescriptions(), ChargedHadronPFTrackIsolationProducer::fillDescriptions(), HLTHtMhtFilter::fillDescriptions(), CaloTowerFromL1TSeededCreatorForTauHLT::fillDescriptions(), PFTauL1TJetsMatching::fillDescriptions(), HLTMinDPhiMETFilter::fillDescriptions(), HLTMuonL3PreFilter::fillDescriptions(), edm::service::ResourceEnforcer::fillDescriptions(), SiStripDetVOffPrinter::fillDescriptions(), PFRecoTauDiscriminationByDeltaE::fillDescriptions(), BPHHistoSpecificDecay::fillDescriptions(), EnergyRingsTableProducer::fillDescriptions(), MillePedeFileConverter::fillDescriptions(), HLTEgammaL1TMatchFilterRegional::fillDescriptions(), IslandClusterProducer::fillDescriptions(), PSMonitorClient::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), RecoTauPiZeroUnembedder::fillDescriptions(), HLTMuonL1Filter::fillDescriptions(), HLTDTROMonitorFilter::fillDescriptions(), HLTEcalTowerFilter::fillDescriptions(), CaloTowerTopologyEP::fillDescriptions(), HLTPixelActivityHFSumEnergyFilter::fillDescriptions(), HcalDDDSimConstantsESModule::fillDescriptions(), HLTPixlMBFilt::fillDescriptions(), HLTPixlMBForAlignmentFilter::fillDescriptions(), BeamDivergenceVtxGenerator::fillDescriptions(), HLLHCEvtVtxGenerator::fillDescriptions(), HLTEgammaCaloIsolFilterPairs::fillDescriptions(), CTPPSDiamondLocalTrackFitter::fillDescriptions(), HcalRawToDigi::fillDescriptions(), EgammaHLTCombinedIsolationProducer::fillDescriptions(), FilterOutLowPt::fillDescriptions(), SiPixelRawToDigi::fillDescriptions(), HGCalMultiClusterProducer::fillDescriptions(), HLTRHemisphere::fillDescriptions(), GlobalTrackQualityProducer::fillDescriptions(), HLTCaloTowerHtMhtProducer::fillDescriptions(), CaloRecoTauDiscriminationByDeltaE::fillDescriptions(), MTDTrackingRecHitProducer::fillDescriptions(), HLTGetRaw::fillDescriptions(), DQMScaleToClient::fillDescriptions(), HLTCTPPSLocalTrackFilter::fillDescriptions(), HLTDisplacedmumumuVtxProducer::fillDescriptions(), PileupJetIDVarProducer::fillDescriptions(), TotemRPRecHitProducer::fillDescriptions(), TotemTimingLocalTrackFitter::fillDescriptions(), EgammaHLTClusterShapeProducer::fillDescriptions(), EgammaHLTRecoEcalCandidateProducers::fillDescriptions(), RawDataMapperByLabel::fillDescriptions(), HLTSmartSinglet< T >::fillDescriptions(), PixelFitterByConformalMappingAndLineProducer::fillDescriptions(), HLTMuonDimuonL3Filter::fillDescriptions(), CandMergerCleanOthersByDR::fillDescriptions(), MillePedeFileExtractor::fillDescriptions(), TrackerDigiGeometryESModule::fillDescriptions(), HLTDisplacedmumuVtxProducer::fillDescriptions(), HLTJetTagWithMatching< T >::fillDescriptions(), CTPPSLocalTrackLiteProducer::fillDescriptions(), EgammaHLTRemoveDuplicatedSC::fillDescriptions(), EgammaHLTPFChargedIsolationProducer::fillDescriptions(), HLTLevel1Pattern::fillDescriptions(), TotemRPClusterProducer::fillDescriptions(), EcalDetIdToBeRecoveredProducer::fillDescriptions(), MuonSeedGenerator::fillDescriptions(), TSGForOI::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), EtlDigiHitsValidation::fillDescriptions(), EtlRecHitsValidation::fillDescriptions(), HLTCaloTowerFilter::fillDescriptions(), HLTJetTag< T >::fillDescriptions(), EgammaHLTElectronCombinedIsolationProducer::fillDescriptions(), EgammaHLTPFNeutralIsolationProducer::fillDescriptions(), EgammaHLTPFPhotonIsolationProducer::fillDescriptions(), EgammaHLTPixelMatchElectronProducers::fillDescriptions(), TriggerSummaryProducerRAW::fillDescriptions(), HLTDoubletDZ< T1, T2 >::fillDescriptions(), HLTPFEnergyFractionsFilter::fillDescriptions(), HLTSummaryFilter::fillDescriptions(), GEMRecHitProducer::fillDescriptions(), SiPixelStatusProducer::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), HLTMETCleanerUsingJetID::fillDescriptions(), CSCRecHitDProducer::fillDescriptions(), GEMChamberMasker::fillDescriptions(), HLTHcalLaserMisfireFilter::fillDescriptions(), HLTMhtProducer::fillDescriptions(), citk::PFIsolationSumProducerForPUPPI::fillDescriptions(), GenJetFlavourTableProducer::fillDescriptions(), GEMDigiToRawModule::fillDescriptions(), HcalRawToDigiFake::fillDescriptions(), HLTElectronPFMTFilter< T >::fillDescriptions(), EgammaHLTEcalRecIsolationProducer::fillDescriptions(), RPCTwinMuxRawToDigi::fillDescriptions(), sistrip::DigiToRawModule::fillDescriptions(), HGCalLayerClusterProducer::fillDescriptions(), CTPPSDiamondRecHitProducer::fillDescriptions(), HLTHtMhtProducer::fillDescriptions(), LogErrorFilter::fillDescriptions(), L1TObjectsTiming::fillDescriptions(), HLTScoutingTrackProducer::fillDescriptions(), HLTCountNumberOfObject< OColl >::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), PFClusterTimeAssigner::fillDescriptions(), HLTTriggerTypeFilter::fillDescriptions(), FastTimerServiceClient::fillDescriptions(), L1TGlobalSummary::fillDescriptions(), HLTDisplacedtktktkVtxProducer::fillDescriptions(), HLTDisplacedtktkVtxProducer::fillDescriptions(), CTPPSPixelRecHitProducer::fillDescriptions(), HLTEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), EcalListOfFEDSProducer::fillDescriptions(), ESListOfFEDSProducer::fillDescriptions(), EgammaHLTRegionalPixelSeedGeneratorProducers::fillDescriptions(), ClusterTPAssociationProducer::fillDescriptions(), HLTCaloJetIDProducer::fillDescriptions(), edm::service::LoadAllDictionaries::fillDescriptions(), HLTMuonTrackSelector::fillDescriptions(), PFRecoTauDiscriminationAgainstMuon::fillDescriptions(), LHESource::fillDescriptions(), HLTVertexFilter::fillDescriptions(), HLTDoublet< T1, T2 >::fillDescriptions(), Tau3MuMonitor::fillDescriptions(), TSGForOIFromL2::fillDescriptions(), HLTHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), PPSTimingCalibrationESSource::fillDescriptions(), CTPPSProtonProducer::fillDescriptions(), HLTFiltCand::fillDescriptions(), TotemTimingRecHitProducer::fillDescriptions(), PFRecoTauDiscriminationByInvMass::fillDescriptions(), EventIDChecker::fillDescriptions(), ME0ChamberMasker::fillDescriptions(), BtlRecHitsValidation::fillDescriptions(), BtlDigiHitsValidation::fillDescriptions(), PSMonitor::fillDescriptions(), BPHWriteSpecificDecay::fillDescriptions(), HLTCollectionProducer< T >::fillDescriptions(), BeamSpotRcdPrinter::fillDescriptions(), edm::service::CondorStatusService::fillDescriptions(), EgammaHLTElectronTrackIsolationProducers::fillDescriptions(), EgammaHLTHcalIsolationDoubleConeProducers::fillDescriptions(), HIMuonTrackingRegionProducer::fillDescriptions(), TotemRPLocalTrackFitter::fillDescriptions(), CTPPSProtonReconstructionEfficiencyEstimatorData::fillDescriptions(), AbortOnEventIDAnalyzer::fillDescriptions(), CaloRecoTauProducer::fillDescriptions(), HLTJetSortedVBFFilter< T >::fillDescriptions(), TriggerBxVsOrbitMonitor::fillDescriptions(), HLTEventNumberFilter::fillDescriptions(), ThroughputService::fillDescriptions(), PFRecoTauProducer::fillDescriptions(), EgammaHLTR9IDProducer::fillDescriptions(), GlobalTrackingRegionProducerFromBeamSpot::fillDescriptions(), TriggerResultsFilterFromDB::fillDescriptions(), EgammaHLTElectronDetaDphiProducer::fillDescriptions(), DQMCorrelationClient::fillDescriptions(), L3MuonProducer::fillDescriptions(), EgammaHLTNxNClusterProducer::fillDescriptions(), HLTLevel1Activity::fillDescriptions(), PFRecoTauTagInfoProducer::fillDescriptions(), HLTL1TMuonSelector::fillDescriptions(), edm::service::PrescaleService::fillDescriptions(), edm::service::CPU::fillDescriptions(), HLTHcalPhiSymFilter::fillDescriptions(), HLTL1NumberFilter::fillDescriptions(), HLTTrackWithHits::fillDescriptions(), LeptonInJetProducer< T >::fillDescriptions(), HLTmumutktkVtxProducer::fillDescriptions(), pat::PATJetUpdater::fillDescriptions(), FedRawDataInputSource::fillDescriptions(), HLTrigReport::fillDescriptions(), TotemRPUVPatternFinder::fillDescriptions(), HLTHighLevel::fillDescriptions(), HLTJetCollectionsForLeptonPlusJets< jetType >::fillDescriptions(), TriggerResultsFilter::fillDescriptions(), EgammaHLTPhotonTrackIsolationProducersRegional::fillDescriptions(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::fillDescriptions(), DPFIsolation::fillDescriptions(), edm::PrintEventSetupDataRetrieval::fillDescriptions(), HLTFEDSizeFilter::fillDescriptions(), PrintLoadingPlugins::fillDescriptions(), HcalDDDRecConstantsESModule::fillDescriptions(), EgammaHLTHcalIsolationProducersRegional::fillDescriptions(), edm::LogErrorHarvester::fillDescriptions(), PFRecoTauDiscriminationByFlightPathSignificance::fillDescriptions(), MTDClusterProducer::fillDescriptions(), pat::LeptonUpdater< T >::fillDescriptions(), L1ECALPrefiringWeightProducer::fillDescriptions(), GEMRawToDigiModule::fillDescriptions(), citk::PFIsolationSumProducer::fillDescriptions(), HLTScoutingCaloProducer::fillDescriptions(), DTCCablingMapTestProducer::fillDescriptions(), HLTElectronMuonInvMassFilter::fillDescriptions(), HLTGenericFilter< T1 >::fillDescriptions(), CaloRecoTauTagInfoProducer::fillDescriptions(), EgammaHLTR9Producer::fillDescriptions(), L2MuonProducer::fillDescriptions(), HLTMuonPointingFilter::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), ScalersRawToDigi::fillDescriptions(), HLTJetCollForElePlusJets< T >::fillDescriptions(), HLTTrackerHaloFilter::fillDescriptions(), EgammaHLTBcHcalIsolationProducersRegional::fillDescriptions(), DiDispStaMuonMonitor::fillDescriptions(), HotlineDQM::fillDescriptions(), HLTHcalNZSFilter::fillDescriptions(), HLTHcalSimpleRecHitFilter::fillDescriptions(), DeepDoubleXTagInfoProducer::fillDescriptions(), EgammaIsoHcalDetIdCollectionProducer::fillDescriptions(), HcalRecAlgoESProducer::fillDescriptions(), MagneticFieldFilter::fillDescriptions(), HLTJetCollectionsForElePlusJets< T >::fillDescriptions(), RecoTauDiscriminantCutMultiplexer::fillDescriptions(), ElectronStudy::fillDescriptions(), EtlSimHitsValidation::fillDescriptions(), HGCalElectronFilter::fillDescriptions(), HGCalPhotonIDValueMapProducer::fillDescriptions(), HLTTrackMETProducer::fillDescriptions(), DeepFlavourTagInfoProducer::fillDescriptions(), RecAnalyzerHF::fillDescriptions(), HLTmmkFilter::fillDescriptions(), HLTmmkkFilter::fillDescriptions(), EcalSimpleUncalibRecHitFilter::fillDescriptions(), HLTL1MuonNoL2Selector::fillDescriptions(), XrdAdaptor::XrdStatisticsService::fillDescriptions(), CTPPSPixelClusterProducer::fillDescriptions(), HLTL1MuonSelector::fillDescriptions(), HGCalElectronIDValueMapProducer::fillDescriptions(), HLTHcalCalibTypeFilter::fillDescriptions(), edm::PrintEventSetupContent::fillDescriptions(), PFBadHcalPseudoClusterProducer::fillDescriptions(), NoBPTXMonitor::fillDescriptions(), SUSY_HLT_Razor::fillDescriptions(), CorrectedPFMETProducer::fillDescriptions(), CSCDigiToRawModule::fillDescriptions(), HLTCAWZTagFilter::fillDescriptions(), HLTScoutingPFProducer::fillDescriptions(), HLTmumutkVtxProducer::fillDescriptions(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::fillDescriptions(), IsolatedPixelTrackCandidateProducer::fillDescriptions(), HGCalShowerSeparation::fillDescriptions(), MuonGeometryDBConverter::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), PATTauDiscriminantCutMultiplexer::fillDescriptions(), CTPPSPixelLocalTrackProducer::fillDescriptions(), TcdsRawToDigi::fillDescriptions(), CaloTowerConstituentsMapBuilder::fillDescriptions(), HGCalHitCalibration::fillDescriptions(), HLTCSCActivityFilter::fillDescriptions(), HLTJetHbbFilter< T >::fillDescriptions(), L1TGlobalProducer::fillDescriptions(), HcalHBHEMuonSimAnalyzer::fillDescriptions(), PFTauDecayModeCutMultiplexer::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), LowPtGsfElectronSeedProducer::fillDescriptions(), PFClusterMatchedToPhotonsSelector::fillDescriptions(), DTCCablingMapTestReader::fillDescriptions(), edm::service::CheckTransitions::fillDescriptions(), edm::EmbeddedRootSource::fillDescriptions(), edm::PoolSource::fillDescriptions(), HLTRechitInRegionsProducer< T1 >::fillDescriptions(), IsolatedPixelTrackCandidateL1TProducer::fillDescriptions(), EgammaHLTEcalIsolationProducersRegional::fillDescriptions(), l1t::L1TRawToDigi::fillDescriptions(), LumiMonitor::fillDescriptions(), AlCaIsoTracksProducerFilter::fillDescriptions(), AlCaIsolatedBunchSelector::fillDescriptions(), AlCaIsolatedBunchFilter::fillDescriptions(), CTPPSBeamParametersESSource::fillDescriptions(), PFECALSuperClusterProducer::fillDescriptions(), HLTPrescaleRecorder::fillDescriptions(), edm::service::SiteLocalConfigService::fillDescriptions(), edm::service::Timing::fillDescriptions(), RunLumiEventChecker::fillDescriptions(), HLTScoutingEgammaProducer::fillDescriptions(), HLTBeamModeFilter::fillDescriptions(), ElectronNHitSeedProducer::fillDescriptions(), GctRawToDigi::fillDescriptions(), l1t::L1TDigiToRaw::fillDescriptions(), DeDxEstimatorProducer::fillDescriptions(), BtlSimHitsValidation::fillDescriptions(), JetVertexChecker::fillDescriptions(), HLTRechitsToDigis::fillDescriptions(), SiStripApvGainRescaler::fillDescriptions(), RecoTauPiZeroProducer::fillDescriptions(), CaloParticleDebugger::fillDescriptions(), OnlineMetaDataRawToDigi::fillDescriptions(), HGCalTimingAnalyzer::fillDescriptions(), HcalCollapseAnalyzer::fillDescriptions(), HLTCSCAcceptBusyFilter::fillDescriptions(), omtf::OmtfPacker::fillDescriptions(), reco::HcalNoiseInfoProducer::fillDescriptions(), EcalRawToDigi::fillDescriptions(), VertexFromTrackProducer::fillDescriptions(), CTPPSDirectProtonSimulation::fillDescriptions(), CaloRecHitsBeamHaloCleaned::fillDescriptions(), FastjetJetProducer::fillDescriptions(), PATTauDiscriminationAgainstElectronMVA6::fillDescriptions(), L1TExtCondProducer::fillDescriptions(), DiJetMonitor::fillDescriptions(), __class__< T >::fillDescriptions(), EGMEnergyVarProducer< T >::fillDescriptions(), L1TCaloUpgradeToGCTConverter::fillDescriptions(), omtf::OmtfUnpacker::fillDescriptions(), ElectronSeedProducer::fillDescriptions(), PrimaryVertexResolution::fillDescriptions(), HLTScoutingMuonProducer::fillDescriptions(), PrescaleEventFilter::fillDescriptions(), HLTHFAsymmetryFilter::fillDescriptions(), RecoTauMVATransform::fillDescriptions(), ZMuMuMassConstraintParameterFinder::fillDescriptions(), HcalLaserEventFilter::fillDescriptions(), IsolatedParticlesGeneratedJets::fillDescriptions(), L1TExtCondLegacyToStage2::fillDescriptions(), SiStripChannelGainFromDBMiscalibrator::fillDescriptions(), SiStripNoisesFromDBMiscalibrator::fillDescriptions(), L1TriggerResultsConverter::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), METplusTrackMonitor::fillDescriptions(), HLTPixelAsymmetryFilter::fillDescriptions(), BetaStarVarProducer< T >::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA6::fillDescriptions(), CTPPSGeometryESModule::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), RecoTauProducer::fillDescriptions(), HLTPrescaler::fillDescriptions(), HLTDTActivityFilter::fillDescriptions(), L2MuonSeedGeneratorFromL1T::fillDescriptions(), HLTRPCTrigNoSyncFilter::fillDescriptions(), HLTL1TSeed::fillDescriptions(), PFEGammaProducer::fillDescriptions(), PFCandidateRecalibrator::fillDescriptions(), DependencyGraph::fillDescriptions(), FastPrimaryVertexWithWeightsProducer::fillDescriptions(), GlobalTrackingRegionWithVerticesProducer::fillDescriptions(), HLTEcalPhiSymFilter::fillDescriptions(), SiPixelClusterProducer::fillDescriptions(), ObjMonitor::fillDescriptions(), L1GlobalTriggerRawToDigi::fillDescriptions(), HLTCATopTagFilter::fillDescriptions(), HGCalTBAnalyzer::fillDescriptions(), EcalMIPRecHitFilter::fillDescriptions(), PhotonMonitor::fillDescriptions(), RPCChamberMasker::fillDescriptions(), VIDNestedWPBitmapProducer< T >::fillDescriptions(), TrackingRegionsFromBeamSpotAndL2Tau::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), HITrackingRegionForPrimaryVtxProducer::fillDescriptions(), PixelJetPuId::fillDescriptions(), PFTauSecondaryVertexProducer::fillDescriptions(), HLTPMMassFilter::fillDescriptions(), AlCaLowPUHBHEMuonFilter::fillDescriptions(), HcalRaddamMuon::fillDescriptions(), CaloParticleValidation::fillDescriptions(), PFTauTransverseImpactParameters::fillDescriptions(), AlCaHEMuonFilter::fillDescriptions(), TopMonitor::fillDescriptions(), APVModeFilter::fillDescriptions(), LeptonJetVarProducer< T >::fillDescriptions(), RazorMonitor::fillDescriptions(), TkMSParameterizationBuilder::fillDescriptions(), HGCalRecHitValidation::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA5::fillDescriptions(), CorrectedECALPFClusterProducer::fillDescriptions(), GenHFHadronMatcher::fillDescriptions(), MuonMonitor::fillDescriptions(), MuonTrackingRegionBuilder::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), HLTLevel1GTSeed::fillDescriptions(), SiPixelDigiToRaw::fillDescriptions(), JetMonitor::fillDescriptions(), MCMisalignmentScaler::fillDescriptions(), APVCyclePhaseDebuggerFromL1TS::fillDescriptions(), PFRecoTauChargedHadronProducer::fillDescriptions(), edm::PoolOutputModule::fillDescriptions(), DTChamberMasker::fillDescriptions(), HLTGetDigi::fillDescriptions(), METMonitor::fillDescriptions(), HTMonitor::fillDescriptions(), ApeTreeCreateDefault::fillDescriptions(), edm::service::Tracer::fillDescriptions(), Pi0FixedMassWindowCalibration::fillDescriptions(), evf::EvFDaqDirector::fillDescriptions(), EgammaHLTGsfTrackVarProducer::fillDescriptions(), HGCalDigiValidation::fillDescriptions(), edm::PathStatusFilter::fillDescriptions(), RecAnalyzerMinbias::fillDescriptions(), CSCChamberMasker::fillDescriptions(), AreaSeededTrackingRegionsProducer::fillDescriptions(), FastTrackDeDxProducer::fillDescriptions(), HLTDummyCollections::fillDescriptions(), pat::PATObjectUserDataEmbedder< T >::fillDescriptions(), TauRegionalPixelSeedGenerator::fillDescriptions(), CreateIdealTkAlRecords::fillDescriptions(), IsoValueMapProducer< T >::fillDescriptions(), TrackExtenderWithMTDT< TrackCollection >::fillDescriptions(), pat::JetCorrFactorsProducer::fillDescriptions(), PFRecoTauDiscriminationAgainstElectron2::fillDescriptions(), HcalHBHEMuonAnalyzer::fillDescriptions(), TriggerBxMonitor::fillDescriptions(), HGCalSimHitValidation::fillDescriptions(), AlCaIsoTracksFilter::fillDescriptions(), HLTEcalResonanceFilter::fillDescriptions(), HLTRegionalEcalResonanceFilter::fillDescriptions(), HLTJetsCleanedFromLeadingLeptons< JetType >::fillDescriptions(), BPHMonitor::fillDescriptions(), edm::service::SimpleMemoryCheck::fillDescriptions(), edm::service::RandomNumberGeneratorService::fillDescriptions(), CosmicRateAnalyzer::fillDescriptions(), cms::CATopJetProducer::fillDescriptions(), NPUTablesProducer::fillDescriptions(), SelectedElectronFEDListProducer< TEle, TCand >::fillDescriptions(), GenVisTauProducer::fillDescriptions(), L1TriggerJSONMonitoring::fillDescriptions(), PhotonIDValueMapProducer::fillDescriptions(), StudyHLT::fillDescriptions(), IsoTrackCalib::fillDescriptions(), CorrectedMETProducerT< T >::fillDescriptions(), TriggerSummaryProducerAOD::fillDescriptions(), HLTriggerJSONMonitoring::fillDescriptions(), HcalIsoTrkAnalyzer::fillDescriptions(), DTCCablingMapProducer::fillDescriptions(), TrackingRegionsFromSuperClustersProducer::fillDescriptions(), HLTRecHitInAllL1RegionsProducer< RecHitType >::fillDescriptions(), cms::HTTTopJetProducer::fillDescriptions(), edm::service::InitRootHandlers::fillDescriptions(), AlCaIsoTracksProducer::fillDescriptions(), IsoTrig::fillDescriptions(), CandidateSeededTrackingRegionsProducer::fillDescriptions(), BJetEnergyRegressionVarProducer< T >::fillDescriptions(), EgammaHLTPixelMatchVarProducer::fillDescriptions(), IsolatedTracksHcalScale::fillDescriptions(), TrackMVAClassifier< MVA, EventCache >::fillDescriptions(), PointSeededTrackingRegionsProducer::fillDescriptions(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::fillDescriptions(), TriggerRatesMonitor::fillDescriptions(), IsolatedGenParticles::fillDescriptions(), BJetEnergyRegressionMVA::fillDescriptions(), BaseMVAValueMapProducer< T >::fillDescriptions(), PFRecoTauDiscriminationByIsolationMVA2::fillDescriptions(), IsolatedTracksCone::fillDescriptions(), BTagSFProducer::fillDescriptions(), NVProfilerService::fillDescriptions(), CandMCMatchTableProducer::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), evf::FastMonitoringService::fillDescriptions(), reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::fillDescriptions(), PFJetMETcorrInputProducerT< T, Textractor >::fillDescriptions(), reco::tau::PATTauDiscriminationByMVAIsolationRun2::fillDescriptions(), CandidatePointSeededTrackingRegionsProducer::fillDescriptions(), IsolatedTracksNxN::fillDescriptions(), LHETablesProducer::fillDescriptions(), FastTimerService::fillDescriptions(), edm::service::StallMonitor::fillDescriptions(), PFRecoTauDiscriminationByIsolation::fillDescriptions(), pat::PATJetSelector::fillDescriptions(), edm::EventContentAnalyzer::fillDescriptions(), RecoTauCleanerImpl< Prod >::fillDescriptions(), PackedCandidateTrackValidator::fillDescriptions(), TrackingNtuple::fillDescriptions(), DeepTauId::fillDescriptions(), GenWeightsTableProducer::fillDescriptions(), RecoTauGenericJetRegionProducer< JetType, CandType >::fillDescriptionsBase(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

57  {
58  if (0 == strcmp(baseType_.c_str(), kSource)) {
59  if (0 != strcmp(label.c_str(), k_source)) {
61  "ConfigurationDescriptions::add, when adding a ParameterSetDescription for a source the "
62  "label must be \"source\"\n");
63  }
64  if (!descriptions_.empty() || defaultDescDefined_ == true) {
65  throw edm::Exception(
67  "ConfigurationDescriptions::add, for a source only 1 ParameterSetDescription may be added\n");
68  }
69  } else if (0 == strcmp(baseType_.c_str(), kService)) {
70  if (!descriptions_.empty() || defaultDescDefined_ == true) {
71  throw edm::Exception(
73  "ConfigurationDescriptions::add, for a service only 1 ParameterSetDescription may be added\n");
74  }
75  }
76 
77  // To minimize the number of copies involved create an empty description first
78  // and push it into the vector. Then perform the copy.
79  std::pair<std::string, ParameterSetDescription> pairWithEmptyDescription;
80  descriptions_.push_back(pairWithEmptyDescription);
81  std::pair<std::string, ParameterSetDescription>& pair = descriptions_.back();
82 
83  pair.first = label;
84  pair.second = psetDescription;
85  }
static const char *const kService
char const * label
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
static const char *const k_source
void ConfigurationDescriptions::add ( char const *  label,
ParameterSetDescription const &  psetDescription 
)

Definition at line 52 of file ConfigurationDescriptions.cc.

References add(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

52  {
53  std::string labelString(label);
54  add(labelString, psetDescription);
55  }
char const * label
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void ConfigurationDescriptions::addDefault ( ParameterSetDescription const &  psetDescription)

Definition at line 99 of file ConfigurationDescriptions.cc.

References baseType_, defaultDesc_, defaultDescDefined_, descriptions_, Exception, kService, edm::kSource, and edm::errors::LogicError.

Referenced by comment(), __class__< T >::endJob(), __class__< T >::endStream(), EcalPreshowerMonitorClient::fillDescriptions(), EcalMEFormatter::fillDescriptions(), EcalDQMonitorClient::fillDescriptions(), EmptySimHits::fillDescriptions(), edm::SwitchProducer::fillDescriptions(), ElectronSeedTrackRefFix::fillDescriptions(), CandidateChargeBTagComputer::fillDescriptions(), DYToMuMuGenFilter::fillDescriptions(), EcalDQMonitorTask::fillDescriptions(), CaloTowersReCreator::fillDescriptions(), EcalUncalibRecHitProducer::fillDescriptions(), L1TMuonEndCapTrackProducer::fillDescriptions(), HcalTimeSlewEP::fillDescriptions(), L1TMuonBarrelKalmanTrackProducer::fillDescriptions(), JetTagProducer::fillDescriptions(), PFRecHitProducer::fillDescriptions(), HBHEDarkeningEP::fillDescriptions(), LXXXCorrectorImplMaker::fillDescriptions(), PuppiPhoton::fillDescriptions(), L1TSummary::fillDescriptions(), edm::ModelFilter::fillDescriptions(), L1FastjetCorrectorImplMaker::fillDescriptions(), L1OffsetCorrectorImplMaker::fillDescriptions(), L1TBasicDemo::fillDescriptions(), CaloTowersCreator::fillDescriptions(), L1JPTOffsetCorrectorImplMaker::fillDescriptions(), FastTrackerRecHitCombiner::fillDescriptions(), GsfElectronBaseProducer::fillDescriptions(), MVAValueMapProducer< ParticleType >::fillDescriptions(), WriteCTPPSPixGainCalibrations::fillDescriptions(), SimHitsValidationHcal::fillDescriptions(), L6SLBCorrectorImplMaker::fillDescriptions(), l1t::L1TCaloStage1LutWriter::fillDescriptions(), l1t::L1TStage2CaloAnalyzer::fillDescriptions(), edm::ThinningProducer< Collection, Selector >::fillDescriptions(), L1TMuonBarrelKalmanStubProducer::fillDescriptions(), HLTTagAndProbeOfflineSource< TagType, TagCollType, ProbeType, ProbeCollType >::fillDescriptions(), dqm::DQMFileSaverPB::fillDescriptions(), RemovePileUpDominatedEventsGen::fillDescriptions(), FastTrackerRecHitMatcher::fillDescriptions(), L1TMuonQualityAdjuster::fillDescriptions(), VertexMonitor::fillDescriptions(), evf::RecoEventOutputModuleForFU< Consumer >::fillDescriptions(), ECALpedestalPCLHarvester::fillDescriptions(), dEdxAnalyzer::fillDescriptions(), dEdxHitAnalyzer::fillDescriptions(), ECALpedestalPCLworker::fillDescriptions(), PFCand_AssoMap::fillDescriptions(), edm::EDAnalyzer::fillDescriptions(), L1TUtmTriggerMenuDumper::fillDescriptions(), Mixing2DB::fillDescriptions(), CastorInvalidDataFilter::fillDescriptions(), edm::service::JobReportService::fillDescriptions(), L1TPhysicalEtAdder::fillDescriptions(), HIPTwoBodyDecayAnalyzer::fillDescriptions(), DJpsiFilter::fillDescriptions(), FourLepFilter::fillDescriptions(), DDSpecParRegistryESProducer::fillDescriptions(), edm::stream::EDAnalyzerBase::fillDescriptions(), MuPFIsoEmbedder::fillDescriptions(), EcalTrigPrimProducer::fillDescriptions(), MuMuForEmbeddingSelector::fillDescriptions(), TestBXVectorRefProducer::fillDescriptions(), DDDetectorESProducer::fillDescriptions(), TriggerRulePrefireVetoFilter::fillDescriptions(), WriteL1TriggerObjectsTxt::fillDescriptions(), PF_PU_AssoMap::fillDescriptions(), dqm::DQMFileSaverOnline::fillDescriptions(), HcalLaserEventFilter2012::fillDescriptions(), DDVectorRegistryESProducer::fillDescriptions(), BeamProfile2DB::fillDescriptions(), edm::EDProducer::fillDescriptions(), HBHEPlan1Combiner::fillDescriptions(), LumiProducerFromBrilcalc::fillDescriptions(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::fillDescriptions(), HGCalTBCheckGunPostion::fillDescriptions(), TrackAssociatorByPositionProducer::fillDescriptions(), EGMSeedGainProducer< T >::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), edm::EventSetupCacheIdentifierChecker::fillDescriptions(), QuickTrackAssociatorByHitsProducer::fillDescriptions(), JetHTJetPlusHOFilter::fillDescriptions(), L1TBMTFConverter::fillDescriptions(), edm::EDFilter::fillDescriptions(), JetConstituentSelector< T, C >::fillDescriptions(), GenJetTauTaggerProducer::fillDescriptions(), ElectronMVANtuplizer::fillDescriptions(), PhotonMVANtuplizer::fillDescriptions(), ValueMapTraslator::fillDescriptions(), ExtraFromSeeds::fillDescriptions(), SiStripGainsPCLHarvester::fillDescriptions(), PPSSimTrackProducer::fillDescriptions(), LHE2HepMCConverter::fillDescriptions(), l1t::FakeInputProducer::fillDescriptions(), TrackAssociatorByChi2Producer::fillDescriptions(), ttHFGenFilter::fillDescriptions(), PATObjectCrossLinker::fillDescriptions(), HGCGeometryValidation::fillDescriptions(), L1TMicroGMTInputProducer::fillDescriptions(), NanoAODOutputModule::fillDescriptions(), PF_PU_FirstVertexTracks::fillDescriptions(), L1TCaloLayer1Validator::fillDescriptions(), l1t::L1TCaloRCTToUpgradeConverter::fillDescriptions(), L1TMuonCaloSumProducer::fillDescriptions(), AlignPCLThresholdsWriter::fillDescriptions(), EGEnergyAnalyzer::fillDescriptions(), BeamSpotRcdReader::fillDescriptions(), TestPythiaDecays::fillDescriptions(), L1TStage2InputPatternWriter::fillDescriptions(), NanoAODBaseCrossCleaner::fillDescriptions(), VertexTableProducer::fillDescriptions(), edm::stream::EDFilterBase::fillDescriptions(), HFPreReconstructor::fillDescriptions(), TrackAssociatorByHitsProducer::fillDescriptions(), TrackFromSeedProducer::fillDescriptions(), AlCaGammaJetSelector::fillDescriptions(), SoftLepton::fillDescriptions(), edm::stream::EDProducerBase::fillDescriptions(), ElectronHEEPIDValueMapProducer::fillDescriptions(), B2GDoubleLeptonHLTValidation::fillDescriptions(), B2GHadronicHLTValidation::fillDescriptions(), B2GSingleLeptonHLTValidation::fillDescriptions(), TopSingleLeptonHLTValidation::fillDescriptions(), HcalLaserHBHEFilter2012::fillDescriptions(), TemplatedDeepNNTagInfoProducer< IPTag, SVTag >::fillDescriptions(), HcalLaserHBHEHFFilter2012::fillDescriptions(), L1TMicroGMTInputProducerFromGen::fillDescriptions(), l1t::AMC13DumpToRaw::fillDescriptions(), l1t::AMCDumpToRaw::fillDescriptions(), HcalLutAnalyzer::fillDescriptions(), PFCand_NoPU_WithAM::fillDescriptions(), PixelLumiDQM::fillDescriptions(), HcalLaserHFFilter2012::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), edm::global::EDAnalyzerBase::fillDescriptions(), LogMessageMonitor::fillDescriptions(), TopDiLeptonHLTValidation::fillDescriptions(), SinglePhotonJetPlusHOFilter::fillDescriptions(), l1t::L1TGlobalAnalyzer::fillDescriptions(), edm::limited::EDAnalyzerBase::fillDescriptions(), EGammaCutBasedEleIdAnalyzer::fillDescriptions(), SiStripFEDCheckPlugin::fillDescriptions(), edm::one::EDFilterBase::fillDescriptions(), edm::one::EDProducerBase::fillDescriptions(), edm::one::EDAnalyzerBase::fillDescriptions(), HcalHardcodeCalibrations::fillDescriptions(), BTagProbabilityToDiscriminator::fillDescriptions(), HFPhase1Reconstructor::fillDescriptions(), AlCaHBHEMuonFilter::fillDescriptions(), edm::global::EDFilterBase::fillDescriptions(), APVShotsFilter::fillDescriptions(), edm::limited::EDFilterBase::fillDescriptions(), l1t::MP7BufferDumpToRaw::fillDescriptions(), L1TStage2Layer2Producer::fillDescriptions(), L1TCaloLayer1::fillDescriptions(), edm::global::EDProducerBase::fillDescriptions(), L1TMuonProducer::fillDescriptions(), edm::limited::EDProducerBase::fillDescriptions(), FSQDiJetAve::fillDescriptions(), l1t::BXVectorInputProducer::fillDescriptions(), DeepCMVATagInfoProducer::fillDescriptions(), EmbeddingVertexCorrector::fillDescriptions(), l1t::GenToInputProducer::fillDescriptions(), L1TComparison::fillDescriptions(), BoostedDoubleSVProducer::fillDescriptions(), HGCalHitValidation::fillDescriptions(), L1TStage2Layer1Producer::fillDescriptions(), L1Validator::fillDescriptions(), L1TCaloLayer1RawToDigi::fillDescriptions(), L1TStage1Layer2Producer::fillDescriptions(), ExternalLHEProducer::fillDescriptions(), EmbeddingLHEProducer::fillDescriptions(), GenTtbarCategorizer::fillDescriptions(), IsoTrackCalibration::fillDescriptions(), MuonIdProducer::fillDescriptions(), SiStripGainsPCLWorker::fillDescriptions(), HadronAndPartonSelector::fillDescriptions(), VirtualJetProducer::fillDescriptions(), PileupJetIdProducer::fillDescriptions(), edm::OutputModule::fillDescriptions(), timestudy::SleepingProducer::fillDescriptions(), evf::EvFOutputModule::fillDescriptions(), edm::InputSource::fillDescriptions(), LeptonSkimming::fillDescriptions(), edm::global::OutputModuleBase::fillDescriptions(), edm::limited::OutputModuleBase::fillDescriptions(), edm::one::OutputModuleBase::fillDescriptions(), TemplatedSecondaryVertexProducer< IPTI, VTX >::fillDescriptions(), JetCleanerForType1METT< T, Textractor >::fillDescriptions(), timestudy::OneSleepingProducer::fillDescriptions(), ChainedJetCorrectorProducer::fillDescriptions(), JetFlavourClustering::fillDescriptions(), timestudy::OneSleepingAnalyzer::fillDescriptions(), SmearedJetProducerT< T >::fillDescriptions(), L1TConfigDumper::fillDescriptions(), MuonToTrackingParticleAssociatorEDProducer::fillDescriptions(), DQMRootOutputModule::fillDescriptions(), HBHEPhase1Reconstructor::fillDescriptions(), timestudy::ExternalWorkSleepingProducer::fillDescriptions(), DQMRootSource::fillDescriptions(), IPProducer< Container, Base, Helper >::fillDescriptions(), and edm::fillDetails::DoFillAsUnknown< T >::operator()().

99  {
100  if (0 == strcmp(baseType_.c_str(), kSource) || 0 == strcmp(baseType_.c_str(), kService)) {
101  if (!descriptions_.empty() || defaultDescDefined_ == true) {
103  "ConfigurationDescriptions::addDefault, for a source or service only 1 "
104  "ParameterSetDescription may be added\n");
105  }
106  }
107 
108  defaultDescDefined_ = true;
109  defaultDesc_ = psetDescription;
110  }
static const char *const kService
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
void ConfigurationDescriptions::addWithDefaultLabel ( ParameterSetDescription const &  psetDescription)

Definition at line 87 of file ConfigurationDescriptions.cc.

References add(), baseType_, edm::defaultModuleLabel(), label, pluginName_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by comment(), CandPtrProjector::fillDescriptions(), L1TStage2ObjectComparison< T >::fillDescriptions(), PFEGammaToCandidate::fillDescriptions(), MuonIDFilterProducerForHLT::fillDescriptions(), BoostedJetONNXJetTagsProducer::fillDescriptions(), EventSelectorAdapter< T >::fillDescriptions(), CalibratedPhotonProducerT< T >::fillDescriptions(), MuonFSRAssociator::fillDescriptions(), MuonFSRProducer::fillDescriptions(), CalibratedElectronProducerT< T >::fillDescriptions(), L1TComparisonResultFilter< T >::fillDescriptions(), IsFromLostTrackMapProducer::fillDescriptions(), TauDiscriminationAgainstElectronDeadECAL< TauType, TauDiscriminator >::fillDescriptions(), and EgammaHLTFilteredObjProducer< OutCollType >::fillDescriptions().

87  {
89  if (kService == baseType_) {
90  label = pluginName_;
91  } else if (kSource == baseType_) {
92  label = "source";
93  } else {
95  }
96  add(label, psetDescription);
97  }
static const char *const kService
char const * label
std::string defaultModuleLabel(std::string label)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ConfigurationDescriptions::iterator ConfigurationDescriptions::begin ( void  )

Definition at line 119 of file ConfigurationDescriptions.cc.

References descriptions_.

Referenced by comment().

119 { return descriptions_.begin(); }
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
std::string const& edm::ConfigurationDescriptions::comment ( ) const
inline
ParameterSetDescription * ConfigurationDescriptions::defaultDescription ( )

Returns 0 if no default has been assigned.

Definition at line 112 of file ConfigurationDescriptions.cc.

References defaultDesc_, and defaultDescDefined_.

Referenced by comment(), edm::edmodule_mightGet_config(), and edm::eventsetup::DataProxyProvider::prevalidate().

112  {
113  if (defaultDescDefined_) {
114  return &defaultDesc_;
115  }
116  return nullptr;
117  }
ConfigurationDescriptions::iterator ConfigurationDescriptions::end ( void  )

Definition at line 121 of file ConfigurationDescriptions.cc.

References descriptions_.

Referenced by comment(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

121 { return descriptions_.end(); }
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
void ConfigurationDescriptions::print ( std::ostream &  os,
std::string const &  moduleLabel,
bool  brief,
bool  printOnlyLabels,
size_t  lineWidth,
int  indentation,
int  iPlugin 
) const

Definition at line 223 of file ConfigurationDescriptions.cc.

References comment(), counter, edmIntegrityCheck::d, defaultDesc_, defaultDescDefined_, descriptions_, relativeConstraints::empty, edm::ConfigurationDescriptions::DescriptionCounter::iModule, edm::ConfigurationDescriptions::DescriptionCounter::iPlugin, edm::ConfigurationDescriptions::DescriptionCounter::iSelectedModule, edm::ParameterSetDescription::isUnknown(), RecoTauValidation_cfi::lineWidth, edm::DocFormatHelper::offsetModuleLabel(), printForLabel(), AlCaHLTBitMon_QueryRunRegistry::string, mitigatedMETSequence_cff::U, and edm::DocFormatHelper::wrapAndPrintText().

Referenced by comment().

229  {
230  if (!brief) {
231  if (!comment().empty()) {
233  }
234  os << "\n";
235  }
236 
237  if (descriptions_.empty() && !defaultDescDefined_) {
238  char oldFill = os.fill();
239  indentation += DocFormatHelper::offsetModuleLabel();
240  os << std::setfill(' ') << std::setw(indentation) << "";
241  os << "There are no PSet descriptions defined for this plugin.\n";
242  os << std::setfill(' ') << std::setw(indentation) << "";
243  os << "PSets will not be validated and no cfi files will be generated.\n";
244  os << std::setfill(oldFill);
245  if (!brief)
246  os << "\n";
247  return;
248  }
249 
251  indentation += DocFormatHelper::offsetModuleLabel();
252  char oldFill = os.fill();
253  os << std::setfill(' ') << std::setw(indentation) << "";
254  os << "This plugin has not implemented the function which defines its\n";
255  os << std::setfill(' ') << std::setw(indentation) << "";
256  os << "configuration descriptions yet. No descriptions are available.\n";
257  os << std::setfill(' ') << std::setw(indentation) << "";
258  os << "Its PSets will not be validated, and no cfi files will be generated.\n";
259  os << std::setfill(oldFill);
260  if (!brief)
261  os << "\n";
262  return;
263  }
264 
265  if (!brief) {
266  std::stringstream ss;
267  if (defaultDescDefined_) {
268  if (descriptions_.empty()) {
269  ss << "This plugin has only one PSet description. "
270  << "This description is always used to validate configurations. "
271  << "Because this configuration has no label, no cfi files will be generated.";
272  } else {
273  ss << "This plugin has " << (descriptions_.size() + 1U) << " PSet descriptions. "
274  << "The description used to validate a configuration is selected by "
275  << "matching the module labels. If none match, then the last description, "
276  << "which has no label, is selected. "
277  << "A cfi file will be generated for each configuration with a module label.";
278  }
279  } else {
280  if (descriptions_.size() == 1U) {
281  ss << "This plugin has " << descriptions_.size() << " PSet description. "
282  << "This description is always used to validate configurations. "
283  << "The label below is used when generating the cfi file.";
284  } else {
285  ss << "This plugin has " << descriptions_.size() << " PSet descriptions. "
286  << "The description used to validate a configuration is selected by "
287  << "matching the module labels. If none match the first description below is used. "
288  << "The module labels below are also used when generating the cfi files.";
289  }
290  }
291  DocFormatHelper::wrapAndPrintText(os, ss.str(), indentation, lineWidth);
292  os << "\n";
293  }
294 
295  indentation += DocFormatHelper::offsetModuleLabel();
296 
297  DescriptionCounter counter;
298  counter.iPlugin = iPlugin;
299  counter.iSelectedModule = 0;
300  counter.iModule = 0;
301 
302  for (auto const& d : descriptions_) {
303  printForLabel(d, os, moduleLabel, brief, printOnlyLabels, lineWidth, indentation, counter);
304  }
305 
306  if (defaultDescDefined_) {
307  printForLabel(os,
308  std::string("@default"),
309  defaultDesc_,
310  moduleLabel,
311  brief,
312  printOnlyLabels,
313  lineWidth,
314  indentation,
315  counter);
316  }
317  }
void printForLabel(std::pair< std::string, ParameterSetDescription > const &labelAndDesc, std::ostream &os, std::string const &moduleLabel, bool brief, bool printOnlyLabels, size_t lineWidth, int indentationn, DescriptionCounter &counter) const
static void wrapAndPrintText(std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth)
static int offsetModuleLabel()
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
static std::atomic< unsigned int > counter
std::string const & comment() const
void ConfigurationDescriptions::printForLabel ( std::pair< std::string, ParameterSetDescription > const &  labelAndDesc,
std::ostream &  os,
std::string const &  moduleLabel,
bool  brief,
bool  printOnlyLabels,
size_t  lineWidth,
int  indentationn,
DescriptionCounter counter 
) const
private

Definition at line 319 of file ConfigurationDescriptions.cc.

Referenced by print().

326  {
327  printForLabel(os,
328  labelAndDesc.first,
329  labelAndDesc.second,
330  moduleLabel,
331  brief,
332  printOnlyLabels,
333  lineWidth,
334  indentation,
335  counter);
336  }
void printForLabel(std::pair< std::string, ParameterSetDescription > const &labelAndDesc, std::ostream &os, std::string const &moduleLabel, bool brief, bool printOnlyLabels, size_t lineWidth, int indentationn, DescriptionCounter &counter) const
void ConfigurationDescriptions::printForLabel ( std::ostream &  os,
std::string const &  label,
ParameterSetDescription const &  description,
std::string const &  moduleLabel,
bool  brief,
bool  printOnlyLabels,
size_t  lineWidth,
int  indentationn,
DescriptionCounter counter 
) const
private

Definition at line 338 of file ConfigurationDescriptions.cc.

References baseType_, edm::ParameterSetDescription::comment(), edm::ConfigurationDescriptions::DescriptionCounter::iModule, edm::ConfigurationDescriptions::DescriptionCounter::iPlugin, edm::ConfigurationDescriptions::DescriptionCounter::iSelectedModule, kService, edm::kSource, edm::DocFormatHelper::offsetTopLevelPSet(), edm::ParameterSetDescription::print(), trackingPlots::section, edm::DocFormatHelper::setBrief(), edm::DocFormatHelper::setIndentation(), edm::DocFormatHelper::setLineWidth(), edm::DocFormatHelper::setParent(), edm::DocFormatHelper::setSection(), AlCaHLTBitMon_QueryRunRegistry::string, edm::DocFormatHelper::TOP, and edm::DocFormatHelper::wrapAndPrintText().

346  {
347  ++counter.iModule;
348  if (!moduleLabel.empty() && label != moduleLabel)
349  return;
350  ++counter.iSelectedModule;
351 
352  std::stringstream ss;
353  ss << counter.iPlugin << "." << counter.iSelectedModule;
354  std::string section = ss.str();
355 
356  char oldFill = os.fill();
357  os << std::setfill(' ') << std::setw(indentation) << "" << std::setfill(oldFill);
358  os << section << " ";
359  if (label == std::string("@default")) {
360  os << "description without a module label\n";
361  } else {
362  if (!brief) {
363  if (0 == strcmp(baseType_.c_str(), kSource) || 0 == strcmp(baseType_.c_str(), kService)) {
364  os << "label: ";
365  } else {
366  os << "module label: ";
367  }
368  }
369  os << label << "\n";
370  }
371 
372  if (!brief) {
373  if (!description.comment().empty()) {
374  DocFormatHelper::wrapAndPrintText(os, description.comment(), indentation, lineWidth - indentation);
375  }
376  os << "\n";
377  }
378  if (printOnlyLabels)
379  return;
380 
381  DocFormatHelper dfh;
382  dfh.setBrief(brief);
383  dfh.setLineWidth(lineWidth);
384  dfh.setIndentation(indentation + DocFormatHelper::offsetTopLevelPSet());
385  dfh.setSection(section);
386  dfh.setParent(DocFormatHelper::TOP);
387 
388  description.print(os, dfh);
389  }
static const char *const kService
static void wrapAndPrintText(std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth)
char const * label
static int offsetTopLevelPSet()
void ConfigurationDescriptions::setComment ( std::string const &  value)

Definition at line 48 of file ConfigurationDescriptions.cc.

References comment_, and relativeConstraints::value.

Referenced by comment(), CSCDCCUnpacker::fillDescriptions(), L2TauJetsMerger::fillDescriptions(), L1THLTTauMatching::fillDescriptions(), L1HLTTauMatching::fillDescriptions(), edm::service::UnixSignalService::fillDescriptions(), PFJetsMaxInvMassModule::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), PFTauL1TJetsMatching::fillDescriptions(), CaloTowerFromL1TSeededCreatorForTauHLT::fillDescriptions(), MillePedeFileConverter::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), MillePedeFileExtractor::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), edm::service::LoadAllDictionaries::fillDescriptions(), PrintLoadingPlugins::fillDescriptions(), edm::PrintEventSetupDataRetrieval::fillDescriptions(), edm::PrintEventSetupContent::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), edm::service::Timing::fillDescriptions(), VertexFromTrackProducer::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), MuonTrackingRegionBuilder::fillDescriptions(), edm::service::Tracer::fillDescriptions(), NVProfilerService::fillDescriptions(), edm::service::StallMonitor::fillDescriptions(), and edm::EventContentAnalyzer::fillDescriptions().

void ConfigurationDescriptions::setComment ( char const *  value)
void ConfigurationDescriptions::validate ( ParameterSet pset,
std::string const &  moduleLabel 
) const

Definition at line 123 of file ConfigurationDescriptions.cc.

References defaultDesc_, defaultDescDefined_, descriptions_, edm::for_all(), and edm::ParameterSetDescription::validate().

Referenced by comment(), and edm::Maker::makeModule().

123  {
124  ParameterSetDescription const* psetDesc = nullptr;
125  for_all(descriptions_, std::bind(&matchLabel, std::placeholders::_1, std::cref(moduleLabel), std::ref(psetDesc)));
126 
127  // If there is a matching label
128  if (psetDesc != nullptr) {
129  psetDesc->validate(pset);
130  }
131  // Is there an explicit description to be used for a non standard label
132  else if (defaultDescDefined_) {
133  defaultDesc_.validate(pset);
134  }
135  // Otherwise use the first one.
136  else if (!descriptions_.empty()) {
137  descriptions_[0].second.validate(pset);
138  }
139  // It is possible for no descriptions to be defined and no validation occurs
140  // for this module ever.
141  }
void validate(ParameterSet &pset) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:14
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_
void ConfigurationDescriptions::writeCfiForLabel ( std::pair< std::string, ParameterSetDescription > const &  labelAndDesc,
std::string const &  baseType,
std::string const &  pluginName,
std::set< std::string > &  usedCfiFileNames 
)
staticprivate

Definition at line 152 of file ConfigurationDescriptions.cc.

References cms::Exception::addContext(), gather_cfg::cout, Exception, kService, edm::kSource, edm::errors::LogicError, GetRecoTauVFromDQM_MC_cff::outFile, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by writeCfis().

155  {
156  if (0 == strcmp(baseType.c_str(), kService) && labelAndDesc.first != pluginName) {
158  "ConfigurationDescriptions::writeCfiForLabel\nFor a service the label and the plugin name "
159  "must be the same.\n")
160  << "This error is probably caused by an incorrect label being passed\nto the ConfigurationDescriptions::add "
161  "function earlier.\n"
162  << "plugin name = \"" << pluginName << "\" label name = \"" << labelAndDesc.first << "\"\n";
163  }
164 
165  std::string cfi_filename;
166  if (0 == strcmp(baseType.c_str(), kSource)) {
167  cfi_filename = pluginName + "_cfi.py";
168  } else {
169  cfi_filename = labelAndDesc.first + "_cfi.py";
170  }
171  if (!usedCfiFileNames.insert(cfi_filename).second) {
173  "Two cfi files are being generated with the same name in the same directory.\n");
174  ex << "The cfi file name is '" << cfi_filename << "' and\n"
175  << "the module label is \'" << labelAndDesc.first << "\'.\n"
176  << "This error is probably caused by an error in one or more fillDescriptions functions\n"
177  << "where duplicate module labels are being passed to the ConfigurationDescriptions::add\n"
178  << "function. All such module labels must be unique within a package.\n"
179  << "If you do not want the generated cfi file and do not need more than one\n"
180  << "description for a plugin, then a way to fix this is to use the addDefault\n"
181  << "function instead of the add function.\n"
182  << "There are 3 common ways this problem can happen.\n"
183  << "1. This can happen when a module label is explicitly duplicated in one or more\n"
184  << "fillDescriptions functions. Fix these by changing the module labels to be unique.\n"
185  << "2. This can also happen when a module class is a template class and plugins are\n"
186  << "defined by instantiations with differing template parameters and these plugins\n"
187  << "share the same fillDescriptions function. Fix these by specializing the fillDescriptions\n"
188  << "function for each template instantiation.\n"
189  << "3. This can also happen when there is an inheritance heirarchy and multiple plugin modules\n"
190  << "are defined using derived classes and the base class which share the same fillDescriptions\n"
191  << "function. Fix these by redefining the fillDescriptions function in each derived class.\n";
192  ex.addContext("Executing function ConfigurationDescriptions::writeCfiForLabel");
193  throw ex;
194  }
195  std::ofstream outFile(cfi_filename.c_str());
196  if (outFile.fail()) {
197  edm::Exception ex(edm::errors::LogicError, "Creating cfi file failed.\n");
198  ex << "Opening a file '" << cfi_filename << "' for module '" << labelAndDesc.first << "' failed.\n";
199  ex << "Error code from errno " << errno << ": " << std::strerror(errno) << "\n";
200 
201  ex.addContext("Executing function ConfigurationDescriptions::writeCfiForLabel");
202  throw ex;
203  }
204 
205  outFile << "import FWCore.ParameterSet.Config as cms\n\n";
206  outFile << labelAndDesc.first << " = cms." << baseType << "('" << pluginName << "'";
207 
208  bool startWithComma = true;
209  int indentation = 2;
210  labelAndDesc.second.writeCfi(outFile, startWithComma, indentation);
211 
212  outFile << ")\n";
213 
214  outFile.close();
215 
216  if (0 == strcmp(baseType.c_str(), kSource)) {
217  std::cout << pluginName << "\n";
218  } else {
219  std::cout << labelAndDesc.first << "\n";
220  }
221  }
static const char *const kService
void ConfigurationDescriptions::writeCfis ( std::set< std::string > &  usedCfiFileNames) const

Definition at line 143 of file ConfigurationDescriptions.cc.

References baseType_, descriptions_, edm::for_all(), pluginName_, and writeCfiForLabel().

Referenced by comment().

143  {
146  std::placeholders::_1,
147  std::cref(baseType_),
148  std::cref(pluginName_),
149  std::ref(usedCfiFileNames)));
150  }
static void writeCfiForLabel(std::pair< std::string, ParameterSetDescription > const &labelAndDesc, std::string const &baseType, std::string const &pluginName, std::set< std::string > &usedCfiFileNames)
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:14
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_

Member Data Documentation

std::string edm::ConfigurationDescriptions::baseType_
private
std::string edm::ConfigurationDescriptions::comment_
private

Definition at line 116 of file ConfigurationDescriptions.h.

Referenced by comment(), and setComment().

ParameterSetDescription edm::ConfigurationDescriptions::defaultDesc_
private

Definition at line 114 of file ConfigurationDescriptions.h.

Referenced by addDefault(), defaultDescription(), print(), and validate().

bool edm::ConfigurationDescriptions::defaultDescDefined_
private

Definition at line 117 of file ConfigurationDescriptions.h.

Referenced by add(), addDefault(), defaultDescription(), print(), and validate().

std::vector<std::pair<std::string, ParameterSetDescription> > edm::ConfigurationDescriptions::descriptions_
private

Definition at line 112 of file ConfigurationDescriptions.h.

Referenced by add(), addDefault(), begin(), end(), print(), validate(), and writeCfis().

std::string edm::ConfigurationDescriptions::pluginName_
private

Definition at line 110 of file ConfigurationDescriptions.h.

Referenced by addWithDefaultLabel(), and writeCfis().