1 #ifndef FWCore_ParameterSet_PluginDescription_h 2 #define FWCore_ParameterSet_PluginDescription_h 126 std::set<ParameterTypes>& parameterTypes,
127 std::set<ParameterTypes>& wildcardTypes)
const final {
134 std::set<std::string>& validatedLabels,
135 bool optional)
const final {
139 auto n =
pset.getParameterNames();
140 validatedLabels.insert(
n.begin(),
n.end());
144 bool& startWithComma,
146 bool& wroteSomething)
const final {
156 cache_->writeCfi(os,startWithComma,indentation);
157 wroteSomething =
true;
168 int indentation = dfh.indentation();
173 std::stringstream ss;
174 ss << dfh.section() <<
"." << dfh.counter();
178 os <<
"Section " << newSection
179 <<
" " <<
Factory::get()->category() <<
" Plugins description:\n";
180 if(!dfh.brief()) os <<
"\n";
187 unsigned int pluginCount = 0;
192 if (previousName ==
info.name_) {
196 std::stringstream ss;
197 ss << dfh.section() <<
"." << dfh.counter();
200 os <<
"Section " << newSection <<
"."<< ++pluginCount
201 <<
" " <<
info.name_ <<
" Plugin description:\n";
202 if(!dfh.brief()) os <<
"\n";
210 previousName =
info.name_;
248 std::shared_ptr<ParameterSetDescription>
253 std::shared_ptr<ParameterSetDescription> desc = std::make_shared<ParameterSetDescription>(a->description());
273 mutable std::shared_ptr<ParameterSetDescription>
cache_;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
static PluginManager & configure(const Config &)
def create(alignables, pedeDump, additionalData, outputFile, config)
bool partiallyExists_(ParameterSet const &pset) const final
std::string findType(edm::ParameterSet const &iPSet) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
PluginDescription(std::string typeLabel, bool typeLabelIsTracked)
static bool isAvailable()
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const final
U second(std::pair< T, U > const &p)
void loadPlugin(std::string const &iName) const
std::shared_ptr< ParameterSetDescription > loadDescription(std::string const &iName) const
PluginManager::Config config()
ParameterDescriptionNode * clone() const final
static Factory const * get()
void writeCfi_(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const final
void printNestedContent_(std::ostream &os, bool, DocFormatHelper &dfh) const final
static void printSpaces(std::ostream &os, int n)
PluginDescription(std::string typeLabel, std::string defaultType, bool typeLabelIsTracked)
bool exists(ParameterSet const &pset) const
bool hasNestedContent_() const final
std::shared_ptr< ParameterSetDescription > cache_
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const final
int howManyXORSubNodesExist_(ParameterSet const &pset) const final
bool exists_(ParameterSet const &pset) const final
static PluginManager * get()