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(), HLTMuonTrkFilter::fillDescriptions(), HLTMuonTrkL1TFilter::fillDescriptions(), HLTmumutkFilter::fillDescriptions(), HGCalRawToDigiFake::fillDescriptions(), HGCDigiConverter::fillDescriptions(), LowPtGsfElectronCoreProducer::fillDescriptions(), HIBestVertexProducer::fillDescriptions(), BasicToPFJet::fillDescriptions(), HFNoseRawToDigiFake::fillDescriptions(), DeepMETProducer::fillDescriptions(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::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(), HLTMuonTrackMassFilter::fillDescriptions(), VertexAssociatorByTracksProducer::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(), EgammaHLTTimeCleanedRechitProducer::fillDescriptions(), VertexAssociatorByPositionAndTracksProducer::fillDescriptions(), ECFAdder::fillDescriptions(), HLTHemiDPhiFilter::fillDescriptions(), L1TStage2RegionalMuonCandComp::fillDescriptions(), TrigObjTnPSource::fillDescriptions(), L1TStage2MuonComp::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(), HLTJetL1TMatchProducer< T >::fillDescriptions(), CaloRecoTauDiscriminationByLeadingTrackPtCut::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(), CSCObjectMapESProducer::fillDescriptions(), DTObjectMapESProducer::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(), PPSFilteredProtonProducer::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(), GEMDQMStatusDigi::fillDescriptions(), MTDTimeCalibESProducer::fillDescriptions(), BunchSpacingProducer::fillDescriptions(), HLTDiJetAveEtaFilter< T >::fillDescriptions(), HLTDiJetAveFilter< T >::fillDescriptions(), HLTDiJetEtaTopologyFilter< T >::fillDescriptions(), HLTHcalMETNoiseFilter::fillDescriptions(), HLTHcalTowerNoiseCleaner::fillDescriptions(), TrackFitterProducer::fillDescriptions(), KFBasedPixelFitterProducer::fillDescriptions(), HLTHcalTowerNoiseCleanerWithrechit::fillDescriptions(), PixelFitterByHelixProjectionsProducer::fillDescriptions(), HLTJetEtaTopologyFilter< T >::fillDescriptions(), HLTJetVBFFilter< T >::fillDescriptions(), HLTMonoJetFilter< T >::fillDescriptions(), PFRecoTauDiscriminationByNProngs::fillDescriptions(), L1TMP7ZeroSupp::fillDescriptions(), HLTMuonDimuonL2Filter::fillDescriptions(), HLTMuonDimuonL2FromL1TFilter::fillDescriptions(), HLTMuonL2PreFilter::fillDescriptions(), PixelInactiveAreaTrackingRegionsSeedingLayersProducer::fillDescriptions(), HLTMuonL2FromL1TPreFilter::fillDescriptions(), HLTMuonPFIsoFilter::fillDescriptions(), HLTTriMuonIsolation::fillDescriptions(), HLTPhysicsDeclared::fillDescriptions(), ConeIsolation::fillDescriptions(), HLTDisplacedEgammaFilter::fillDescriptions(), HLTEgammaDoubleEtDeltaPhiFilter::fillDescriptions(), HLTEgammaEtFilter::fillDescriptions(), DeepCombinedONNXJetTagsProducer::fillDescriptions(), HLTEgammaEtFilterPairs::fillDescriptions(), DeepVertexONNXJetTagsProducer::fillDescriptions(), HLTElectronGenericFilter::fillDescriptions(), HLTElectronOneOEMinusOneOPFilterRegional::fillDescriptions(), LowPtGsfElectronSeedValueMapsProducer::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(), RecoTauPileUpVertexSelector::fillDescriptions(), HLTMuonIsoFilter::fillDescriptions(), PFRecoTauDiscriminationByTauPolarization::fillDescriptions(), PuppiProducer::fillDescriptions(), edm::StreamerFileReader::fillDescriptions(), CTPPSPixelRawToDigi::fillDescriptions(), DTUnpackingModule::fillDescriptions(), HLTEgammaGenericQuadraticEtaFilter::fillDescriptions(), DeepDoubleXONNXJetTagsProducer::fillDescriptions(), HLTEgammaGenericQuadraticFilter::fillDescriptions(), HLTEgammaTriggerFilterObjectWrapper::fillDescriptions(), HLTElectronEoverpFilterRegional::fillDescriptions(), EgammaHLTCaloTowerProducer::fillDescriptions(), TriggerSummaryAnalyzerAOD::fillDescriptions(), TriggerSummaryAnalyzerRAW::fillDescriptions(), EgammaHLTIslandClusterProducer::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(), HLTMuonTrimuonL3Filter::fillDescriptions(), HLTMuonL1toL3TkPreFilter::fillDescriptions(), edm::TimeoutPoolOutputModule::fillDescriptions(), CTPPSLHCInfoRandomXangleESSource::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), HLTPMDocaFilter::fillDescriptions(), BeamSpotProblemMonitor::fillDescriptions(), RPCDigiMerger::fillDescriptions(), HLTBool::fillDescriptions(), HLTSinglet< T >::fillDescriptions(), HiFJRhoProducer::fillDescriptions(), cms::CSJetProducer::fillDescriptions(), GEMDQMSource::fillDescriptions(), HcalSimpleReconstructor::fillDescriptions(), HLTAcoFilter::fillDescriptions(), SiPixelClusterShapeCacheProducer::fillDescriptions(), PFJetsMaxInvMassModule::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(), edm::service::ConcurrentModuleTimer::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), HLTPFJetIDProducer::fillDescriptions(), GlobalTrackingRegionProducer::fillDescriptions(), RandomEngineStateProducer::fillDescriptions(), MuonIDTableProducer::fillDescriptions(), LowPtGSFToPackedCandidateLinker::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(), PFRecoTauDiscriminationByDeltaE::fillDescriptions(), HLTMuonL3PreFilter::fillDescriptions(), edm::service::ResourceEnforcer::fillDescriptions(), SiStripDetVOffPrinter::fillDescriptions(), BPHHistoSpecificDecay::fillDescriptions(), EnergyRingsTableProducer::fillDescriptions(), MillePedeFileConverter::fillDescriptions(), HLTEgammaL1TMatchFilterRegional::fillDescriptions(), IslandClusterProducer::fillDescriptions(), CTPPSDiamondLocalTrackFitter::fillDescriptions(), PSMonitorClient::fillDescriptions(), BadParticleFilter::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), RecoTauPiZeroUnembedder::fillDescriptions(), HLTDTROMonitorFilter::fillDescriptions(), HLTMuonL1Filter::fillDescriptions(), HLTEcalTowerFilter::fillDescriptions(), CaloTowerTopologyEP::fillDescriptions(), HLTPixelActivityHFSumEnergyFilter::fillDescriptions(), HcalDDDSimConstantsESModule::fillDescriptions(), HLTPixlMBFilt::fillDescriptions(), HLTPixlMBForAlignmentFilter::fillDescriptions(), BeamDivergenceVtxGenerator::fillDescriptions(), HLLHCEvtVtxGenerator::fillDescriptions(), HLTEgammaCaloIsolFilterPairs::fillDescriptions(), HcalRawToDigi::fillDescriptions(), TotemRPRecHitProducer::fillDescriptions(), TotemTimingLocalTrackFitter::fillDescriptions(), EgammaHLTCombinedIsolationProducer::fillDescriptions(), HLTGetRaw::fillDescriptions(), FilterOutLowPt::fillDescriptions(), SiPixelRawToDigi::fillDescriptions(), HLTRHemisphere::fillDescriptions(), HGCalMultiClusterProducer::fillDescriptions(), MTDTrackingRecHitProducer::fillDescriptions(), GlobalTrackQualityProducer::fillDescriptions(), HLTCaloTowerHtMhtProducer::fillDescriptions(), CaloRecoTauDiscriminationByDeltaE::fillDescriptions(), DQMScaleToClient::fillDescriptions(), HLTCTPPSLocalTrackFilter::fillDescriptions(), HLTDisplacedmumumuVtxProducer::fillDescriptions(), PileupJetIDVarProducer::fillDescriptions(), LowPtGsfElectronIDProducer::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(), EgammaHLTPFChargedIsolationProducer::fillDescriptions(), HLTLevel1Pattern::fillDescriptions(), EcalDetIdToBeRecoveredProducer::fillDescriptions(), TSGForOI::fillDescriptions(), EgammaHLTRemoveDuplicatedSC::fillDescriptions(), MuonSeedGenerator::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), HLTCaloTowerFilter::fillDescriptions(), EtlDigiHitsValidation::fillDescriptions(), EtlRecHitsValidation::fillDescriptions(), HLTJetTag< T >::fillDescriptions(), TotemRPClusterProducer::fillDescriptions(), EgammaHLTElectronCombinedIsolationProducer::fillDescriptions(), EgammaHLTPFNeutralIsolationProducer::fillDescriptions(), EgammaHLTPFPhotonIsolationProducer::fillDescriptions(), TriggerSummaryProducerRAW::fillDescriptions(), EgammaHLTPixelMatchElectronProducers::fillDescriptions(), HLTDoubletDZ< T1, T2 >::fillDescriptions(), HLTSummaryFilter::fillDescriptions(), GEMRecHitProducer::fillDescriptions(), CSCRecHitDProducer::fillDescriptions(), SiPixelStatusProducer::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), HLTMETCleanerUsingJetID::fillDescriptions(), HLTMhtProducer::fillDescriptions(), GEMChamberMasker::fillDescriptions(), HLTHcalLaserMisfireFilter::fillDescriptions(), citk::PFIsolationSumProducerForPUPPI::fillDescriptions(), GenJetFlavourTableProducer::fillDescriptions(), HLTPFEnergyFractionsFilter::fillDescriptions(), GEMDigiToRawModule::fillDescriptions(), HcalRawToDigiFake::fillDescriptions(), ClusterTPAssociationProducer::fillDescriptions(), HLTElectronPFMTFilter< T >::fillDescriptions(), HLTHtMhtProducer::fillDescriptions(), EgammaHLTEcalRecIsolationProducer::fillDescriptions(), HLTEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), RPCTwinMuxRawToDigi::fillDescriptions(), sistrip::DigiToRawModule::fillDescriptions(), HGCalLayerClusterProducer::fillDescriptions(), LogErrorFilter::fillDescriptions(), PFClusterTimeAssigner::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), CTPPSDiamondRecHitProducer::fillDescriptions(), L1TObjectsTiming::fillDescriptions(), HLTScoutingTrackProducer::fillDescriptions(), HLTCountNumberOfObject< OColl >::fillDescriptions(), HLTTriggerTypeFilter::fillDescriptions(), FastTimerServiceClient::fillDescriptions(), L1TGlobalSummary::fillDescriptions(), HLTDisplacedtktktkVtxProducer::fillDescriptions(), HLTDisplacedtktkVtxProducer::fillDescriptions(), CTPPSPixelRecHitProducer::fillDescriptions(), EcalListOfFEDSProducer::fillDescriptions(), HLTHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), ESListOfFEDSProducer::fillDescriptions(), HLTDoublet< T1, T2 >::fillDescriptions(), HLTMuonTrackSelector::fillDescriptions(), HLTCaloJetIDProducer::fillDescriptions(), TSGForOIFromL2::fillDescriptions(), EgammaHLTRegionalPixelSeedGeneratorProducers::fillDescriptions(), PFRecoTauDiscriminationAgainstMuon::fillDescriptions(), edm::service::LoadAllDictionaries::fillDescriptions(), LHESource::fillDescriptions(), HLTVertexFilter::fillDescriptions(), Tau3MuMonitor::fillDescriptions(), PPSTimingCalibrationESSource::fillDescriptions(), HLTFiltCand::fillDescriptions(), TotemTimingRecHitProducer::fillDescriptions(), EventIDChecker::fillDescriptions(), ME0ChamberMasker::fillDescriptions(), BtlDigiHitsValidation::fillDescriptions(), BtlRecHitsValidation::fillDescriptions(), PFRecoTauDiscriminationByInvMass::fillDescriptions(), CTPPSProtonProducer::fillDescriptions(), BPHWriteSpecificDecay::fillDescriptions(), HLTCollectionProducer< T >::fillDescriptions(), PSMonitor::fillDescriptions(), BeamSpotRcdPrinter::fillDescriptions(), pat::LeptonUpdater< T >::fillDescriptions(), EgammaHLTElectronTrackIsolationProducers::fillDescriptions(), TotemRPLocalTrackFitter::fillDescriptions(), HLTJetSortedVBFFilter< T >::fillDescriptions(), CaloRecoTauProducer::fillDescriptions(), AbortOnEventIDAnalyzer::fillDescriptions(), PFRecoTauProducer::fillDescriptions(), edm::service::CondorStatusService::fillDescriptions(), CTPPSProtonReconstructionEfficiencyEstimatorData::fillDescriptions(), HIMuonTrackingRegionProducer::fillDescriptions(), HLTEventNumberFilter::fillDescriptions(), ThroughputService::fillDescriptions(), TriggerBxVsOrbitMonitor::fillDescriptions(), EgammaHLTHcalIsolationDoubleConeProducers::fillDescriptions(), EgammaHLTNxNClusterProducer::fillDescriptions(), EgammaHLTR9IDProducer::fillDescriptions(), HLTLevel1Activity::fillDescriptions(), TriggerResultsFilterFromDB::fillDescriptions(), DQMCorrelationClient::fillDescriptions(), L3MuonProducer::fillDescriptions(), edm::service::PrescaleService::fillDescriptions(), edm::service::CPU::fillDescriptions(), HLTL1TMuonSelector::fillDescriptions(), EgammaHLTElectronDetaDphiProducer::fillDescriptions(), HLTHcalPhiSymFilter::fillDescriptions(), HLTL1NumberFilter::fillDescriptions(), GlobalTrackingRegionProducerFromBeamSpot::fillDescriptions(), PFRecoTauTagInfoProducer::fillDescriptions(), HLTTrackWithHits::fillDescriptions(), LeptonInJetProducer< T >::fillDescriptions(), HLTmumutktkVtxProducer::fillDescriptions(), pat::PATJetUpdater::fillDescriptions(), edm::PrintEventSetupDataRetrieval::fillDescriptions(), HLTrigReport::fillDescriptions(), MTDClusterProducer::fillDescriptions(), HcalDDDRecConstantsESModule::fillDescriptions(), HLTHighLevel::fillDescriptions(), TriggerResultsFilter::fillDescriptions(), HLTScoutingCaloProducer::fillDescriptions(), TotemRPUVPatternFinder::fillDescriptions(), citk::PFIsolationSumProducer::fillDescriptions(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::fillDescriptions(), edm::LogErrorHarvester::fillDescriptions(), EgammaHLTHcalIsolationProducersRegional::fillDescriptions(), FedRawDataInputSource::fillDescriptions(), EgammaHLTPhotonTrackIsolationProducersRegional::fillDescriptions(), PrintLoadingPlugins::fillDescriptions(), HLTJetCollectionsForLeptonPlusJets< jetType >::fillDescriptions(), PFRecoTauDiscriminationByFlightPathSignificance::fillDescriptions(), HLTFEDSizeFilter::fillDescriptions(), DPFIsolation::fillDescriptions(), GEMRawToDigiModule::fillDescriptions(), DTCCablingMapTestProducer::fillDescriptions(), HLTElectronMuonInvMassFilter::fillDescriptions(), HLTGenericFilter< T1 >::fillDescriptions(), DiDispStaMuonMonitor::fillDescriptions(), EgammaHLTBcHcalIsolationProducersRegional::fillDescriptions(), DeepDoubleXTagInfoProducer::fillDescriptions(), EgammaHLTR9Producer::fillDescriptions(), HLTMuonPointingFilter::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), HLTJetCollForElePlusJets< T >::fillDescriptions(), CaloRecoTauTagInfoProducer::fillDescriptions(), ScalersRawToDigi::fillDescriptions(), HotlineDQM::fillDescriptions(), HLTHcalNZSFilter::fillDescriptions(), HLTHcalSimpleRecHitFilter::fillDescriptions(), L2MuonProducer::fillDescriptions(), PackedCandidateGenAssociationProducer::fillDescriptions(), HLTTrackerHaloFilter::fillDescriptions(), ElectronStudy::fillDescriptions(), HGCalPhotonIDValueMapProducer::fillDescriptions(), HcalRecAlgoESProducer::fillDescriptions(), RecoTauDiscriminantCutMultiplexer::fillDescriptions(), EtlSimHitsValidation::fillDescriptions(), HLTTrackMETProducer::fillDescriptions(), HLTJetCollectionsForElePlusJets< T >::fillDescriptions(), RecAnalyzerHF::fillDescriptions(), MagneticFieldFilter::fillDescriptions(), HLTmmkFilter::fillDescriptions(), HLTmmkkFilter::fillDescriptions(), HGCalElectronFilter::fillDescriptions(), EgammaIsoHcalDetIdCollectionProducer::fillDescriptions(), IsolatedPixelTrackCandidateProducer::fillDescriptions(), edm::PrintEventSetupContent::fillDescriptions(), HFJetShowerShape::fillDescriptions(), XrdAdaptor::XrdStatisticsService::fillDescriptions(), EcalSimpleUncalibRecHitFilter::fillDescriptions(), HLTScoutingPFProducer::fillDescriptions(), HLTCAWZTagFilter::fillDescriptions(), PFBadHcalPseudoClusterProducer::fillDescriptions(), L1PrefiringWeightProducer::fillDescriptions(), HLTL1MuonNoL2Selector::fillDescriptions(), HLTL1MuonSelector::fillDescriptions(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::fillDescriptions(), HLTHcalCalibTypeFilter::fillDescriptions(), NoBPTXMonitor::fillDescriptions(), SUSY_HLT_Razor::fillDescriptions(), CorrectedPFMETProducer::fillDescriptions(), CSCDigiToRawModule::fillDescriptions(), HLTmumutkVtxProducer::fillDescriptions(), HGCalElectronIDValueMapProducer::fillDescriptions(), CTPPSPixelClusterProducer::fillDescriptions(), HGCalHitCalibration::fillDescriptions(), CaloTowerConstituentsMapBuilder::fillDescriptions(), HLTJetHbbFilter< T >::fillDescriptions(), TcdsRawToDigi::fillDescriptions(), MuonGeometryDBConverter::fillDescriptions(), HLTCSCActivityFilter::fillDescriptions(), HGCalShowerSeparation::fillDescriptions(), PATTauDiscriminantCutMultiplexer::fillDescriptions(), L1TGlobalProducer::fillDescriptions(), CTPPSPixelLocalTrackProducer::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), PFClusterMatchedToPhotonsSelector::fillDescriptions(), DTCCablingMapTestReader::fillDescriptions(), LowPtGsfElectronSeedProducer::fillDescriptions(), HLTRechitInRegionsProducer< T1 >::fillDescriptions(), HFNoisyHitsFilter::fillDescriptions(), HcalHBHEMuonSimAnalyzer::fillDescriptions(), edm::service::CheckTransitions::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), edm::EmbeddedRootSource::fillDescriptions(), edm::PoolSource::fillDescriptions(), PFTauDecayModeCutMultiplexer::fillDescriptions(), IsolatedPixelTrackCandidateL1TProducer::fillDescriptions(), l1t::L1TRawToDigi::fillDescriptions(), EgammaHLTEcalIsolationProducersRegional::fillDescriptions(), CTPPSBeamParametersESSource::fillDescriptions(), AlCaIsolatedBunchFilter::fillDescriptions(), AlCaIsoTracksProducerFilter::fillDescriptions(), AlCaIsolatedBunchSelector::fillDescriptions(), LumiMonitor::fillDescriptions(), PFECALSuperClusterProducer::fillDescriptions(), ElectronNHitSeedProducer::fillDescriptions(), HLTScoutingEgammaProducer::fillDescriptions(), HLTBeamModeFilter::fillDescriptions(), edm::service::SiteLocalConfigService::fillDescriptions(), RunLumiEventChecker::fillDescriptions(), edm::service::Timing::fillDescriptions(), HLTPrescaleRecorder::fillDescriptions(), GctRawToDigi::fillDescriptions(), l1t::L1TDigiToRaw::fillDescriptions(), SiStripApvGainRescaler::fillDescriptions(), BtlSimHitsValidation::fillDescriptions(), DeDxEstimatorProducer::fillDescriptions(), RecoTauPiZeroProducer::fillDescriptions(), CaloParticleDebugger::fillDescriptions(), HLTRechitsToDigis::fillDescriptions(), JetVertexChecker::fillDescriptions(), HLTCSCAcceptBusyFilter::fillDescriptions(), omtf::OmtfPacker::fillDescriptions(), HcalCollapseAnalyzer::fillDescriptions(), HGCalTimingAnalyzer::fillDescriptions(), reco::HcalNoiseInfoProducer::fillDescriptions(), OnlineMetaDataRawToDigi::fillDescriptions(), TrackingParticleSelectorByGen::fillDescriptions(), EcalRawToDigi::fillDescriptions(), EGMEnergyVarProducer< T >::fillDescriptions(), FastjetJetProducer::fillDescriptions(), PATTauDiscriminationAgainstElectronMVA6::fillDescriptions(), CTPPSDirectProtonSimulation::fillDescriptions(), VertexFromTrackProducer::fillDescriptions(), DiJetMonitor::fillDescriptions(), __class__< T >::fillDescriptions(), L1TCaloUpgradeToGCTConverter::fillDescriptions(), L1TExtCondProducer::fillDescriptions(), CaloRecHitsBeamHaloCleaned::fillDescriptions(), RecoTauMVATransform::fillDescriptions(), ElectronSeedProducer::fillDescriptions(), omtf::OmtfUnpacker::fillDescriptions(), PrescaleEventFilter::fillDescriptions(), PrimaryVertexResolution::fillDescriptions(), L1TriggerResultsConverter::fillDescriptions(), HLTHFAsymmetryFilter::fillDescriptions(), HLTScoutingMuonProducer::fillDescriptions(), IsolatedParticlesGeneratedJets::fillDescriptions(), ZMuMuMassConstraintParameterFinder::fillDescriptions(), HcalLaserEventFilter::fillDescriptions(), SiStripChannelGainFromDBMiscalibrator::fillDescriptions(), HLTPixelAsymmetryFilter::fillDescriptions(), SiStripNoisesFromDBMiscalibrator::fillDescriptions(), L1TExtCondLegacyToStage2::fillDescriptions(), METplusTrackMonitor::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), BetaStarVarProducer< T >::fillDescriptions(), HLTPrescaler::fillDescriptions(), CTPPSGeometryESModule::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), RecoTauProducer::fillDescriptions(), L2MuonSeedGeneratorFromL1T::fillDescriptions(), HLTDTActivityFilter::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA6::fillDescriptions(), HLTRPCTrigNoSyncFilter::fillDescriptions(), HLTL1TSeed::fillDescriptions(), PFEGammaProducer::fillDescriptions(), FastPrimaryVertexWithWeightsProducer::fillDescriptions(), HLTEcalPhiSymFilter::fillDescriptions(), SiPixelClusterProducer::fillDescriptions(), GlobalTrackingRegionWithVerticesProducer::fillDescriptions(), DependencyGraph::fillDescriptions(), ObjMonitor::fillDescriptions(), PFCandidateRecalibrator::fillDescriptions(), HLTCATopTagFilter::fillDescriptions(), L1GlobalTriggerRawToDigi::fillDescriptions(), PhotonMonitor::fillDescriptions(), TrackingRegionsFromBeamSpotAndL2Tau::fillDescriptions(), RPCChamberMasker::fillDescriptions(), EcalMIPRecHitFilter::fillDescriptions(), VIDNestedWPBitmapProducer< T >::fillDescriptions(), HGCalTBAnalyzer::fillDescriptions(), AlCaHEMuonFilter::fillDescriptions(), AlCaLowPUHBHEMuonFilter::fillDescriptions(), PixelJetPuId::fillDescriptions(), PFTauTransverseImpactParameters::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), PFTauSecondaryVertexProducer::fillDescriptions(), HLTPMMassFilter::fillDescriptions(), HITrackingRegionForPrimaryVtxProducer::fillDescriptions(), CaloParticleValidation::fillDescriptions(), HcalRaddamMuon::fillDescriptions(), TopMonitor::fillDescriptions(), TkMSParameterizationBuilder::fillDescriptions(), LeptonJetVarProducer< T >::fillDescriptions(), CorrectedECALPFClusterProducer::fillDescriptions(), HGCalRecHitValidation::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA5::fillDescriptions(), GenHFHadronMatcher::fillDescriptions(), RazorMonitor::fillDescriptions(), APVModeFilter::fillDescriptions(), MuonTrackingRegionBuilder::fillDescriptions(), MuonMonitor::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), HLTLevel1GTSeed::fillDescriptions(), DeepFlavourTagInfoProducer::fillDescriptions(), SiPixelDigiToRaw::fillDescriptions(), JetMonitor::fillDescriptions(), APVCyclePhaseDebuggerFromL1TS::fillDescriptions(), MCMisalignmentScaler::fillDescriptions(), edm::PoolOutputModule::fillDescriptions(), PFRecoTauChargedHadronProducer::fillDescriptions(), DTChamberMasker::fillDescriptions(), METMonitor::fillDescriptions(), HLTGetDigi::fillDescriptions(), ApeTreeCreateDefault::fillDescriptions(), HTMonitor::fillDescriptions(), edm::service::Tracer::fillDescriptions(), Pi0FixedMassWindowCalibration::fillDescriptions(), evf::EvFDaqDirector::fillDescriptions(), EgammaHLTGsfTrackVarProducer::fillDescriptions(), DigiSimLinkPruner::fillDescriptions(), HGCalDigiValidation::fillDescriptions(), AreaSeededTrackingRegionsProducer::fillDescriptions(), edm::PathStatusFilter::fillDescriptions(), CSCChamberMasker::fillDescriptions(), RecAnalyzerMinbias::fillDescriptions(), HLTDummyCollections::fillDescriptions(), pat::PATObjectUserDataEmbedder< T >::fillDescriptions(), TauRegionalPixelSeedGenerator::fillDescriptions(), FastTrackDeDxProducer::fillDescriptions(), pat::JetCorrFactorsProducer::fillDescriptions(), IsoValueMapProducer< T >::fillDescriptions(), CreateIdealTkAlRecords::fillDescriptions(), TrackExtenderWithMTDT< TrackCollection >::fillDescriptions(), HGCalSimHitValidation::fillDescriptions(), PFRecoTauDiscriminationAgainstElectron2::fillDescriptions(), HcalHBHEMuonAnalyzer::fillDescriptions(), TriggerBxMonitor::fillDescriptions(), AlCaIsoTracksFilter::fillDescriptions(), HLTEcalResonanceFilter::fillDescriptions(), BPHMonitor::fillDescriptions(), HLTJetsCleanedFromLeadingLeptons< JetType >::fillDescriptions(), HLTRegionalEcalResonanceFilter::fillDescriptions(), edm::service::SimpleMemoryCheck::fillDescriptions(), edm::service::RandomNumberGeneratorService::fillDescriptions(), CosmicRateAnalyzer::fillDescriptions(), cms::CATopJetProducer::fillDescriptions(), SelectedElectronFEDListProducer< TEle, TCand >::fillDescriptions(), GenVisTauProducer::fillDescriptions(), PhotonIDValueMapProducer::fillDescriptions(), L1TriggerJSONMonitoring::fillDescriptions(), StudyHLT::fillDescriptions(), IsoTrackCalib::fillDescriptions(), CorrectedMETProducerT< T >::fillDescriptions(), TriggerSummaryProducerAOD::fillDescriptions(), HLTriggerJSONMonitoring::fillDescriptions(), HcalIsoTrkAnalyzer::fillDescriptions(), DTCCablingMapProducer::fillDescriptions(), TrackingRegionsFromSuperClustersProducer::fillDescriptions(), cms::HTTTopJetProducer::fillDescriptions(), HLTRecHitInAllL1RegionsProducer< RecHitType >::fillDescriptions(), edm::service::InitRootHandlers::fillDescriptions(), AlCaIsoTracksProducer::fillDescriptions(), IsoTrig::fillDescriptions(), CandidateSeededTrackingRegionsProducer::fillDescriptions(), NPUTablesProducer::fillDescriptions(), IsolatedTracksHcalScale::fillDescriptions(), EgammaHLTPixelMatchVarProducer::fillDescriptions(), BJetEnergyRegressionVarProducer< T >::fillDescriptions(), TrackMVAClassifier< MVA, EventCache >::fillDescriptions(), PointSeededTrackingRegionsProducer::fillDescriptions(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::fillDescriptions(), TriggerRatesMonitor::fillDescriptions(), IsolatedGenParticles::fillDescriptions(), BJetEnergyRegressionMVA::fillDescriptions(), BaseMVAValueMapProducer< T >::fillDescriptions(), IsolatedTracksCone::fillDescriptions(), PFRecoTauDiscriminationByIsolationMVA2::fillDescriptions(), BTagSFProducer::fillDescriptions(), NVProfilerService::fillDescriptions(), reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::fillDescriptions(), evf::FastMonitoringService::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), reco::tau::PATTauDiscriminationByMVAIsolationRun2::fillDescriptions(), PFJetMETcorrInputProducerT< T, Textractor >::fillDescriptions(), CandidatePointSeededTrackingRegionsProducer::fillDescriptions(), IsolatedTracksNxN::fillDescriptions(), LHETablesProducer::fillDescriptions(), FastTimerService::fillDescriptions(), edm::service::StallMonitor::fillDescriptions(), PFRecoTauDiscriminationByIsolation::fillDescriptions(), ProtonProducer::fillDescriptions(), pat::PATJetSelector::fillDescriptions(), CandMCMatchTableProducer::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(), edm::EventSetupCacheIdentifierChecker::fillDescriptions(), QuickTrackAssociatorByHitsProducer::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), JetHTJetPlusHOFilter::fillDescriptions(), PPSSimTrackProducer::fillDescriptions(), L1TBMTFConverter::fillDescriptions(), edm::EDFilter::fillDescriptions(), JetConstituentSelector< T, C >::fillDescriptions(), SiStripGainsPCLHarvester::fillDescriptions(), GenJetTauTaggerProducer::fillDescriptions(), ElectronMVANtuplizer::fillDescriptions(), PhotonMVANtuplizer::fillDescriptions(), ValueMapTraslator::fillDescriptions(), ExtraFromSeeds::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(), VertexTableProducer::fillDescriptions(), AlignPCLThresholdsWriter::fillDescriptions(), EGEnergyAnalyzer::fillDescriptions(), BeamSpotRcdReader::fillDescriptions(), TestPythiaDecays::fillDescriptions(), L1TStage2InputPatternWriter::fillDescriptions(), NanoAODBaseCrossCleaner::fillDescriptions(), edm::stream::EDFilterBase::fillDescriptions(), TrackAssociatorByHitsProducer::fillDescriptions(), HFPreReconstructor::fillDescriptions(), TrackFromSeedProducer::fillDescriptions(), AlCaGammaJetSelector::fillDescriptions(), SoftLepton::fillDescriptions(), edm::stream::EDProducerBase::fillDescriptions(), ElectronHEEPIDValueMapProducer::fillDescriptions(), B2GHadronicHLTValidation::fillDescriptions(), B2GSingleLeptonHLTValidation::fillDescriptions(), TopSingleLeptonHLTValidation::fillDescriptions(), B2GDoubleLeptonHLTValidation::fillDescriptions(), TemplatedDeepNNTagInfoProducer< IPTag, SVTag >::fillDescriptions(), HcalLaserHBHEHFFilter2012::fillDescriptions(), L1TMicroGMTInputProducerFromGen::fillDescriptions(), HcalLaserHBHEFilter2012::fillDescriptions(), HcalLutAnalyzer::fillDescriptions(), l1t::AMC13DumpToRaw::fillDescriptions(), l1t::AMCDumpToRaw::fillDescriptions(), PixelLumiDQM::fillDescriptions(), PFCand_NoPU_WithAM::fillDescriptions(), HcalLaserHFFilter2012::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), edm::global::EDAnalyzerBase::fillDescriptions(), LogMessageMonitor::fillDescriptions(), TopDiLeptonHLTValidation::fillDescriptions(), SinglePhotonJetPlusHOFilter::fillDescriptions(), l1t::L1TGlobalAnalyzer::fillDescriptions(), edm::limited::EDAnalyzerBase::fillDescriptions(), edm::one::EDAnalyzerBase::fillDescriptions(), SiStripFEDCheckPlugin::fillDescriptions(), edm::one::EDProducerBase::fillDescriptions(), edm::one::EDFilterBase::fillDescriptions(), EGammaCutBasedEleIdAnalyzer::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(), L1TMuonProducer::fillDescriptions(), FSQDiJetAve::fillDescriptions(), edm::global::EDProducerBase::fillDescriptions(), edm::limited::EDProducerBase::fillDescriptions(), DeepCMVATagInfoProducer::fillDescriptions(), l1t::BXVectorInputProducer::fillDescriptions(), l1t::GenToInputProducer::fillDescriptions(), EmbeddingVertexCorrector::fillDescriptions(), L1TComparison::fillDescriptions(), BoostedDoubleSVProducer::fillDescriptions(), HGCalHitValidation::fillDescriptions(), L1TStage2Layer1Producer::fillDescriptions(), LHCInfoProducer::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(), evf::EvFOutputModule::fillDescriptions(), timestudy::SleepingProducer::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(), TrackExtraRekeyer::fillDescriptions(), TrackProducerFromPatMuons::fillDescriptions(), LowPtGsfElectronFinalizer::fillDescriptions(), CandPtrProjector::fillDescriptions(), L1TStage2ObjectComparison< T >::fillDescriptions(), MuonIDFilterProducerForHLT::fillDescriptions(), PFEGammaToCandidate::fillDescriptions(), BoostedJetONNXJetTagsProducer::fillDescriptions(), BadParticleFilter::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().