CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TestDescriptionComments.cc
Go to the documentation of this file.
1 
4 
8 
9 #include <string>
10 
11 namespace edmtest {
12 
14  public:
16 
17  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
18 
19  void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const final {}
20  };
21 
24  nestedDesc.add<int>("x", 1);
25 
26  std::vector<edm::ParameterSet> vectorOfPSets;
27 
29  desc.ifValue(
30  edm::ParameterDescription<std::string>("sswitch", "b", true, edm::Comment("test1")),
31  "a" >> edm::ParameterDescription<int>(std::string("x"), 100, true, edm::Comment("test2")) or
32  "b" >> (edm::ParameterDescription<double>("y1", true, edm::Comment("test3")) and
34  "c" >> edm::ParameterDescription<std::string>("z", "102", true) or
36  "nested1", nestedDesc, true, edm::Comment(std::string("test5"))) or
38  std::string("nested2"), nestedDesc, true, edm::Comment(std::string("test6"))) or
39  "f" >> edm::ParameterDescription<std::vector<edm::ParameterSet> >(
40  "vpset1", nestedDesc, true, vectorOfPSets, edm::Comment("test7")) or
41  "g" >> edm::ParameterDescription<std::vector<edm::ParameterSet> >(
42  std::string("vpset2"), nestedDesc, true, vectorOfPSets, edm::Comment("test8")) or
43  "h" >> edm::ParameterDescription<std::vector<edm::ParameterSet> >(
44  "vpset3", nestedDesc, true, edm::Comment("test9")) or
45  "i" >> edm::ParameterDescription<std::vector<edm::ParameterSet> >(
46  std::string("vpset4"), nestedDesc, true, edm::Comment("test10")));
47  descriptions.add("test", desc);
48  }
49 } // namespace edmtest
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
TestDescriptionComments(edm::ParameterSet const &)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)