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(), edm::EmptySource::fillDescriptions(), HLTDynamicPrescaler::fillDescriptions(), GEDGsfElectronCoreProducer::fillDescriptions(), PixelTrackCleanerBySharedHitsESProducer::fillDescriptions(), edm::ModuloEventIDFilter::fillDescriptions(), PFTauMiniAODPrimaryVertexProducer::fillDescriptions(), edm::ModuloStreamIDFilter::fillDescriptions(), TrackAlgoPriorityOrderESProducer::fillDescriptions(), TrackCleanerESProducer::fillDescriptions(), edm::Prescaler::fillDescriptions(), RecoTauDecayModeCutMultiplexer::fillDescriptions(), edm::TestSource::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(), HLTTrackSeedMultiplicityFilter::fillDescriptions(), HLTDisplacedmumuFilter::fillDescriptions(), HLTDisplacedmumumuFilter::fillDescriptions(), HLTDisplacedtktkFilter::fillDescriptions(), HLTDisplacedtktktkFilter::fillDescriptions(), ValidHitPairFilterProducer::fillDescriptions(), PixelTrackProducer::fillDescriptions(), GsfTrackProducer::fillDescriptions(), HLTMuonTrkFilter::fillDescriptions(), HLTMuonTrkL1TFilter::fillDescriptions(), HLTmumutkFilter::fillDescriptions(), LowPtGsfElectronCoreProducer::fillDescriptions(), HIBestVertexProducer::fillDescriptions(), BasicToPFJet::fillDescriptions(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::fillDescriptions(), PixelTrackFilterByKinematicsProducer::fillDescriptions(), TrackingParticleNumberOfLayersProducer::fillDescriptions(), edmtest::AlignPCLThresholdsReader::fillDescriptions(), HLTPixelActivityFilter::fillDescriptions(), HLTPixelIsolTrackFilter::fillDescriptions(), HFNoseRawToDigiFake::fillDescriptions(), HLTmumutktkFilter::fillDescriptions(), HGCalRawToDigiFake::fillDescriptions(), HGCDigiConverter::fillDescriptions(), QGTagger::fillDescriptions(), TrackingParticleBHadronRefSelector::fillDescriptions(), HLTPixelIsolTrackL1TFilter::fillDescriptions(), pat::UnclusteredBlobProducer::fillDescriptions(), ClusterShapeTrackFilterProducer::fillDescriptions(), HLTMuonTrackMassFilter::fillDescriptions(), MeasurementTrackerEventProducer::fillDescriptions(), VertexAssociatorByTracksProducer::fillDescriptions(), HLTEcalPixelIsolTrackFilter::fillDescriptions(), MTDGeometricTimingDetESModule::fillDescriptions(), TrackerGeometricDetESModule::fillDescriptions(), ESRawToDigi::fillDescriptions(), HIPixelTrackFilterProducer::fillDescriptions(), L1TStage2uGMTMuon::fillDescriptions(), PFRecoTauDiscriminationByLeadingObjectPtCut::fillDescriptions(), MultiHitFromChi2EDProducer::fillDescriptions(), HLTDQMMuonSelector::fillDescriptions(), HLTCSCOverlapFilter::fillDescriptions(), HLTCSCRing2or3Filter::fillDescriptions(), GeneratorSmearedProducer::fillDescriptions(), HLTMultipletFilter::fillDescriptions(), MTDDigiGeometryESModule::fillDescriptions(), HcalParametersESModule::fillDescriptions(), HcalTrigTowerGeometryESProducer::fillDescriptions(), MTDTopologyEP::fillDescriptions(), TrackerTopologyEP::fillDescriptions(), dqmservices::DQMProtobufReader::fillDescriptions(), edm::StreamerOutputModule< Consumer >::fillDescriptions(), HLTElectronMissingHitsFilter::fillDescriptions(), LowPtGsfElectronSCProducer::fillDescriptions(), LowPtGsfElectronSeedValueMapsProducer::fillDescriptions(), EgammaHLTTimeCleanedRechitProducer::fillDescriptions(), ECFAdder::fillDescriptions(), HLTHemiDPhiFilter::fillDescriptions(), TrigObjTnPSource::fillDescriptions(), L1TStage2MuonComp::fillDescriptions(), L1TStage2RegionalMuonCandComp::fillDescriptions(), VertexAssociatorByPositionAndTracksProducer::fillDescriptions(), HLTHcalNoiseFilter::fillDescriptions(), HLTPixelTrackFilter::fillDescriptions(), TrackerParametersESModule::fillDescriptions(), NumberPerLSFilter::fillDescriptions(), HLTElectronPixelMatchFilter::fillDescriptions(), PUFilter::fillDescriptions(), EcalUncalibRecHitProducer::fillDescriptions(), MTDCPEESProducer::fillDescriptions(), TriggerRatesMonitorClient::fillDescriptions(), HLTForwardBackwardJetsFilter< T >::fillDescriptions(), HLTJetL1MatchProducer< T >::fillDescriptions(), HLTNVFilter::fillDescriptions(), HLTRapGapFilter::fillDescriptions(), HLTPhi2METFilter::fillDescriptions(), PFJetsMatchedToFilteredCaloJetsProducer::fillDescriptions(), GEMDQMHarvester::fillDescriptions(), HLTMuonL1RegionalFilter::fillDescriptions(), HLTMuonL1TFilter::fillDescriptions(), HLTRPCFilter::fillDescriptions(), IPTCorrector::fillDescriptions(), TFileAdaptor::fillDescriptions(), ElectronIDValueMapProducer::fillDescriptions(), HLTScoutingPrimaryVertexProducer::fillDescriptions(), HLT2jetGapFilter::fillDescriptions(), edm::BunchCrossingFilter::fillDescriptions(), evf::EvFFEDSelector::fillDescriptions(), HLTHcalMETNoiseCleaner::fillDescriptions(), HLTJetCollectionsFilter< jetType >::fillDescriptions(), HLTPFTauPairLeadTrackDzMatchFilter::fillDescriptions(), L2TauJetsMerger::fillDescriptions(), CaloRecoTauDiscriminationByLeadingTrackPtCut::fillDescriptions(), HLTJetL1TMatchProducer< T >::fillDescriptions(), PFRecoTauDiscriminationByCharge::fillDescriptions(), L1TStage2uGMT::fillDescriptions(), MCParticleModuloFilter::fillDescriptions(), HcalTopologyIdealEP::fillDescriptions(), HLTHcalTowerFilter::fillDescriptions(), MTDParametersESModule::fillDescriptions(), CTPPSOpticalFunctionsESSource::fillDescriptions(), IsolatedEcalPixelTrackCandidateProducer::fillDescriptions(), HLTJetPairDzMatchFilter< T >::fillDescriptions(), CSCDCCUnpacker::fillDescriptions(), HLTEgammaAllCombMassFilter::fillDescriptions(), HLTEgammaDoubleLegCombFilter::fillDescriptions(), CSCObjectMapESProducer::fillDescriptions(), DTObjectMapESProducer::fillDescriptions(), AnyJetToCaloJetProducer::fillDescriptions(), HLTHPDFilter::fillDescriptions(), L1THLTTauMatching::fillDescriptions(), PFTauDiscriminatorLogicalAndProducer::fillDescriptions(), HLTMuonL1TRegionalFilter::fillDescriptions(), HLTMuonL3SimplePreFilter::fillDescriptions(), TOFPIDProducer::fillDescriptions(), HLTSingleVertexPixelTrackFilter::fillDescriptions(), RPCInverseLBLinkMapESProducer::fillDescriptions(), RPCInverseCPPFLinkMapESProducer::fillDescriptions(), StableParametersTrivialProducer::fillDescriptions(), RPCInverseOMTFLinkMapESProducer::fillDescriptions(), RPCInverseTwinMuxLinkMapESProducer::fillDescriptions(), HLTEgammaCombMassFilter::fillDescriptions(), PileUpFilter::fillDescriptions(), CTPPSInterpolatedOpticalFunctionsESSource::fillDescriptions(), HLTHcalLaserFilter::fillDescriptions(), L1HLTTauMatching::fillDescriptions(), HLTDeDxFilter::fillDescriptions(), HitPairEDProducer::fillDescriptions(), SeedCreatorFromRegionHitsEDProducerT< T_SeedCreator >::fillDescriptions(), edm::service::UnixSignalService::fillDescriptions(), JetTracksAssociationToTrackRefs::fillDescriptions(), pat::BadPFCandidateJetsEEnoiseProducer::fillDescriptions(), L1GTPrescaler::fillDescriptions(), EgammaHLTHybridClusterProducer::fillDescriptions(), EgammaEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), EgammaHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), MVAJetPuIdProducer::fillDescriptions(), MTDTimeCalibESProducer::fillDescriptions(), BunchSpacingProducer::fillDescriptions(), GEMDQMStatusDigi::fillDescriptions(), HLTDiJetAveEtaFilter< T >::fillDescriptions(), HLTDiJetAveFilter< T >::fillDescriptions(), HLTDiJetEtaTopologyFilter< T >::fillDescriptions(), TrackFitterProducer::fillDescriptions(), KFBasedPixelFitterProducer::fillDescriptions(), PixelFitterByHelixProjectionsProducer::fillDescriptions(), HLTHcalTowerNoiseCleanerWithrechit::fillDescriptions(), HLTHcalTowerNoiseCleaner::fillDescriptions(), L1TMP7ZeroSupp::fillDescriptions(), HLTHcalMETNoiseFilter::fillDescriptions(), HLTJetEtaTopologyFilter< T >::fillDescriptions(), HLTJetVBFFilter< T >::fillDescriptions(), HLTMonoJetFilter< T >::fillDescriptions(), PFRecoTauDiscriminationByNProngs::fillDescriptions(), HLTMuonDimuonL2Filter::fillDescriptions(), HLTMuonDimuonL2FromL1TFilter::fillDescriptions(), PixelInactiveAreaTrackingRegionsSeedingLayersProducer::fillDescriptions(), HLTMuonL2PreFilter::fillDescriptions(), HLTMuonPFIsoFilter::fillDescriptions(), HLTMuonL2FromL1TPreFilter::fillDescriptions(), HLTTriMuonIsolation::fillDescriptions(), HLTPhysicsDeclared::fillDescriptions(), ConeIsolation::fillDescriptions(), HLTDisplacedEgammaFilter::fillDescriptions(), LowPtGSFToPackedCandidateLinker::fillDescriptions(), HLTEgammaDoubleEtDeltaPhiFilter::fillDescriptions(), HLTEgammaEtFilter::fillDescriptions(), HLTEgammaEtFilterPairs::fillDescriptions(), HLTElectronEtFilter::fillDescriptions(), HLTElectronOneOEMinusOneOPFilterRegional::fillDescriptions(), GEMDQMSourceDigi::fillDescriptions(), LowPtGSFToTrackLinker::fillDescriptions(), EcalRecHitsMerger::fillDescriptions(), RPCUnpackingModule::fillDescriptions(), ESRecHitsMerger::fillDescriptions(), photonIsolationHIProducer::fillDescriptions(), TreeWriterForEcalCorrection::fillDescriptions(), L3MuonSumCaloPFIsolationProducer::fillDescriptions(), HLTExclDiJetFilter< T >::fillDescriptions(), HLTFatJetMassFilter< jetType >::fillDescriptions(), HLTJetCollectionsVBFFilter< T >::fillDescriptions(), PFRecoTauDiscriminationByTauPolarization::fillDescriptions(), RecoTauPileUpVertexSelector::fillDescriptions(), HLTMuonIsoFilter::fillDescriptions(), edm::StreamerFileReader::fillDescriptions(), CTPPSPixelRawToDigi::fillDescriptions(), DTUnpackingModule::fillDescriptions(), HLTEgammaGenericQuadraticEtaFilter::fillDescriptions(), HLTEgammaGenericQuadraticFilter::fillDescriptions(), HLTEgammaTriggerFilterObjectWrapper::fillDescriptions(), HLTElectronEoverpFilterRegional::fillDescriptions(), HLTElectronGenericFilter::fillDescriptions(), RPCAMCRawToDigi::fillDescriptions(), EgammaHLTCaloTowerProducer::fillDescriptions(), TriggerSummaryAnalyzerAOD::fillDescriptions(), EgammaHLTIslandClusterProducer::fillDescriptions(), RPCTwinMuxDigiToRaw::fillDescriptions(), TriggerSummaryAnalyzerRAW::fillDescriptions(), HiFJGridEmptyAreaCalculator::fillDescriptions(), HIProtoTrackFilterProducer::fillDescriptions(), edm::AsciiOutputModule::fillDescriptions(), HitTripletEDProducerT< T_HitTripletGenerator >::fillDescriptions(), CAHitNtupletEDProducerT< T_Generator >::fillDescriptions(), HLTMhtFilter::fillDescriptions(), PFRecoTauDiscriminationByHPSSelection::fillDescriptions(), PFTauViewRefMerger::fillDescriptions(), HLTMuonTrimuonL3Filter::fillDescriptions(), edm::TimeoutPoolOutputModule::fillDescriptions(), HLTMuonL1toL3TkPreFilter::fillDescriptions(), LowPtGsfElectronIDProducer::fillDescriptions(), HLTPMDocaFilter::fillDescriptions(), RPCDigiMerger::fillDescriptions(), BeamSpotProblemMonitor::fillDescriptions(), HLTBool::fillDescriptions(), GEMDQMSource::fillDescriptions(), HiFJRhoProducer::fillDescriptions(), HLTSinglet< T >::fillDescriptions(), cms::CSJetProducer::fillDescriptions(), HcalSimpleReconstructor::fillDescriptions(), HLTAcoFilter::fillDescriptions(), SiPixelClusterShapeCacheProducer::fillDescriptions(), PFJetsMaxInvMassModule::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), HLTMuonL1TtoL3TkPreFilter::fillDescriptions(), edm::ZombieKillerService::fillDescriptions(), VertexCompositeCandidateCollectionSelector::fillDescriptions(), ThroughputServiceClient::fillDescriptions(), dqmservices::DQMStreamerReader::fillDescriptions(), dqm::RamdiskMonitor::fillDescriptions(), PATPuppiJetSpecificProducer::fillDescriptions(), DeepBoostedJetTagInfoProducer::fillDescriptions(), HLTEventAnalyzerAOD::fillDescriptions(), EgammaHLTMulti5x5ClusterProducer::fillDescriptions(), HLTEventAnalyzerRAW::fillDescriptions(), HLTGlobalSums< T >::fillDescriptions(), EcalRecHitProducer::fillDescriptions(), HLTAlphaTFilter< T >::fillDescriptions(), HLTMuonL2SelectorForL3IO::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), HLTPFJetIDProducer::fillDescriptions(), edm::service::ConcurrentModuleTimer::fillDescriptions(), GlobalTrackingRegionProducer::fillDescriptions(), BeamDivergenceVtxGenerator::fillDescriptions(), RandomEngineStateProducer::fillDescriptions(), MuonIDTableProducer::fillDescriptions(), HLTEgammaDoubleEtFilter::fillDescriptions(), HLTEgammaDoubleEtPhiFilter::fillDescriptions(), HLTEgammaL1MatchFilterRegional::fillDescriptions(), HLTEgammaL1MatchFilterPairs::fillDescriptions(), PFTauL1TJetsMatching::fillDescriptions(), SiStripDetVOffPrinter::fillDescriptions(), sistrip::ExcludedFEDListProducer::fillDescriptions(), HLTRFilter::fillDescriptions(), L2MuonIsolationProducer::fillDescriptions(), L3MuonCombinedRelativeIsolationProducer::fillDescriptions(), ChargedHadronPFTrackIsolationProducer::fillDescriptions(), CaloTowerFromL1TSeededCreatorForTauHLT::fillDescriptions(), HLTHtMhtFilter::fillDescriptions(), PFRecoTauDiscriminationByDeltaE::fillDescriptions(), HLTMinDPhiMETFilter::fillDescriptions(), HLTMuonL3PreFilter::fillDescriptions(), edm::service::ResourceEnforcer::fillDescriptions(), BPHHistoSpecificDecay::fillDescriptions(), MillePedeFileConverter::fillDescriptions(), EnergyRingsTableProducer::fillDescriptions(), HLTEgammaL1TMatchFilterRegional::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), RecoTauPiZeroUnembedder::fillDescriptions(), HLTMuonL1Filter::fillDescriptions(), HLTDTROMonitorFilter::fillDescriptions(), HLTEcalTowerFilter::fillDescriptions(), HcalDDDSimConstantsESModule::fillDescriptions(), CaloTowerTopologyEP::fillDescriptions(), HLTPixelActivityHFSumEnergyFilter::fillDescriptions(), HLTPixlMBFilt::fillDescriptions(), HLTPixlMBForAlignmentFilter::fillDescriptions(), HLLHCEvtVtxGenerator::fillDescriptions(), PSMonitorClient::fillDescriptions(), HLTEgammaCaloIsolFilterPairs::fillDescriptions(), HcalRawToDigi::fillDescriptions(), CTPPSDiamondLocalTrackFitter::fillDescriptions(), IslandClusterProducer::fillDescriptions(), EgammaHLTCombinedIsolationProducer::fillDescriptions(), HLTGetRaw::fillDescriptions(), SiPixelRawToDigi::fillDescriptions(), HGCalMultiClusterProducer::fillDescriptions(), MTDTrackingRecHitProducer::fillDescriptions(), HLTRHemisphere::fillDescriptions(), GlobalTrackQualityProducer::fillDescriptions(), HLTCaloTowerHtMhtProducer::fillDescriptions(), CaloRecoTauDiscriminationByDeltaE::fillDescriptions(), FilterOutLowPt::fillDescriptions(), DQMScaleToClient::fillDescriptions(), HLTCTPPSLocalTrackFilter::fillDescriptions(), HLTDisplacedmumumuVtxProducer::fillDescriptions(), TotemRPRecHitProducer::fillDescriptions(), TotemTimingLocalTrackFitter::fillDescriptions(), EgammaHLTClusterShapeProducer::fillDescriptions(), RawDataMapperByLabel::fillDescriptions(), EgammaHLTRecoEcalCandidateProducers::fillDescriptions(), HLTSmartSinglet< T >::fillDescriptions(), HLTMuonDimuonL3Filter::fillDescriptions(), PixelFitterByConformalMappingAndLineProducer::fillDescriptions(), CandMergerCleanOthersByDR::fillDescriptions(), MillePedeFileExtractor::fillDescriptions(), TrackerDigiGeometryESModule::fillDescriptions(), HLTDisplacedmumuVtxProducer::fillDescriptions(), HLTJetTagWithMatching< T >::fillDescriptions(), CTPPSLocalTrackLiteProducer::fillDescriptions(), EgammaHLTPFChargedIsolationProducer::fillDescriptions(), EgammaHLTRemoveDuplicatedSC::fillDescriptions(), HLTLevel1Pattern::fillDescriptions(), EcalDetIdToBeRecoveredProducer::fillDescriptions(), MuonSeedGenerator::fillDescriptions(), TSGForOI::fillDescriptions(), TotemRPClusterProducer::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), EtlDigiHitsValidation::fillDescriptions(), EtlRecHitsValidation::fillDescriptions(), HLTCaloTowerFilter::fillDescriptions(), HLTJetTag< T >::fillDescriptions(), EgammaHLTElectronCombinedIsolationProducer::fillDescriptions(), EgammaHLTPFNeutralIsolationProducer::fillDescriptions(), EgammaHLTPixelMatchElectronProducers::fillDescriptions(), TriggerSummaryProducerRAW::fillDescriptions(), HLTDoubletDZ< T1, T2 >::fillDescriptions(), HLTSummaryFilter::fillDescriptions(), CSCRecHitDProducer::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), EgammaHLTPFPhotonIsolationProducer::fillDescriptions(), HLTMETCleanerUsingJetID::fillDescriptions(), HLTPFEnergyFractionsFilter::fillDescriptions(), GEMChamberMasker::fillDescriptions(), GEMRecHitProducer::fillDescriptions(), SiPixelStatusProducer::fillDescriptions(), HLTHcalLaserMisfireFilter::fillDescriptions(), citk::PFIsolationSumProducerForPUPPI::fillDescriptions(), GenJetFlavourTableProducer::fillDescriptions(), HLTMhtProducer::fillDescriptions(), GEMDigiToRawModule::fillDescriptions(), HcalRawToDigiFake::fillDescriptions(), HLTElectronPFMTFilter< T >::fillDescriptions(), EgammaHLTEcalRecIsolationProducer::fillDescriptions(), HLTEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), RPCTwinMuxRawToDigi::fillDescriptions(), sistrip::DigiToRawModule::fillDescriptions(), HGCalLayerClusterProducer::fillDescriptions(), HLTHtMhtProducer::fillDescriptions(), LogErrorFilter::fillDescriptions(), L1TObjectsTiming::fillDescriptions(), CTPPSDiamondRecHitProducer::fillDescriptions(), HLTScoutingTrackProducer::fillDescriptions(), HLTCountNumberOfObject< OColl >::fillDescriptions(), HLTTriggerTypeFilter::fillDescriptions(), FastTimerServiceClient::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), HLTDisplacedtktktkVtxProducer::fillDescriptions(), L1TGlobalSummary::fillDescriptions(), HLTDisplacedtktkVtxProducer::fillDescriptions(), PFClusterTimeAssigner::fillDescriptions(), CTPPSPixelRecHitProducer::fillDescriptions(), EcalListOfFEDSProducer::fillDescriptions(), EgammaHLTRegionalPixelSeedGeneratorProducers::fillDescriptions(), ESListOfFEDSProducer::fillDescriptions(), HLTDoublet< T1, T2 >::fillDescriptions(), HLTMuonTrackSelector::fillDescriptions(), HLTCaloJetIDProducer::fillDescriptions(), TSGForOIFromL2::fillDescriptions(), ClusterTPAssociationProducer::fillDescriptions(), edm::service::LoadAllDictionaries::fillDescriptions(), PFRecoTauDiscriminationAgainstMuon::fillDescriptions(), LHESource::fillDescriptions(), HLTVertexFilter::fillDescriptions(), Tau3MuMonitor::fillDescriptions(), HLTHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), HLTFiltCand::fillDescriptions(), PSMonitor::fillDescriptions(), EventIDChecker::fillDescriptions(), ME0ChamberMasker::fillDescriptions(), BtlDigiHitsValidation::fillDescriptions(), BtlRecHitsValidation::fillDescriptions(), BPHWriteSpecificDecay::fillDescriptions(), CTPPSProtonProducer::fillDescriptions(), PFRecoTauDiscriminationByInvMass::fillDescriptions(), HLTCollectionProducer< T >::fillDescriptions(), BeamSpotRcdPrinter::fillDescriptions(), PPSTimingCalibrationESSource::fillDescriptions(), TotemTimingRecHitProducer::fillDescriptions(), EgammaHLTElectronTrackIsolationProducers::fillDescriptions(), TotemRPLocalTrackFitter::fillDescriptions(), EgammaHLTHcalIsolationDoubleConeProducers::fillDescriptions(), TriggerBxVsOrbitMonitor::fillDescriptions(), CaloRecoTauProducer::fillDescriptions(), HLTJetSortedVBFFilter< T >::fillDescriptions(), HIMuonTrackingRegionProducer::fillDescriptions(), AbortOnEventIDAnalyzer::fillDescriptions(), PFRecoTauProducer::fillDescriptions(), edm::service::CondorStatusService::fillDescriptions(), HLTEventNumberFilter::fillDescriptions(), pat::LeptonUpdater< T >::fillDescriptions(), DeepDoubleXTFJetTagsProducer::fillDescriptions(), DeepFlavourTFJetTagsProducer::fillDescriptions(), ThroughputService::fillDescriptions(), EgammaHLTR9IDProducer::fillDescriptions(), edm::service::PrescaleService::fillDescriptions(), HLTLevel1Activity::fillDescriptions(), TriggerResultsFilterFromDB::fillDescriptions(), DQMCorrelationClient::fillDescriptions(), EgammaHLTNxNClusterProducer::fillDescriptions(), HLTL1TMuonSelector::fillDescriptions(), GlobalTrackingRegionProducerFromBeamSpot::fillDescriptions(), edm::service::CPU::fillDescriptions(), PFRecoTauTagInfoProducer::fillDescriptions(), HLTHcalPhiSymFilter::fillDescriptions(), HLTL1NumberFilter::fillDescriptions(), L3MuonProducer::fillDescriptions(), HLTTrackWithHits::fillDescriptions(), EgammaHLTElectronDetaDphiProducer::fillDescriptions(), HLTmumutktkVtxProducer::fillDescriptions(), pat::PATJetUpdater::fillDescriptions(), EgammaHLTHcalIsolationProducersRegional::fillDescriptions(), EgammaHLTPhotonTrackIsolationProducersRegional::fillDescriptions(), HLTHighLevel::fillDescriptions(), L1ECALPrefiringWeightProducer::fillDescriptions(), TriggerResultsFilter::fillDescriptions(), MTDClusterProducer::fillDescriptions(), edm::LogErrorHarvester::fillDescriptions(), DPFIsolation::fillDescriptions(), FedRawDataInputSource::fillDescriptions(), edm::PrintEventSetupDataRetrieval::fillDescriptions(), HLTJetCollectionsForLeptonPlusJets< jetType >::fillDescriptions(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::fillDescriptions(), HLTScoutingCaloProducer::fillDescriptions(), PrintLoadingPlugins::fillDescriptions(), HLTFEDSizeFilter::fillDescriptions(), HcalDDDRecConstantsESModule::fillDescriptions(), PFRecoTauDiscriminationByFlightPathSignificance::fillDescriptions(), citk::PFIsolationSumProducer::fillDescriptions(), GEMRawToDigiModule::fillDescriptions(), DeepDoubleXTagInfoProducer::fillDescriptions(), TotemRPUVPatternFinder::fillDescriptions(), HLTrigReport::fillDescriptions(), HLTElectronMuonInvMassFilter::fillDescriptions(), HLTGenericFilter< T1 >::fillDescriptions(), EgammaHLTBcHcalIsolationProducersRegional::fillDescriptions(), HLTHcalNZSFilter::fillDescriptions(), HLTJetCollForElePlusJets< T >::fillDescriptions(), L2MuonProducer::fillDescriptions(), EgammaHLTR9Producer::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), ScalersRawToDigi::fillDescriptions(), DiDispStaMuonMonitor::fillDescriptions(), HotlineDQM::fillDescriptions(), HLTHcalSimpleRecHitFilter::fillDescriptions(), HLTMuonPointingFilter::fillDescriptions(), HLTTrackerHaloFilter::fillDescriptions(), DTCCablingMapTestProducer::fillDescriptions(), CaloRecoTauTagInfoProducer::fillDescriptions(), ElectronStudy::fillDescriptions(), HGCalElectronFilter::fillDescriptions(), HcalRecAlgoESProducer::fillDescriptions(), HLTJetCollectionsForElePlusJets< T >::fillDescriptions(), HLTTrackMETProducer::fillDescriptions(), HGCalPhotonIDValueMapProducer::fillDescriptions(), RecoTauDiscriminantCutMultiplexer::fillDescriptions(), EtlSimHitsValidation::fillDescriptions(), MagneticFieldFilter::fillDescriptions(), RecAnalyzerHF::fillDescriptions(), HLTmmkFilter::fillDescriptions(), HLTmmkkFilter::fillDescriptions(), DeepFlavourTagInfoProducer::fillDescriptions(), EgammaIsoHcalDetIdCollectionProducer::fillDescriptions(), HGCalElectronIDValueMapProducer::fillDescriptions(), XrdAdaptor::XrdStatisticsService::fillDescriptions(), HLTmumutkVtxProducer::fillDescriptions(), HLTL1MuonNoL2Selector::fillDescriptions(), SUSY_HLT_Razor::fillDescriptions(), edm::PrintEventSetupContent::fillDescriptions(), HLTHcalCalibTypeFilter::fillDescriptions(), CSCDigiToRawModule::fillDescriptions(), NoBPTXMonitor::fillDescriptions(), EcalSimpleUncalibRecHitFilter::fillDescriptions(), HLTL1MuonSelector::fillDescriptions(), HLTCAWZTagFilter::fillDescriptions(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::fillDescriptions(), CorrectedPFMETProducer::fillDescriptions(), PFBadHcalPseudoClusterProducer::fillDescriptions(), IsolatedPixelTrackCandidateProducer::fillDescriptions(), HLTScoutingPFProducer::fillDescriptions(), CTPPSPixelClusterProducer::fillDescriptions(), CaloTowerConstituentsMapBuilder::fillDescriptions(), TcdsRawToDigi::fillDescriptions(), HGCalHitCalibration::fillDescriptions(), PATTauDiscriminantCutMultiplexer::fillDescriptions(), MuonGeometryDBConverter::fillDescriptions(), HGCalShowerSeparation::fillDescriptions(), HLTCSCActivityFilter::fillDescriptions(), HLTJetHbbFilter< T >::fillDescriptions(), CTPPSPixelLocalTrackProducer::fillDescriptions(), L1TGlobalProducer::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), LowPtGsfElectronSeedProducer::fillDescriptions(), HLTRechitInRegionsProducer< T1 >::fillDescriptions(), edm::PoolSource::fillDescriptions(), HcalHBHEMuonSimAnalyzer::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), edm::service::CheckTransitions::fillDescriptions(), DTCCablingMapTestReader::fillDescriptions(), PFTauDecayModeCutMultiplexer::fillDescriptions(), edm::EmbeddedRootSource::fillDescriptions(), PFClusterMatchedToPhotonsSelector::fillDescriptions(), l1t::L1TRawToDigi::fillDescriptions(), EgammaHLTEcalIsolationProducersRegional::fillDescriptions(), AlCaIsolatedBunchFilter::fillDescriptions(), AlCaIsolatedBunchSelector::fillDescriptions(), IsolatedPixelTrackCandidateL1TProducer::fillDescriptions(), CTPPSBeamParametersESSource::fillDescriptions(), LumiMonitor::fillDescriptions(), AlCaIsoTracksProducerFilter::fillDescriptions(), HLTScoutingEgammaProducer::fillDescriptions(), ElectronNHitSeedProducer::fillDescriptions(), HLTBeamModeFilter::fillDescriptions(), RunLumiEventChecker::fillDescriptions(), edm::service::Timing::fillDescriptions(), HLTPrescaleRecorder::fillDescriptions(), edm::service::SiteLocalConfigService::fillDescriptions(), GctRawToDigi::fillDescriptions(), PFECALSuperClusterProducer::fillDescriptions(), DeDxEstimatorProducer::fillDescriptions(), JetVertexChecker::fillDescriptions(), CTPPSDirectProtonSimulation::fillDescriptions(), l1t::L1TDigiToRaw::fillDescriptions(), SiStripApvGainRescaler::fillDescriptions(), CaloParticleDebugger::fillDescriptions(), HLTRechitsToDigis::fillDescriptions(), RecoTauPiZeroProducer::fillDescriptions(), BtlSimHitsValidation::fillDescriptions(), OnlineMetaDataRawToDigi::fillDescriptions(), HGCalTimingAnalyzer::fillDescriptions(), HLTCSCAcceptBusyFilter::fillDescriptions(), HcalCollapseAnalyzer::fillDescriptions(), EcalRawToDigi::fillDescriptions(), reco::HcalNoiseInfoProducer::fillDescriptions(), omtf::OmtfPacker::fillDescriptions(), DiJetMonitor::fillDescriptions(), EGMEnergyVarProducer< T >::fillDescriptions(), FastjetJetProducer::fillDescriptions(), PATTauDiscriminationAgainstElectronMVA6::fillDescriptions(), VertexFromTrackProducer::fillDescriptions(), __class__< T >::fillDescriptions(), L1TCaloUpgradeToGCTConverter::fillDescriptions(), L1TExtCondProducer::fillDescriptions(), CaloRecHitsBeamHaloCleaned::fillDescriptions(), PrescaleEventFilter::fillDescriptions(), ElectronSeedProducer::fillDescriptions(), omtf::OmtfUnpacker::fillDescriptions(), IsolatedParticlesGeneratedJets::fillDescriptions(), HcalLaserEventFilter::fillDescriptions(), PrimaryVertexResolution::fillDescriptions(), ZMuMuMassConstraintParameterFinder::fillDescriptions(), HLTScoutingMuonProducer::fillDescriptions(), HLTHFAsymmetryFilter::fillDescriptions(), RecoTauMVATransform::fillDescriptions(), SiStripNoisesFromDBMiscalibrator::fillDescriptions(), L1TriggerResultsConverter::fillDescriptions(), BetaStarVarProducer< T >::fillDescriptions(), SiStripChannelGainFromDBMiscalibrator::fillDescriptions(), METplusTrackMonitor::fillDescriptions(), HLTPixelAsymmetryFilter::fillDescriptions(), L1TExtCondLegacyToStage2::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), HLTPrescaler::fillDescriptions(), RecoTauProducer::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA6::fillDescriptions(), L2MuonSeedGeneratorFromL1T::fillDescriptions(), HLTDTActivityFilter::fillDescriptions(), HLTRPCTrigNoSyncFilter::fillDescriptions(), CTPPSGeometryESModule::fillDescriptions(), HLTL1TSeed::fillDescriptions(), PFEGammaProducer::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), SiPixelClusterProducer::fillDescriptions(), FastPrimaryVertexWithWeightsProducer::fillDescriptions(), PFCandidateRecalibrator::fillDescriptions(), DependencyGraph::fillDescriptions(), ObjMonitor::fillDescriptions(), GlobalTrackingRegionWithVerticesProducer::fillDescriptions(), HLTEcalPhiSymFilter::fillDescriptions(), PhotonMonitor::fillDescriptions(), EcalMIPRecHitFilter::fillDescriptions(), HLTCATopTagFilter::fillDescriptions(), L1GlobalTriggerRawToDigi::fillDescriptions(), RPCChamberMasker::fillDescriptions(), VIDNestedWPBitmapProducer< T >::fillDescriptions(), DeepBoostedJetTagsProducer::fillDescriptions(), HGCalTBAnalyzer::fillDescriptions(), TrackingRegionsFromBeamSpotAndL2Tau::fillDescriptions(), HLTPMMassFilter::fillDescriptions(), PixelJetPuId::fillDescriptions(), HcalRaddamMuon::fillDescriptions(), PFTauSecondaryVertexProducer::fillDescriptions(), PFTauTransverseImpactParameters::fillDescriptions(), AlCaHEMuonFilter::fillDescriptions(), CaloParticleValidation::fillDescriptions(), TopMonitor::fillDescriptions(), AlCaLowPUHBHEMuonFilter::fillDescriptions(), HITrackingRegionForPrimaryVtxProducer::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), APVModeFilter::fillDescriptions(), RazorMonitor::fillDescriptions(), LeptonJetVarProducer< T >::fillDescriptions(), TkMSParameterizationBuilder::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronMVA5::fillDescriptions(), HGCalRecHitValidation::fillDescriptions(), GenHFHadronMatcher::fillDescriptions(), CorrectedECALPFClusterProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), MuonTrackingRegionBuilder::fillDescriptions(), MuonMonitor::fillDescriptions(), SiPixelDigiToRaw::fillDescriptions(), HLTLevel1GTSeed::fillDescriptions(), APVCyclePhaseDebuggerFromL1TS::fillDescriptions(), JetMonitor::fillDescriptions(), MCMisalignmentScaler::fillDescriptions(), PFRecoTauChargedHadronProducer::fillDescriptions(), edm::PoolOutputModule::fillDescriptions(), DTChamberMasker::fillDescriptions(), HLTGetDigi::fillDescriptions(), METMonitor::fillDescriptions(), ApeTreeCreateDefault::fillDescriptions(), HTMonitor::fillDescriptions(), Pi0FixedMassWindowCalibration::fillDescriptions(), edm::service::Tracer::fillDescriptions(), evf::EvFDaqDirector::fillDescriptions(), EgammaHLTGsfTrackVarProducer::fillDescriptions(), HGCalDigiValidation::fillDescriptions(), AreaSeededTrackingRegionsProducer::fillDescriptions(), CSCChamberMasker::fillDescriptions(), edm::PathStatusFilter::fillDescriptions(), RecAnalyzerMinbias::fillDescriptions(), pat::PATObjectUserDataEmbedder< T >::fillDescriptions(), TauRegionalPixelSeedGenerator::fillDescriptions(), FastTrackDeDxProducer::fillDescriptions(), HLTDummyCollections::fillDescriptions(), TrackExtenderWithMTDT< TrackCollection >::fillDescriptions(), CreateIdealTkAlRecords::fillDescriptions(), IsoValueMapProducer< T >::fillDescriptions(), pat::JetCorrFactorsProducer::fillDescriptions(), PFRecoTauDiscriminationAgainstElectron2::fillDescriptions(), HcalHBHEMuonAnalyzer::fillDescriptions(), HGCalSimHitValidation::fillDescriptions(), TriggerBxMonitor::fillDescriptions(), HLTEcalResonanceFilter::fillDescriptions(), AlCaIsoTracksFilter::fillDescriptions(), edm::service::RandomNumberGeneratorService::fillDescriptions(), HLTJetsCleanedFromLeadingLeptons< JetType >::fillDescriptions(), HLTRegionalEcalResonanceFilter::fillDescriptions(), BPHMonitor::fillDescriptions(), edm::service::SimpleMemoryCheck::fillDescriptions(), PFRecoTauDiscriminationAgainstElectronDeadECAL::fillDescriptions(), cms::CATopJetProducer::fillDescriptions(), CosmicRateAnalyzer::fillDescriptions(), NPUTablesProducer::fillDescriptions(), SelectedElectronFEDListProducer< TEle, TCand >::fillDescriptions(), GenVisTauProducer::fillDescriptions(), L1TriggerJSONMonitoring::fillDescriptions(), PhotonIDValueMapProducer::fillDescriptions(), IsoTrackCalib::fillDescriptions(), StudyHLT::fillDescriptions(), CorrectedMETProducerT< T >::fillDescriptions(), TriggerSummaryProducerAOD::fillDescriptions(), HLTriggerJSONMonitoring::fillDescriptions(), DTCCablingMapProducer::fillDescriptions(), HcalIsoTrkAnalyzer::fillDescriptions(), TrackingRegionsFromSuperClustersProducer::fillDescriptions(), HLTRecHitInAllL1RegionsProducer< RecHitType >::fillDescriptions(), edm::service::InitRootHandlers::fillDescriptions(), cms::HTTTopJetProducer::fillDescriptions(), AlCaIsoTracksProducer::fillDescriptions(), IsoTrig::fillDescriptions(), CandidateSeededTrackingRegionsProducer::fillDescriptions(), IsolatedTracksHcalScale::fillDescriptions(), EgammaHLTPixelMatchVarProducer::fillDescriptions(), BJetEnergyRegressionVarProducer< T >::fillDescriptions(), TrackMVAClassifier< MVA, EventCache >::fillDescriptions(), PointSeededTrackingRegionsProducer::fillDescriptions(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::fillDescriptions(), TriggerRatesMonitor::fillDescriptions(), IsolatedGenParticles::fillDescriptions(), BaseMVAValueMapProducer< T >::fillDescriptions(), BJetEnergyRegressionMVA::fillDescriptions(), IsolatedTracksCone::fillDescriptions(), PFRecoTauDiscriminationByIsolationMVA2::fillDescriptions(), BTagSFProducer::fillDescriptions(), CandMCMatchTableProducer::fillDescriptions(), LHETablesProducer::fillDescriptions(), NVProfilerService::fillDescriptions(), reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), evf::FastMonitoringService::fillDescriptions(), reco::tau::PATTauDiscriminationByMVAIsolationRun2::fillDescriptions(), PFJetMETcorrInputProducerT< T, Textractor >::fillDescriptions(), CandidatePointSeededTrackingRegionsProducer::fillDescriptions(), IsolatedTracksNxN::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(), HBHEDarkeningEP::fillDescriptions(), HcalTimeSlewEP::fillDescriptions(), L1TMuonBarrelKalmanTrackProducer::fillDescriptions(), JetTagProducer::fillDescriptions(), PFRecHitProducer::fillDescriptions(), PuppiPhoton::fillDescriptions(), LXXXCorrectorImplMaker::fillDescriptions(), PuppiProducer::fillDescriptions(), L1TSummary::fillDescriptions(), edm::ModelFilter::fillDescriptions(), MVAValueMapProducer< ParticleType >::fillDescriptions(), L1FastjetCorrectorImplMaker::fillDescriptions(), L1OffsetCorrectorImplMaker::fillDescriptions(), L1TBasicDemo::fillDescriptions(), CaloTowersCreator::fillDescriptions(), L1JPTOffsetCorrectorImplMaker::fillDescriptions(), FastTrackerRecHitCombiner::fillDescriptions(), GsfElectronBaseProducer::fillDescriptions(), SimHitsValidationHcal::fillDescriptions(), WriteCTPPSPixGainCalibrations::fillDescriptions(), L6SLBCorrectorImplMaker::fillDescriptions(), l1t::L1TCaloStage1LutWriter::fillDescriptions(), l1t::L1TStage2CaloAnalyzer::fillDescriptions(), edm::ThinningProducer< Collection, Selector >::fillDescriptions(), L1TMuonBarrelKalmanStubProducer::fillDescriptions(), dqm::DQMFileSaverPB::fillDescriptions(), HLTTagAndProbeOfflineSource< TagType, TagCollType, ProbeType, ProbeCollType >::fillDescriptions(), FastTrackerRecHitMatcher::fillDescriptions(), RemovePileUpDominatedEventsGen::fillDescriptions(), L1TMuonQualityAdjuster::fillDescriptions(), VertexMonitor::fillDescriptions(), evf::RecoEventOutputModuleForFU< Consumer >::fillDescriptions(), ECALpedestalPCLHarvester::fillDescriptions(), dEdxAnalyzer::fillDescriptions(), dEdxHitAnalyzer::fillDescriptions(), ECALpedestalPCLworker::fillDescriptions(), edm::EDAnalyzer::fillDescriptions(), L1TUtmTriggerMenuDumper::fillDescriptions(), PFCand_AssoMap::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(), HcalLaserEventFilter2012::fillDescriptions(), PF_PU_AssoMap::fillDescriptions(), dqm::DQMFileSaverOnline::fillDescriptions(), BeamProfile2DB::fillDescriptions(), DDVectorRegistryESProducer::fillDescriptions(), edm::EDProducer::fillDescriptions(), HBHEPlan1Combiner::fillDescriptions(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::fillDescriptions(), HGCalTBCheckGunPostion::fillDescriptions(), TrackAssociatorByPositionProducer::fillDescriptions(), EGMSeedGainProducer< T >::fillDescriptions(), edm::EventSetupCacheIdentifierChecker::fillDescriptions(), QuickTrackAssociatorByHitsProducer::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), JetHTJetPlusHOFilter::fillDescriptions(), JetConstituentSelector< T, C >::fillDescriptions(), L1TBMTFConverter::fillDescriptions(), edm::EDFilter::fillDescriptions(), GenJetTauTaggerProducer::fillDescriptions(), NanoAODOutputModule::fillDescriptions(), ValueMapTraslator::fillDescriptions(), ElectronMVANtuplizer::fillDescriptions(), PhotonMVANtuplizer::fillDescriptions(), SiStripGainsPCLHarvester::fillDescriptions(), ExtraFromSeeds::fillDescriptions(), PPSSimTrackProducer::fillDescriptions(), LHE2HepMCConverter::fillDescriptions(), l1t::FakeInputProducer::fillDescriptions(), ttHFGenFilter::fillDescriptions(), PATObjectCrossLinker::fillDescriptions(), TrackAssociatorByChi2Producer::fillDescriptions(), HGCGeometryValidation::fillDescriptions(), L1TMicroGMTInputProducer::fillDescriptions(), PF_PU_FirstVertexTracks::fillDescriptions(), L1TCaloLayer1Validator::fillDescriptions(), l1t::L1TCaloRCTToUpgradeConverter::fillDescriptions(), VertexTableProducer::fillDescriptions(), EGEnergyAnalyzer::fillDescriptions(), AlignPCLThresholdsWriter::fillDescriptions(), BeamSpotRcdReader::fillDescriptions(), L1TMuonCaloSumProducer::fillDescriptions(), TestPythiaDecays::fillDescriptions(), L1TStage2InputPatternWriter::fillDescriptions(), NanoAODBaseCrossCleaner::fillDescriptions(), edm::stream::EDFilterBase::fillDescriptions(), TrackAssociatorByHitsProducer::fillDescriptions(), TrackFromSeedProducer::fillDescriptions(), HFPreReconstructor::fillDescriptions(), AlCaGammaJetSelector::fillDescriptions(), SoftLepton::fillDescriptions(), edm::stream::EDProducerBase::fillDescriptions(), ElectronHEEPIDValueMapProducer::fillDescriptions(), B2GDoubleLeptonHLTValidation::fillDescriptions(), B2GHadronicHLTValidation::fillDescriptions(), B2GSingleLeptonHLTValidation::fillDescriptions(), TopSingleLeptonHLTValidation::fillDescriptions(), HcalLaserHBHEFilter2012::fillDescriptions(), HcalLutAnalyzer::fillDescriptions(), TemplatedDeepNNTagInfoProducer< IPTag, SVTag >::fillDescriptions(), HcalLaserHBHEHFFilter2012::fillDescriptions(), l1t::AMC13DumpToRaw::fillDescriptions(), l1t::AMCDumpToRaw::fillDescriptions(), L1TMicroGMTInputProducerFromGen::fillDescriptions(), TemplatedVertexArbitrator< InputContainer, VTX >::fillDescriptions(), PFCand_NoPU_WithAM::fillDescriptions(), PixelLumiDQM::fillDescriptions(), HcalLaserHFFilter2012::fillDescriptions(), TopDiLeptonHLTValidation::fillDescriptions(), edm::global::EDAnalyzerBase::fillDescriptions(), LogMessageMonitor::fillDescriptions(), SinglePhotonJetPlusHOFilter::fillDescriptions(), edm::one::EDProducerBase::fillDescriptions(), l1t::L1TGlobalAnalyzer::fillDescriptions(), edm::limited::EDAnalyzerBase::fillDescriptions(), edm::one::EDFilterBase::fillDescriptions(), edm::one::EDAnalyzerBase::fillDescriptions(), EGammaCutBasedEleIdAnalyzer::fillDescriptions(), SiStripFEDCheckPlugin::fillDescriptions(), HcalHardcodeCalibrations::fillDescriptions(), BTagProbabilityToDiscriminator::fillDescriptions(), HFPhase1Reconstructor::fillDescriptions(), APVShotsFilter::fillDescriptions(), AlCaHBHEMuonFilter::fillDescriptions(), edm::limited::EDFilterBase::fillDescriptions(), edm::global::EDFilterBase::fillDescriptions(), L1TStage2Layer2Producer::fillDescriptions(), l1t::MP7BufferDumpToRaw::fillDescriptions(), L1TCaloLayer1::fillDescriptions(), L1TMuonProducer::fillDescriptions(), edm::global::EDProducerBase::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(), ExternalLHEProducer::fillDescriptions(), L1TStage1Layer2Producer::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(), L1TStage2ObjectComparison< T >::fillDescriptions(), MuonIDFilterProducerForHLT::fillDescriptions(), EventSelectorAdapter< T >::fillDescriptions(), CalibratedPhotonProducerT< T >::fillDescriptions(), CalibratedElectronProducerT< T >::fillDescriptions(), L1TComparisonResultFilter< T >::fillDescriptions(), IsFromLostTrackMapProducer::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().