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)
 
iterator begin ()
 
std::string const & comment () const
 
 ConfigurationDescriptions (std::string const &baseType)
 
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::string const &baseType, std::string const &pluginName, 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_
 

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 31 of file ConfigurationDescriptions.h.

Constructor & Destructor Documentation

ConfigurationDescriptions::ConfigurationDescriptions ( std::string const &  baseType)

Definition at line 40 of file ConfigurationDescriptions.cc.

ConfigurationDescriptions::~ConfigurationDescriptions ( )

Definition at line 45 of file ConfigurationDescriptions.cc.

45 {}

Member Function Documentation

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

Definition at line 63 of file ConfigurationDescriptions.cc.

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

Referenced by add(), comment(), HLTDynamicPrescaler::fillDescriptions(), edm::EmptySource::fillDescriptions(), GEDGsfElectronCoreProducer::fillDescriptions(), edm::ModuloEventIDFilter::fillDescriptions(), edm::ModuloStreamIDFilter::fillDescriptions(), PixelTrackCleanerBySharedHitsESProducer::fillDescriptions(), TrackAlgoPriorityOrderESProducer::fillDescriptions(), ClusterCheckerEDProducer::fillDescriptions(), CrossingFramePSimHitToPSimHitsConverter::fillDescriptions(), edm::Prescaler::fillDescriptions(), TrackCleanerESProducer::fillDescriptions(), HLTDQMObjSelector< ObjType, ObjCollType >::fillDescriptions(), TrackingParticleConversionRefSelector::fillDescriptions(), L1TStage2RatioClient::fillDescriptions(), dqmservices::JsonWritingTimeoutPoolOutputModule::fillDescriptions(), HLTDiMuonGlbTrkFilter::fillDescriptions(), SeedGeneratorFromProtoTracksEDProducer::fillDescriptions(), HLTDisplacedmumumuFilter::fillDescriptions(), HLTDisplacedtktkFilter::fillDescriptions(), HLTDisplacedmumuFilter::fillDescriptions(), HLTmumutkFilter::fillDescriptions(), HLTEcalIsolationFilter::fillDescriptions(), HLTPixelActivityFilter::fillDescriptions(), HLTPixelClusterShapeFilter::fillDescriptions(), HLTTrackSeedMultiplicityFilter::fillDescriptions(), edm::EventAuxiliaryHistoryProducer::fillDescriptions(), GsfTrackProducer::fillDescriptions(), TrackingParticleNumberOfLayersProducer::fillDescriptions(), HLTMuonTrkFilter::fillDescriptions(), HLTMuonTrkL1TFilter::fillDescriptions(), HLTmumutktkFilter::fillDescriptions(), ValidHitPairFilterProducer::fillDescriptions(), PixelTrackProducer::fillDescriptions(), edmtest::AlignPCLThresholdsReader::fillDescriptions(), HLTPixelIsolTrackFilter::fillDescriptions(), HIBestVertexProducer::fillDescriptions(), BasicToPFJet::fillDescriptions(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::fillDescriptions(), PixelTrackFilterByKinematicsProducer::fillDescriptions(), TrackingParticleBHadronRefSelector::fillDescriptions(), HLTPixelIsolTrackL1TFilter::fillDescriptions(), QGTagger::fillDescriptions(), VertexAssociatorByTracksProducer::fillDescriptions(), TrackerGeometricDetESModule::fillDescriptions(), HLTMuonTrackMassFilter::fillDescriptions(), HLTEcalPixelIsolTrackFilter::fillDescriptions(), EgammaHLTTimeCleanedRechitProducer::fillDescriptions(), dqmservices::DQMProtobufReader::fillDescriptions(), ClusterShapeTrackFilterProducer::fillDescriptions(), ESRawToDigi::fillDescriptions(), HcalTrigTowerGeometryESProducer::fillDescriptions(), MultiHitFromChi2EDProducer::fillDescriptions(), TrackerDigiGeometryESModule::fillDescriptions(), TrackerTopologyEP::fillDescriptions(), L1TStage2uGMTMuon::fillDescriptions(), HLTCSCOverlapFilter::fillDescriptions(), HLTCSCRing2or3Filter::fillDescriptions(), HLTMultipletFilter::fillDescriptions(), HLTElectronMissingHitsFilter::fillDescriptions(), HLTDQMMuonSelector::fillDescriptions(), HIPixelTrackFilterProducer::fillDescriptions(), GeneratorSmearedProducer::fillDescriptions(), TrackerParametersESModule::fillDescriptions(), VertexAssociatorByPositionAndTracksProducer::fillDescriptions(), L1TStage2RegionalMuonCandComp::fillDescriptions(), HLTHcalNoiseFilter::fillDescriptions(), edm::StreamerOutputModule< Consumer >::fillDescriptions(), NumberPerLSFilter::fillDescriptions(), L1TStage2MuonComp::fillDescriptions(), HLTHemiDPhiFilter::fillDescriptions(), PixelQuadrupletEDProducer::fillDescriptions(), HcalParametersESModule::fillDescriptions(), HLTPhi2METFilter::fillDescriptions(), HLTRapGapFilter::fillDescriptions(), PFJetsMatchedToFilteredCaloJetsProducer::fillDescriptions(), HLTMuonL1RegionalFilter::fillDescriptions(), HLTMuonL1TFilter::fillDescriptions(), RPCInverseCPPFLinkMapESProducer::fillDescriptions(), RPCInverseLBLinkMapESProducer::fillDescriptions(), RPCInverseOMTFLinkMapESProducer::fillDescriptions(), RPCInverseTwinMuxLinkMapESProducer::fillDescriptions(), HLTRPCFilter::fillDescriptions(), HLTElectronPixelMatchFilter::fillDescriptions(), TFileAdaptor::fillDescriptions(), PUFilter::fillDescriptions(), HLTForwardBackwardJetsFilter< T >::fillDescriptions(), EcalUncalibRecHitProducer::fillDescriptions(), TriggerRatesMonitorClient::fillDescriptions(), HLTJetL1MatchProducer< T >::fillDescriptions(), HLTNVFilter::fillDescriptions(), L1TStage2uGMT::fillDescriptions(), HLTJetPairDzMatchFilter< T >::fillDescriptions(), HLTEgammaAllCombMassFilter::fillDescriptions(), HLTHcalTowerFilter::fillDescriptions(), HLTEgammaDoubleLegCombFilter::fillDescriptions(), HLTScoutingPrimaryVertexProducer::fillDescriptions(), HLT2jetGapFilter::fillDescriptions(), HLTHcalMETNoiseCleaner::fillDescriptions(), CSCDCCUnpacker::fillDescriptions(), HLTJetCollectionsFilter< jetType >::fillDescriptions(), HLTJetL1TMatchProducer< T >::fillDescriptions(), evf::EvFFEDSelector::fillDescriptions(), HLTPFTauPairLeadTrackDzMatchFilter::fillDescriptions(), L2TauJetsMerger::fillDescriptions(), HitPairEDProducer::fillDescriptions(), HLTMuonL1TRegionalFilter::fillDescriptions(), HLTEgammaCombMassFilter::fillDescriptions(), SeedCreatorFromRegionHitsEDProducerT< T_SeedCreator >::fillDescriptions(), HLTSingleVertexPixelTrackFilter::fillDescriptions(), StableParametersTrivialProducer::fillDescriptions(), PileUpFilter::fillDescriptions(), AnyJetToCaloJetProducer::fillDescriptions(), CSCObjectMapESProducer::fillDescriptions(), DTObjectMapESProducer::fillDescriptions(), HLTHPDFilter::fillDescriptions(), L1THLTTauMatching::fillDescriptions(), edm::AsciiOutputModule::fillDescriptions(), EgammaHLTHybridClusterProducer::fillDescriptions(), HLTHcalLaserFilter::fillDescriptions(), L1HLTTauMatching::fillDescriptions(), HLTDeDxFilter::fillDescriptions(), JetTracksAssociationToTrackRefs::fillDescriptions(), HLTTriMuonIsolation::fillDescriptions(), ConeIsolation::fillDescriptions(), HLTMuonDimuonL2Filter::fillDescriptions(), HLTMuonDimuonL2FromL1TFilter::fillDescriptions(), HLTMuonL2FromL1TPreFilter::fillDescriptions(), HLTMuonL2PreFilter::fillDescriptions(), HLTMuonPFIsoFilter::fillDescriptions(), HLTDisplacedEgammaFilter::fillDescriptions(), HLTEgammaDoubleEtDeltaPhiFilter::fillDescriptions(), HLTPhysicsDeclared::fillDescriptions(), HLTEgammaEtFilter::fillDescriptions(), HLTEgammaEtFilterPairs::fillDescriptions(), HLTElectronEtFilter::fillDescriptions(), HLTJetVBFFilter< T >::fillDescriptions(), L1GTPrescaler::fillDescriptions(), EgammaEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), EgammaHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), HLTDiJetAveEtaFilter< T >::fillDescriptions(), MVAJetPuIdProducer::fillDescriptions(), HLTDiJetEtaTopologyFilter< T >::fillDescriptions(), HLTDiJetAveFilter< T >::fillDescriptions(), BunchSpacingProducer::fillDescriptions(), HLTHcalMETNoiseFilter::fillDescriptions(), HLTHcalTowerNoiseCleanerWithrechit::fillDescriptions(), HLTHcalTowerNoiseCleaner::fillDescriptions(), edm::service::UnixSignalService::fillDescriptions(), TrackFitterProducer::fillDescriptions(), KFBasedPixelFitterProducer::fillDescriptions(), PixelFitterByHelixProjectionsProducer::fillDescriptions(), HLTJetEtaTopologyFilter< T >::fillDescriptions(), L1TMP7ZeroSupp::fillDescriptions(), HLTMonoJetFilter< T >::fillDescriptions(), HLTMuonIsoFilter::fillDescriptions(), HLTMuonTrimuonL3Filter::fillDescriptions(), RPCUnpackingModule::fillDescriptions(), HLTEgammaGenericQuadraticEtaFilter::fillDescriptions(), HLTEgammaGenericQuadraticFilter::fillDescriptions(), TreeWriterForEcalCorrection::fillDescriptions(), HLTEgammaTriggerFilterObjectWrapper::fillDescriptions(), HLTElectronEoverpFilterRegional::fillDescriptions(), HLTElectronGenericFilter::fillDescriptions(), HLTElectronOneOEMinusOneOPFilterRegional::fillDescriptions(), edm::StreamerFileReader::fillDescriptions(), EcalRecHitsMerger::fillDescriptions(), EgammaHLTCaloTowerProducer::fillDescriptions(), EgammaHLTIslandClusterProducer::fillDescriptions(), ESRecHitsMerger::fillDescriptions(), photonIsolationHIProducer::fillDescriptions(), HLTExclDiJetFilter< T >::fillDescriptions(), HLTFatJetMassFilter< jetType >::fillDescriptions(), L3MuonSumCaloPFIsolationProducer::fillDescriptions(), DTUnpackingModule::fillDescriptions(), HLTJetCollectionsVBFFilter< T >::fillDescriptions(), GlobalTrackingRegionProducer::fillDescriptions(), HLTMuonL1toL3TkPreFilter::fillDescriptions(), RPCTwinMuxDigiToRaw::fillDescriptions(), edm::TimeoutPoolOutputModule::fillDescriptions(), TriggerSummaryAnalyzerAOD::fillDescriptions(), TriggerSummaryAnalyzerRAW::fillDescriptions(), CAHitNtupletEDProducerT< T_Generator >::fillDescriptions(), HiFJGridEmptyAreaCalculator::fillDescriptions(), HIProtoTrackFilterProducer::fillDescriptions(), HitTripletEDProducerT< T_HitTripletGenerator >::fillDescriptions(), HLTMhtFilter::fillDescriptions(), HLTMuonL1TtoL3TkPreFilter::fillDescriptions(), dqm::RamdiskMonitor::fillDescriptions(), ThroughputServiceClient::fillDescriptions(), HLTPMDocaFilter::fillDescriptions(), HLTBool::fillDescriptions(), HLTSinglet< T >::fillDescriptions(), EgammaHLTMulti5x5ClusterProducer::fillDescriptions(), dqmservices::DQMStreamerReader::fillDescriptions(), HiFJRhoProducer::fillDescriptions(), HLTAcoFilter::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), cms::CSJetProducer::fillDescriptions(), VertexCompositeCandidateCollectionSelector::fillDescriptions(), SiPixelClusterShapeCacheProducer::fillDescriptions(), HLTPFJetIDProducer::fillDescriptions(), HLTEgammaDoubleEtFilter::fillDescriptions(), HLTEgammaDoubleEtPhiFilter::fillDescriptions(), HLTEgammaL1MatchFilterPairs::fillDescriptions(), HLTEgammaL1MatchFilterRegional::fillDescriptions(), RandomEngineStateProducer::fillDescriptions(), HLTEventAnalyzerAOD::fillDescriptions(), HLTEventAnalyzerRAW::fillDescriptions(), HLTGlobalSums< T >::fillDescriptions(), HLTAlphaTFilter< T >::fillDescriptions(), edm::ZombieKillerService::fillDescriptions(), EcalRecHitProducer::fillDescriptions(), HLTMuonL2SelectorForL3IO::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), BPHHistoSpecificDecay::fillDescriptions(), HLTMinDPhiMETFilter::fillDescriptions(), HcalTopologyIdealEP::fillDescriptions(), HLTMuonL3PreFilter::fillDescriptions(), L2MuonIsolationProducer::fillDescriptions(), sistrip::ExcludedFEDListProducer::fillDescriptions(), HLTEgammaL1TMatchFilterRegional::fillDescriptions(), HLTRFilter::fillDescriptions(), ChargedHadronPFTrackIsolationProducer::fillDescriptions(), edm::service::ConcurrentModuleTimer::fillDescriptions(), L3MuonCombinedRelativeIsolationProducer::fillDescriptions(), HLTHtMhtFilter::fillDescriptions(), MillePedeFileConverter::fillDescriptions(), HcalRawToDigi::fillDescriptions(), HLTMuonL1Filter::fillDescriptions(), HLTDisplacedmumumuVtxProducer::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), HLTDTROMonitorFilter::fillDescriptions(), HLTEcalTowerFilter::fillDescriptions(), HLTEgammaCaloIsolFilterPairs::fillDescriptions(), HcalSimpleReconstructor::fillDescriptions(), HLTPixelActivityHFSumEnergyFilter::fillDescriptions(), HLTPixlMBFilt::fillDescriptions(), HLTPixlMBForAlignmentFilter::fillDescriptions(), HLLHCEvtVtxGenerator::fillDescriptions(), CTPPSDiamondLocalTrackFitter::fillDescriptions(), CTPPSLocalTrackLiteProducer::fillDescriptions(), PSMonitorClient::fillDescriptions(), edm::service::ResourceEnforcer::fillDescriptions(), CaloTowerTopologyEP::fillDescriptions(), FilterOutLowPt::fillDescriptions(), HLTMuonDimuonL3Filter::fillDescriptions(), SiPixelRawToDigi::fillDescriptions(), DQMScaleToClient::fillDescriptions(), HLTGetRaw::fillDescriptions(), TotemRPRecHitProducer::fillDescriptions(), EgammaHLTCombinedIsolationProducer::fillDescriptions(), EgammaHLTPixelMatchElectronProducers::fillDescriptions(), EgammaHLTRecoEcalCandidateProducers::fillDescriptions(), HLTRHemisphere::fillDescriptions(), HLTCaloTowerHtMhtProducer::fillDescriptions(), HLTDisplacedmumuVtxProducer::fillDescriptions(), HLTJetTagWithMatching< T >::fillDescriptions(), MillePedeFileExtractor::fillDescriptions(), EgammaHLTClusterShapeProducer::fillDescriptions(), HLTSmartSinglet< T >::fillDescriptions(), PixelFitterByConformalMappingAndLineProducer::fillDescriptions(), MuonSeedGenerator::fillDescriptions(), HLTLevel1Pattern::fillDescriptions(), HLTJetTag< T >::fillDescriptions(), HLTCaloTowerFilter::fillDescriptions(), TSGForOI::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), TotemRPClusterProducer::fillDescriptions(), EgammaHLTPFChargedIsolationProducer::fillDescriptions(), EgammaHLTRemoveDuplicatedSC::fillDescriptions(), EcalDetIdToBeRecoveredProducer::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), HcalRawToDigiFake::fillDescriptions(), HLTMhtProducer::fillDescriptions(), EgammaHLTPFNeutralIsolationProducer::fillDescriptions(), HLTHcalLaserMisfireFilter::fillDescriptions(), CSCRecHitDProducer::fillDescriptions(), HLTMETCleanerUsingJetID::fillDescriptions(), citk::PFIsolationSumProducerForPUPPI::fillDescriptions(), edm::LogErrorHarvester::fillDescriptions(), TriggerSummaryProducerRAW::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), HLTDoubletDZ< T1, T2 >::fillDescriptions(), EgammaHLTElectronCombinedIsolationProducer::fillDescriptions(), HLTSummaryFilter::fillDescriptions(), EgammaHLTPFPhotonIsolationProducer::fillDescriptions(), GEMChamberMasker::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), HLTPFEnergyFractionsFilter::fillDescriptions(), HLTHtMhtProducer::fillDescriptions(), HLTDisplacedtktkVtxProducer::fillDescriptions(), HLTCountNumberOfObject< OColl >::fillDescriptions(), RPCTwinMuxRawToDigi::fillDescriptions(), sistrip::DigiToRawModule::fillDescriptions(), HLTTriggerTypeFilter::fillDescriptions(), FastTimerServiceClient::fillDescriptions(), CTPPSPixelRecHitProducer::fillDescriptions(), HLTElectronPFMTFilter< T >::fillDescriptions(), LogErrorFilter::fillDescriptions(), L1TGlobalSummary::fillDescriptions(), CTPPSDiamondRecHitProducer::fillDescriptions(), HLTEcalPFClusterIsolationProducer< T1 >::fillDescriptions(), EgammaHLTEcalRecIsolationProducer::fillDescriptions(), PFClusterTimeAssigner::fillDescriptions(), ClusterTPAssociationProducer::fillDescriptions(), HLTDoublet< T1, T2 >::fillDescriptions(), Tau3MuMonitor::fillDescriptions(), EgammaHLTRegionalPixelSeedGeneratorProducers::fillDescriptions(), HLTCaloJetIDProducer::fillDescriptions(), HLTHcalPFClusterIsolationProducer< T1 >::fillDescriptions(), BPHWriteSpecificDecay::fillDescriptions(), HLTCollectionProducer< T >::fillDescriptions(), HcalDDDSimConstantsESModule::fillDescriptions(), CSCDigiToRawModule::fillDescriptions(), HLTmumutktkVtxProducer::fillDescriptions(), GlobalTrackingRegionProducerFromBeamSpot::fillDescriptions(), edm::service::Timing::fillDescriptions(), ME0ChamberMasker::fillDescriptions(), HLTFiltCand::fillDescriptions(), EcalListOfFEDSProducer::fillDescriptions(), EventIDChecker::fillDescriptions(), HLTJetSortedVBFFilter< T >::fillDescriptions(), edm::service::LoadAllDictionaries::fillDescriptions(), TotemRPLocalTrackFitter::fillDescriptions(), HLTEventNumberFilter::fillDescriptions(), AbortOnEventIDAnalyzer::fillDescriptions(), XrdAdaptor::XrdStatisticsService::fillDescriptions(), HLTVertexFilter::fillDescriptions(), ThroughputService::fillDescriptions(), EgammaHLTElectronTrackIsolationProducers::fillDescriptions(), EgammaHLTHcalIsolationDoubleConeProducers::fillDescriptions(), ESListOfFEDSProducer::fillDescriptions(), HIMuonTrackingRegionProducer::fillDescriptions(), HLTL1TMuonSelector::fillDescriptions(), HLTTrackWithHits::fillDescriptions(), HLTHcalPhiSymFilter::fillDescriptions(), HLTL1NumberFilter::fillDescriptions(), HLTrigReport::fillDescriptions(), pat::PATJetUpdater::fillDescriptions(), HLTLevel1Activity::fillDescriptions(), EgammaHLTElectronDetaDphiProducer::fillDescriptions(), TriggerResultsFilterFromDB::fillDescriptions(), DQMCorrelationClient::fillDescriptions(), L3MuonProducer::fillDescriptions(), EgammaHLTR9IDProducer::fillDescriptions(), GlobalTrackingRegionWithVerticesProducer::fillDescriptions(), HLTJetCollectionsForLeptonPlusJets< jetType >::fillDescriptions(), EgammaHLTPhotonTrackIsolationProducersRegional::fillDescriptions(), HLTFEDSizeFilter::fillDescriptions(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::fillDescriptions(), SUSY_HLT_Razor::fillDescriptions(), EgammaHLTHcalIsolationProducersRegional::fillDescriptions(), HLTHighLevel::fillDescriptions(), TotemRPUVPatternFinder::fillDescriptions(), TriggerResultsFilter::fillDescriptions(), HLTScoutingCaloProducer::fillDescriptions(), edm::PrintEventSetupDataRetrieval::fillDescriptions(), edm::service::CondorStatusService::fillDescriptions(), edm::service::CPU::fillDescriptions(), citk::PFIsolationSumProducer::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), L2MuonProducer::fillDescriptions(), ScalersRawToDigi::fillDescriptions(), HLTHcalSimpleRecHitFilter::fillDescriptions(), HLTMuonPointingFilter::fillDescriptions(), HLTElectronMuonInvMassFilter::fillDescriptions(), HLTGenericFilter< T1 >::fillDescriptions(), LumiMonitor::fillDescriptions(), HLTTrackerHaloFilter::fillDescriptions(), HLTHcalNZSFilter::fillDescriptions(), EgammaHLTR9Producer::fillDescriptions(), HotlineDQM::fillDescriptions(), HLTJetCollForElePlusJets< T >::fillDescriptions(), EgammaHLTBcHcalIsolationProducersRegional::fillDescriptions(), HcalDDDRecConstantsESModule::fillDescriptions(), HLTmmkkFilter::fillDescriptions(), HLTmmkFilter::fillDescriptions(), HLTmumutkVtxProducer::fillDescriptions(), HLTTrackMETProducer::fillDescriptions(), HLTRechitInRegionsProducer< T1 >::fillDescriptions(), HLTRechitsToDigis::fillDescriptions(), MagneticFieldFilter::fillDescriptions(), HLTJetCollectionsForElePlusJets< T >::fillDescriptions(), PrintLoadingPlugins::fillDescriptions(), HGCalElectronFilter::fillDescriptions(), HGCalPhotonIDValueMapProducer::fillDescriptions(), HcalRecAlgoESProducer::fillDescriptions(), HLTL1MuonSelector::fillDescriptions(), HGCalElectronIDValueMapProducer::fillDescriptions(), EcalSimpleUncalibRecHitFilter::fillDescriptions(), HLTL1MuonNoL2Selector::fillDescriptions(), HLTHcalCalibTypeFilter::fillDescriptions(), RunLumiEventChecker::fillDescriptions(), NoBPTXMonitor::fillDescriptions(), CorrectedPFMETProducer::fillDescriptions(), HLTScoutingPFProducer::fillDescriptions(), CTPPSPixelClusterProducer::fillDescriptions(), edm::PrintEventSetupContent::fillDescriptions(), edm::service::PrescaleService::fillDescriptions(), HLTCSCActivityFilter::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), L1TGlobalProducer::fillDescriptions(), HLTJetHbbFilter< T >::fillDescriptions(), CaloTowerConstituentsMapBuilder::fillDescriptions(), MuonGeometryDBConverter::fillDescriptions(), PFClusterMatchedToPhotonsSelector::fillDescriptions(), HcalHBHEMuonSimAnalyzer::fillDescriptions(), edm::EmbeddedRootSource::fillDescriptions(), edm::PoolSource::fillDescriptions(), PSMonitor::fillDescriptions(), l1t::L1TRawToDigi::fillDescriptions(), HGCalHitCalibration::fillDescriptions(), HGCalShowerSeparation::fillDescriptions(), Timer::fillDescriptions(), EgammaHLTEcalIsolationProducersRegional::fillDescriptions(), edm::service::SiteLocalConfigService::fillDescriptions(), GctRawToDigi::fillDescriptions(), HLTBeamModeFilter::fillDescriptions(), FedRawDataInputSource::fillDescriptions(), ElectronNHitSeedProducer::fillDescriptions(), HLTScoutingEgammaProducer::fillDescriptions(), HLTPrescaleRecorder::fillDescriptions(), PFECALSuperClusterProducer::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), DeDxEstimatorProducer::fillDescriptions(), l1t::L1TDigiToRaw::fillDescriptions(), HLTScoutingMuonProducer::fillDescriptions(), L1TExtCondProducer::fillDescriptions(), JetVertexChecker::fillDescriptions(), HLTCSCAcceptBusyFilter::fillDescriptions(), EcalRawToDigi::fillDescriptions(), FastjetJetProducer::fillDescriptions(), L1TCaloUpgradeToGCTConverter::fillDescriptions(), HcalHitReconstructor::fillDescriptions(), VertexFromTrackProducer::fillDescriptions(), EgammaHLTNxNClusterProducer::fillDescriptions(), HGCalTimingAnalyzer::fillDescriptions(), CaloRecHitsBeamHaloCleaned::fillDescriptions(), PrimaryVertexResolution::fillDescriptions(), HLTHFAsymmetryFilter::fillDescriptions(), TcdsRawToDigi::fillDescriptions(), ZMuMuMassConstraintParameterFinder::fillDescriptions(), ElectronSeedProducer::fillDescriptions(), HLTL1TSeed::fillDescriptions(), HLTPixelAsymmetryFilter::fillDescriptions(), L1TExtCondLegacyToStage2::fillDescriptions(), METplusTrackMonitor::fillDescriptions(), L2MuonSeedGeneratorFromL1T::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), HLTCAWZTagFilter::fillDescriptions(), HLTRPCTrigNoSyncFilter::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), HLTDTActivityFilter::fillDescriptions(), HLTPrescaler::fillDescriptions(), ObjMonitor::fillDescriptions(), TopMonitor::fillDescriptions(), BPHMonitor::fillDescriptions(), HLTEcalPhiSymFilter::fillDescriptions(), TrackingRegionsFromBeamSpotAndL2Tau::fillDescriptions(), FastPrimaryVertexWithWeightsProducer::fillDescriptions(), RPCChamberMasker::fillDescriptions(), EcalMIPRecHitFilter::fillDescriptions(), L1GlobalTriggerRawToDigi::fillDescriptions(), PhotonMonitor::fillDescriptions(), DependencyGraph::fillDescriptions(), HITrackingRegionForPrimaryVtxProducer::fillDescriptions(), HLTCATopTagFilter::fillDescriptions(), HLTPMMassFilter::fillDescriptions(), PixelJetPuId::fillDescriptions(), HGCalTBAnalyzer::fillDescriptions(), TriggerBxMonitor::fillDescriptions(), APVModeFilter::fillDescriptions(), RazorMonitor::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), CorrectedECALPFClusterProducer::fillDescriptions(), TkMSParameterizationBuilder::fillDescriptions(), TriggerBxVsOrbitMonitor::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), evf::EvFDaqDirector::fillDescriptions(), MuonTrackingRegionBuilder::fillDescriptions(), MuonMonitor::fillDescriptions(), HLTLevel1GTSeed::fillDescriptions(), GenHFHadronMatcher::fillDescriptions(), APVCyclePhaseDebuggerFromL1TS::fillDescriptions(), edm::service::Tracer::fillDescriptions(), JetMonitor::fillDescriptions(), TriggerRatesMonitor::fillDescriptions(), edm::PoolOutputModule::fillDescriptions(), HTMonitor::fillDescriptions(), HLTGetDigi::fillDescriptions(), METMonitor::fillDescriptions(), DTChamberMasker::fillDescriptions(), HcalHBHEMuonAnalyzer::fillDescriptions(), TauRegionalPixelSeedGenerator::fillDescriptions(), edm::PathStatusFilter::fillDescriptions(), EgammaHLTGsfTrackVarProducer::fillDescriptions(), TrackMVAClassifier< MVA >::fillDescriptions(), HLTDummyCollections::fillDescriptions(), pat::JetCorrFactorsProducer::fillDescriptions(), CreateIdealTkAlRecords::fillDescriptions(), CSCChamberMasker::fillDescriptions(), PixelThresholdClusterizer::fillDescriptions(), HLTEcalResonanceFilter::fillDescriptions(), HLTRegionalEcalResonanceFilter::fillDescriptions(), HLTJetsCleanedFromLeadingLeptons< JetType >::fillDescriptions(), edm::service::RandomNumberGeneratorService::fillDescriptions(), CosmicRateAnalyzer::fillDescriptions(), cms::CATopJetProducer::fillDescriptions(), SelectedElectronFEDListProducer< TEle, TCand >::fillDescriptions(), L1TriggerJSONMonitoring::fillDescriptions(), TimerService::fillDescriptions(), CorrectedMETProducerT< T >::fillDescriptions(), TriggerSummaryProducerAOD::fillDescriptions(), edm::service::SimpleMemoryCheck::fillDescriptions(), EgammaHLTFilteredSuperClusterProducer::fillDescriptions(), HLTriggerJSONMonitoring::fillDescriptions(), TrackingRegionsFromSuperClustersProducer::fillDescriptions(), edm::service::InitRootHandlers::fillDescriptions(), HLTRecHitInAllL1RegionsProducer< RecHitType >::fillDescriptions(), cms::HTTTopJetProducer::fillDescriptions(), CandidateSeededTrackingRegionsProducer::fillDescriptions(), EgammaHLTPixelMatchVarProducer::fillDescriptions(), PointSeededTrackingRegionsProducer::fillDescriptions(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::fillDescriptions(), evf::FastMonitoringService::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), edm::service::StallMonitor::fillDescriptions(), PFJetMETcorrInputProducerT< T, Textractor >::fillDescriptions(), FastTimerService::fillDescriptions(), edm::EventContentAnalyzer::fillDescriptions(), TrackingNtuple::fillDescriptions(), PackedCandidateTrackValidator::fillDescriptions(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

64  {
65 
66  if (0==strcmp(baseType_.c_str(),kSource)) {
67  if (0!=strcmp(label.c_str(),k_source)) {
69  "ConfigurationDescriptions::add, when adding a ParameterSetDescription for a source the label must be \"source\"\n");
70  }
71  if (descriptions_.size() != 0U ||
72  defaultDescDefined_ == true) {
74  "ConfigurationDescriptions::add, for a source only 1 ParameterSetDescription may be added\n");
75  }
76  }
77  else if (0==strcmp(baseType_.c_str(),kService)) {
78  if (descriptions_.size() != 0U ||
79  defaultDescDefined_ == true) {
81  "ConfigurationDescriptions::add, for a service only 1 ParameterSetDescription may be added\n");
82  }
83  }
84 
85  // To minimize the number of copies involved create an empty description first
86  // and push it into the vector. Then perform the copy.
87  std::pair<std::string, ParameterSetDescription> pairWithEmptyDescription;
88  descriptions_.push_back(pairWithEmptyDescription);
89  std::pair<std::string, ParameterSetDescription> & pair = descriptions_.back();
90 
91  pair.first = label;
92  pair.second = psetDescription;
93 
94  }
static const char *const kService
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 56 of file ConfigurationDescriptions.cc.

References add(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

57  {
58  std::string labelString(label);
59  add(labelString, psetDescription);
60  }
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void ConfigurationDescriptions::addDefault ( ParameterSetDescription const &  psetDescription)

Definition at line 97 of file ConfigurationDescriptions.cc.

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

Referenced by comment(), __class__< T >::endStream(), EcalMEFormatter::fillDescriptions(), EcalDQMonitorClient::fillDescriptions(), EcalPreshowerMonitorClient::fillDescriptions(), EmptySimHits::fillDescriptions(), CandidateChargeBTagComputer::fillDescriptions(), DYToMuMuGenFilter::fillDescriptions(), ElectronSeedTrackRefFix::fillDescriptions(), PuppiPhoton::fillDescriptions(), EcalDQMonitorTask::fillDescriptions(), CaloTowersReCreator::fillDescriptions(), EcalUncalibRecHitProducer::fillDescriptions(), PuppiProducer::fillDescriptions(), JetTagProducer::fillDescriptions(), HBHEDarkeningEP::fillDescriptions(), PFRecHitProducer::fillDescriptions(), LXXXCorrectorImplMaker::fillDescriptions(), edm::ModelFilter::fillDescriptions(), ElectronIDValueMapProducer::fillDescriptions(), L1OffsetCorrectorImplMaker::fillDescriptions(), L1FastjetCorrectorImplMaker::fillDescriptions(), L1TBasicDemo::fillDescriptions(), L1TSummary::fillDescriptions(), CaloTowersCreator::fillDescriptions(), L1JPTOffsetCorrectorImplMaker::fillDescriptions(), FastTrackerRecHitCombiner::fillDescriptions(), L6SLBCorrectorImplMaker::fillDescriptions(), l1t::L1TCaloStage1LutWriter::fillDescriptions(), PileUpSubtractor::fillDescriptions(), SimHitsValidationHcal::fillDescriptions(), l1t::L1TStage2CaloAnalyzer::fillDescriptions(), edm::ThinningProducer< Collection, Selector >::fillDescriptions(), MVAValueMapProducer< ParticleType >::fillDescriptions(), HLTTagAndProbeOfflineSource< TagType, TagCollType, ProbeType, ProbeCollType >::fillDescriptions(), dqm::DQMFileSaverPB::fillDescriptions(), evf::RecoEventOutputModuleForFU< Consumer >::fillDescriptions(), FastTrackerRecHitMatcher::fillDescriptions(), edm::EDAnalyzer::fillDescriptions(), RemovePileUpDominatedEventsGen::fillDescriptions(), L1TMuonQualityAdjuster::fillDescriptions(), VertexMonitor::fillDescriptions(), ECALpedestalPCLHarvester::fillDescriptions(), ECALpedestalPCLworker::fillDescriptions(), dEdxHitAnalyzer::fillDescriptions(), dEdxAnalyzer::fillDescriptions(), Mixing2DB::fillDescriptions(), PFCand_AssoMap::fillDescriptions(), L1TUtmTriggerMenuDumper::fillDescriptions(), CastorInvalidDataFilter::fillDescriptions(), edm::service::JobReportService::fillDescriptions(), L1TPhysicalEtAdder::fillDescriptions(), DJpsiFilter::fillDescriptions(), edm::EDProducer::fillDescriptions(), FourLepFilter::fillDescriptions(), HIPTwoBodyDecayAnalyzer::fillDescriptions(), JetConstituentSelector< T, C >::fillDescriptions(), WriteL1TriggerObjectsTxt::fillDescriptions(), MuPFIsoEmbedder::fillDescriptions(), MuMuForEmbeddingSelector::fillDescriptions(), TestBXVectorRefProducer::fillDescriptions(), HGCalTBCheckGunPostion::fillDescriptions(), dqm::DQMFileSaverOnline::fillDescriptions(), BeamProfile2DB::fillDescriptions(), PF_PU_AssoMap::fillDescriptions(), HcalLaserEventFilter2012::fillDescriptions(), HGCGeometryValidation::fillDescriptions(), edm::EDFilter::fillDescriptions(), edm::stream::EDAnalyzerBase::fillDescriptions(), PhotonIDValueMapProducer::fillDescriptions(), HBHEPlan1Combiner::fillDescriptions(), EcalTrigPrimProducer::fillDescriptions(), TrackAssociatorByPositionProducer::fillDescriptions(), QuickTrackAssociatorByHitsProducer::fillDescriptions(), HcalDigiToRawuHTR::fillDescriptions(), SiStripGainsPCLHarvester::fillDescriptions(), JetHTJetPlusHOFilter::fillDescriptions(), edm::EventSetupCacheIdentifierChecker::fillDescriptions(), AlCaIsolatedBunchFilter::fillDescriptions(), ValueMapTraslator::fillDescriptions(), AlCaIsolatedBunchSelector::fillDescriptions(), LHE2HepMCConverter::fillDescriptions(), ExtraFromSeeds::fillDescriptions(), L1TBMTFConverter::fillDescriptions(), ttHFGenFilter::fillDescriptions(), TrackAssociatorByChi2Producer::fillDescriptions(), AlCaIsoTracksProducerFilter::fillDescriptions(), l1t::FakeInputProducer::fillDescriptions(), L1TMicroGMTInputProducer::fillDescriptions(), __class__< T >::fillDescriptions(), L1TCaloLayer1Validator::fillDescriptions(), PF_PU_FirstVertexTracks::fillDescriptions(), l1t::L1TCaloRCTToUpgradeConverter::fillDescriptions(), L1TMuonCaloSumProducer::fillDescriptions(), EGEnergyAnalyzer::fillDescriptions(), edm::stream::EDFilterBase::fillDescriptions(), edm::stream::EDProducerBase::fillDescriptions(), B2GDoubleLeptonHLTValidation::fillDescriptions(), B2GHadronicHLTValidation::fillDescriptions(), B2GSingleLeptonHLTValidation::fillDescriptions(), TopSingleLeptonHLTValidation::fillDescriptions(), L1TStage2InputPatternWriter::fillDescriptions(), BeamSpotRcdReader::fillDescriptions(), TestPythiaDecays::fillDescriptions(), AlignPCLThresholdsWriter::fillDescriptions(), PileupJetIdProducer::fillDescriptions(), HFPreReconstructor::fillDescriptions(), TrackFromSeedProducer::fillDescriptions(), TrackAssociatorByHitsProducer::fillDescriptions(), SoftLepton::fillDescriptions(), PixelLumiDQM::fillDescriptions(), ElectronHEEPIDValueMapProducer::fillDescriptions(), HcalLaserEventFilter::fillDescriptions(), L1TMicroGMTInputProducerFromGen::fillDescriptions(), TemplatedDeepNNTagInfoProducer< IPTag, SVTag >::fillDescriptions(), TopDiLeptonHLTValidation::fillDescriptions(), HcalLaserHBHEFilter2012::fillDescriptions(), HcalLaserHBHEHFFilter2012::fillDescriptions(), l1t::AMCDumpToRaw::fillDescriptions(), l1t::AMC13DumpToRaw::fillDescriptions(), HcalLutAnalyzer::fillDescriptions(), HcalLaserHFFilter2012::fillDescriptions(), edm::global::EDAnalyzerBase::fillDescriptions(), PFCand_NoPU_WithAM::fillDescriptions(), SinglePhotonJetPlusHOFilter::fillDescriptions(), LogMessageMonitor::fillDescriptions(), HGCalDigiValidation::fillDescriptions(), AlCaGammaJetSelector::fillDescriptions(), SiStripFEDCheckPlugin::fillDescriptions(), edm::one::EDAnalyzerBase::fillDescriptions(), edm::global::EDFilterBase::fillDescriptions(), HFPhase1Reconstructor::fillDescriptions(), edm::one::EDFilterBase::fillDescriptions(), edm::one::EDProducerBase::fillDescriptions(), HcalHardcodeCalibrations::fillDescriptions(), EGammaCutBasedEleIdAnalyzer::fillDescriptions(), l1t::L1TGlobalAnalyzer::fillDescriptions(), L1TStage2Layer2Producer::fillDescriptions(), AlCaHBHEMuonFilter::fillDescriptions(), APVShotsFilter::fillDescriptions(), HcalRaddamMuon::fillDescriptions(), DeepFlavourJetTagsProducer::fillDescriptions(), edm::global::EDProducerBase::fillDescriptions(), l1t::MP7BufferDumpToRaw::fillDescriptions(), L1TMuonProducer::fillDescriptions(), FSQDiJetAve::fillDescriptions(), L1TCaloLayer1::fillDescriptions(), HGCalRecHitValidation::fillDescriptions(), l1t::BXVectorInputProducer::fillDescriptions(), DeepCMVATagInfoProducer::fillDescriptions(), EmbeddingVertexCorrector::fillDescriptions(), l1t::GenToInputProducer::fillDescriptions(), L1TComparison::fillDescriptions(), BoostedDoubleSVProducer::fillDescriptions(), PhotonRegressionValueMapProducer::fillDescriptions(), HGCalHitValidation::fillDescriptions(), L1TStage2Layer1Producer::fillDescriptions(), ElectronRegressionValueMapProducer::fillDescriptions(), StudyHLT::fillDescriptions(), IsoTrig::fillDescriptions(), L1Validator::fillDescriptions(), L1TCaloLayer1RawToDigi::fillDescriptions(), ExternalLHEProducer::fillDescriptions(), L1TStage1Layer2Producer::fillDescriptions(), HGCalSimHitValidation::fillDescriptions(), SiStripGainsPCLWorker::fillDescriptions(), EmbeddingLHEProducer::fillDescriptions(), AlCaIsoTracksFilter::fillDescriptions(), IsoTrackCalibration::fillDescriptions(), edm::OutputModule::fillDescriptions(), MuonIdProducer::fillDescriptions(), GenTtbarCategorizer::fillDescriptions(), VirtualJetProducer::fillDescriptions(), HadronAndPartonSelector::fillDescriptions(), IsoTrackCalib::fillDescriptions(), edm::global::OutputModuleBase::fillDescriptions(), edm::one::OutputModuleBase::fillDescriptions(), edm::InputSource::fillDescriptions(), JetCleanerForType1METT< T, Textractor >::fillDescriptions(), TemplatedSecondaryVertexProducer< IPTI, VTX >::fillDescriptions(), ChainedJetCorrectorProducer::fillDescriptions(), JetFlavourClustering::fillDescriptions(), SmearedJetProducerT< T >::fillDescriptions(), L1TConfigDumper::fillDescriptions(), MuonToTrackingParticleAssociatorEDProducer::fillDescriptions(), DQMRootOutputModule::fillDescriptions(), HBHEPhase1Reconstructor::fillDescriptions(), DQMRootSource::fillDescriptions(), IPProducer< Container, Base, Helper >::fillDescriptions(), and edm::fillDetails::DoFillAsUnknown< T >::operator()().

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

Definition at line 121 of file ConfigurationDescriptions.cc.

References descriptions_.

Referenced by comment().

121 { 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 113 of file ConfigurationDescriptions.cc.

References defaultDesc_, and defaultDescDefined_.

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

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

Definition at line 124 of file ConfigurationDescriptions.cc.

References descriptions_.

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

124 {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 231 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().

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

Referenced by print().

337  {
338  printForLabel(os,
339  labelAndDesc.first,
340  labelAndDesc.second,
341  moduleLabel,
342  brief,
343  printOnlyLabels,
344  lineWidth,
345  indentation,
346  counter);
347  }
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 350 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(), vertexPlots::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().

359  {
360  ++counter.iModule;
361  if (!moduleLabel.empty() && label != moduleLabel) return;
362  ++counter.iSelectedModule;
363 
364  std::stringstream ss;
365  ss << counter.iPlugin << "." << counter.iSelectedModule;
366  std::string section = ss.str();
367 
368  char oldFill = os.fill();
369  os << std::setfill(' ') << std::setw(indentation) << "" << std::setfill(oldFill);
370  os << section << " ";
371  if (label == std::string("@default")) {
372  os << "description without a module label\n";
373  }
374  else {
375  if (!brief) {
376  if (0 == strcmp(baseType_.c_str(),kSource) || 0 == strcmp(baseType_.c_str(),kService)) {
377  os << "label: ";
378  }
379  else {
380  os << "module label: ";
381  }
382  }
383  os << label << "\n";
384  }
385 
386  if (!brief) {
387  if (!description.comment().empty()) {
388  DocFormatHelper::wrapAndPrintText(os, description.comment(), indentation, lineWidth - indentation);
389  }
390  os << "\n";
391  }
392  if (printOnlyLabels) return;
393 
394  DocFormatHelper dfh;
395  dfh.setBrief(brief);
396  dfh.setLineWidth(lineWidth);
397  dfh.setIndentation(indentation + DocFormatHelper::offsetTopLevelPSet());
398  dfh.setSection(section);
399  dfh.setParent(DocFormatHelper::TOP);
400 
401  description.print(os, dfh);
402  }
static const char *const kService
static void wrapAndPrintText(std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth)
static int offsetTopLevelPSet()
void ConfigurationDescriptions::setComment ( std::string const &  value)
void ConfigurationDescriptions::setComment ( char const *  value)
void ConfigurationDescriptions::validate ( ParameterSet pset,
std::string const &  moduleLabel 
) const

Definition at line 128 of file ConfigurationDescriptions.cc.

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

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

129  {
130 
131  ParameterSetDescription const* psetDesc = 0;
132  for_all(descriptions_, std::bind(&matchLabel,
133  std::placeholders::_1,
134  std::cref(moduleLabel),
135  std::ref(psetDesc)));
136 
137  // If there is a matching label
138  if (psetDesc != 0) {
139  psetDesc->validate(pset);
140  }
141  // Is there an explicit description to be used for a non standard label
142  else if (defaultDescDefined_) {
143  defaultDesc_.validate(pset);
144  }
145  // Otherwise use the first one.
146  else if (descriptions_.size() > 0U) {
147  descriptions_[0].second.validate(pset);
148  }
149  // It is possible for no descriptions to be defined and no validation occurs
150  // for this module ever.
151  }
void validate(ParameterSet &pset) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:16
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 167 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().

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

Definition at line 154 of file ConfigurationDescriptions.cc.

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

Referenced by comment().

156  {
157 
159  std::placeholders::_1,
160  std::cref(baseType),
161  std::cref(pluginName),
162  std::ref(usedCfiFileNames)));
163  }
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:16
std::vector< std::pair< std::string, ParameterSetDescription > > descriptions_

Member Data Documentation

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

Definition at line 112 of file ConfigurationDescriptions.h.

Referenced by add(), addDefault(), and printForLabel().

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

Definition at line 118 of file ConfigurationDescriptions.h.

Referenced by comment(), and setComment().

ParameterSetDescription edm::ConfigurationDescriptions::defaultDesc_
private

Definition at line 116 of file ConfigurationDescriptions.h.

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

bool edm::ConfigurationDescriptions::defaultDescDefined_
private

Definition at line 119 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 114 of file ConfigurationDescriptions.h.

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