2 #include "DataFormats/TestObjects/interface/ThingCollection.h" 31 virtual int value()
const = 0;
74 std::vector<int>
vint;
83 assert(testArray[0] == 2147483647);
84 assert(testArray[1] == -2147483647);
85 std::array<int, 2> testArray1 = ps.
getParameter<std::array<int, 2>>(
"vint3");
86 assert(testArray1[0] == 2147483647);
87 assert(testArray1[1] == -2147483647);
96 std::vector<unsigned> vuint;
97 vuint = ps.
getParameter<std::vector<unsigned>>(
"vuint1");
99 vuint = ps.
getParameter<std::vector<unsigned>>(
"vuint2");
100 assert(vuint[0] == 4294967295
U);
101 vuint = ps.
getParameter<std::vector<unsigned>>(
"vuint3");
102 assert(vuint[0] == 4294967295
U);
104 vuint = ps.
getParameter<std::vector<unsigned>>(
"vuint4");
105 assert(vuint[0] == 4294967295
U);
113 std::vector<long long> vint64;
114 vint64 = ps.
getParameter<std::vector<long long>>(
"vint64v1");
116 vint64 = ps.
getParameter<std::vector<long long>>(
"vint64v2");
117 assert(vint64[0] == 9000000000000000000
LL);
118 vint64 = ps.
getParameter<std::vector<long long>>(
"vint64v3");
119 assert(vint64[0] == 9000000000000000000
LL);
120 assert(vint64[1] == -9000000000000000000
LL);
121 vint64 = ps.
getParameter<std::vector<long long>>(
"vint64v4");
122 assert(vint64[0] == 9000000000000000000
LL);
123 assert(vint64[1] == -9000000000000000000
LL);
129 std::vector<unsigned long long> vuint64;
130 vuint64 = ps.
getParameter<std::vector<unsigned long long>>(
"vuint64v1");
132 vuint64 = ps.
getParameter<std::vector<unsigned long long>>(
"vuint64v2");
133 assert(vuint64[0] == 18000000000000000000ULL);
134 vuint64 = ps.
getParameter<std::vector<unsigned long long>>(
"vuint64v3");
135 assert(vuint64[0] == 18000000000000000000ULL);
137 vuint64 = ps.
getParameter<std::vector<unsigned long long>>(
"vuint64v4");
138 assert(vuint64[0] == 18000000000000000000ULL);
177 std::vector<std::string>
vstring;
195 std::vector<edm::EventID> vEventID;
196 vEventID = ps.
getParameter<std::vector<edm::EventID>>(
"vEventIDv1");
198 vEventID = ps.
getParameter<std::vector<edm::EventID>>(
"vEventIDv2");
200 vEventID = ps.
getParameter<std::vector<edm::EventID>>(
"vEventIDv3");
203 vEventID = ps.
getParameter<std::vector<edm::EventID>>(
"vEventIDv4");
213 std::vector<edm::LuminosityBlockID> vLuminosityBlockID;
214 vLuminosityBlockID = ps.
getParameter<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv1");
215 assert(vLuminosityBlockID.empty());
216 vLuminosityBlockID = ps.
getParameter<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv2");
218 vLuminosityBlockID = ps.
getParameter<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv3");
221 vLuminosityBlockID = ps.
getParameter<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv4");
233 std::vector<edm::LuminosityBlockRange> vLumiRange;
234 vLumiRange = ps.
getParameter<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev1");
235 assert(vLumiRange.empty());
236 vLumiRange = ps.
getParameter<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev2");
238 vLumiRange = ps.
getParameter<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev3");
240 assert(vLumiRange[1].startLumiID() == lumiRange2.startLumiID());
241 assert(vLumiRange[1].endLumiID() == lumiRange2.endLumiID());
250 std::vector<edm::EventRange> vEventRange;
251 vEventRange = ps.
getParameter<std::vector<edm::EventRange>>(
"vEventRangev1");
252 assert(vEventRange.empty());
253 vEventRange = ps.
getParameter<std::vector<edm::EventRange>>(
"vEventRangev2");
254 assert(vEventRange[0].startEventID() == eventRange1.startEventID());
255 vEventRange = ps.
getParameter<std::vector<edm::EventRange>>(
"vEventRangev3");
256 assert(vEventRange[0].startEventID() == eventRange1.startEventID());
257 assert(vEventRange[1].startEventID() == eventRange2.startEventID());
268 std::vector<edm::InputTag> vInputTag;
269 vInputTag = ps.
getParameter<std::vector<edm::InputTag>>(
"vInputTagv1");
270 assert(vInputTag.empty());
271 vInputTag = ps.
getParameter<std::vector<edm::InputTag>>(
"vInputTagv2");
273 vInputTag = ps.
getParameter<std::vector<edm::InputTag>>(
"vInputTagv3");
276 vInputTag = ps.
getParameter<std::vector<edm::InputTag>>(
"vInputTagv4");
280 vInputTag = ps.
getParameter<std::vector<edm::InputTag>>(
"vInputTagv5");
284 assert(vInputTag[3] == inputTag4);
293 std::vector<edm::ESInputTag> vESInputTag;
294 vESInputTag = ps.
getParameter<std::vector<edm::ESInputTag>>(
"vESInputTagv1");
295 assert(vESInputTag.empty());
296 vESInputTag = ps.
getParameter<std::vector<edm::ESInputTag>>(
"vESInputTagv2");
297 assert(vESInputTag[0] == esinputTag1);
298 vESInputTag = ps.
getParameter<std::vector<edm::ESInputTag>>(
"vESInputTagv3");
299 assert(vESInputTag[0] == esinputTag1);
300 assert(vESInputTag[1] == esinputTag2);
301 vESInputTag = ps.
getParameter<std::vector<edm::ESInputTag>>(
"vESInputTagv4");
302 assert(vESInputTag[0] == esinputTag1);
303 assert(vESInputTag[1] == esinputTag2);
304 assert(vESInputTag[2] == esinputTag3);
308 edm::FileInPath fileInPath(
"FWCore/Integration/plugins/ProducerWithPSetDesc.cc");
312 assert(
pset.getParameter<
unsigned>(
"Drinks") == 5
U);
313 assert(
pset.getUntrackedParameter<
unsigned>(
"uDrinks") == 5
U);
315 assert(
pset.getParameter<
unsigned>(
"oDrinks") == 5
U);
317 assert(
pset.getUntrackedParameter<
unsigned>(
"ouDrinks") == 5
U);
327 assert(pset0.getParameter<
unsigned>(
"Drinks") == 5
U);
328 assert(pset0.getUntrackedParameter<
unsigned>(
"uDrinks") == 5
U);
329 assert(pset0.getParameter<
unsigned>(
"oDrinks") == 11
U);
330 assert(pset0.exists(
"ouDrinks") ==
false);
331 assert(pset0.exists(
"ndoDrinks") ==
false);
332 assert(pset0.exists(
"ndouDrinks") ==
false);
336 assert(pset1.getParameter<
unsigned>(
"Drinks") == 5
U);
337 assert(pset1.getUntrackedParameter<
unsigned>(
"uDrinks") == 5
U);
338 assert(pset1.getParameter<
unsigned>(
"oDrinks") == 11
U);
339 assert(pset1.getUntrackedParameter<
unsigned>(
"ouDrinks") == 11
U);
340 assert(pset1.exists(
"ndoDrinks") ==
false);
341 assert(pset1.getUntrackedParameter<
unsigned>(
"ndouDrinks") == 11
U);
464 assert(psetAllowed.
getParameter<std::vector<std::string>>(
"testAllowedLabels").empty());
467 assert(!psetAllowed.
exists(
"testOptAllowedLabelsUntracked"));
470 produces<ThingCollection>();
477 auto result = std::make_unique<ThingCollection>();
491 pn = iDesc.
add<
int>(
"p_int", 2147483647);
493 "A big integer. I am trying to test the wrapping of comments in" 494 " the printed output by putting in a long comment to see if it gets" 495 " wrapped OK. The comment should get indented to the second column" 496 " indent on every line. By default newlines should be inserted between" 497 " words to make the lines fit in the terminal screen width. There is " 498 "a command line parameter that can be set to override this width to " 499 "any desired value. If there is no terminal then it should default to " 500 "80. The logic for setting the width is in edmPluginHelp.cpp");
502 iDesc.
addUntracked<
int>(
"p_int_untracked", -2147483647);
508 std::vector<int>
vint;
509 iDesc.
add<std::vector<int>>(
"vint1",
vint);
510 vint.push_back(2147483647);
512 vint.push_back(-2147483647);
513 iDesc.
add<std::vector<int>>(
"vint3",
vint);
515 iDesc.
add<std::vector<int>>(
"vint4",
vint);
517 iDesc.
add<
unsigned>(
"uint1", 4294967295
U);
520 std::vector<unsigned> vuint;
521 iDesc.
add<std::vector<unsigned>>(
"vuint1", vuint);
522 vuint.push_back(4294967295
U);
523 iDesc.
add<std::vector<unsigned>>(
"vuint2", vuint);
525 iDesc.
add<std::vector<unsigned>>(
"vuint3", vuint);
527 iDesc.
add<std::vector<unsigned>>(
"vuint4", vuint);
531 iDesc.
add<std::vector<unsigned>>(
"vuint5", vuint);
533 iDesc.
add<
long long>(
"int64v1", 9000000000000000000
LL);
534 iDesc.
add<
long long>(
"int64v2", -9000000000000000000
LL);
535 iDesc.
add<
long long>(
"int64v3", 0);
537 std::vector<long long> vint64;
538 iDesc.
add<std::vector<long long>>(
"vint64v1", vint64);
539 vint64.push_back(9000000000000000000
LL);
540 iDesc.
add<std::vector<long long>>(
"vint64v2", vint64);
541 vint64.push_back(-9000000000000000000
LL);
542 iDesc.
add<std::vector<long long>>(
"vint64v3", vint64);
544 iDesc.
add<std::vector<long long>>(
"vint64v4", vint64);
546 iDesc.
add<
unsigned long long>(
"uint64v1", 18000000000000000000ULL);
549 std::vector<unsigned long long> vuint64;
550 iDesc.
add<std::vector<unsigned long long>>(
"vuint64v1", vuint64);
551 vuint64.push_back(18000000000000000000ULL);
552 iDesc.
add<std::vector<unsigned long long>>(
"vuint64v2", vuint64);
553 vuint64.push_back(0);
554 iDesc.
add<std::vector<unsigned long long>>(
"vuint64v3", vuint64);
555 vuint64.push_back(11);
556 iDesc.
add<std::vector<unsigned long long>>(
"vuint64v4", vuint64);
563 iDesc.
add<std::vector<double>>(
"vdoublev1",
vdouble);
568 iDesc.
add<std::vector<double>>(
"vdoublev2",
vdouble);
570 iDesc.
add<std::vector<double>>(
"vdoublev3",
vdouble);
572 iDesc.
add<std::vector<double>>(
"vdoublev4",
vdouble);
574 iDesc.
add<std::vector<double>>(
"vdoublev5",
vdouble);
576 iDesc.
add<
bool>(
"boolv1",
true);
577 iDesc.
add<
bool>(
"boolv2",
false);
584 std::vector<std::string>
vstring;
585 iDesc.
add<std::vector<std::string>>(
"vstringv1",
vstring);
588 iDesc.
add<std::vector<std::string>>(
"vstringv2",
vstring);
591 iDesc.
add<std::vector<std::string>>(
"vstringv3",
vstring);
594 iDesc.
add<std::vector<std::string>>(
"vstringv4",
vstring);
600 std::vector<edm::EventID> vEventID;
601 iDesc.
add<std::vector<edm::EventID>>(
"vEventIDv1", vEventID);
603 vEventID.push_back(eventID3);
604 iDesc.
add<std::vector<edm::EventID>>(
"vEventIDv2", vEventID);
606 vEventID.push_back(eventID4);
607 iDesc.
add<std::vector<edm::EventID>>(
"vEventIDv3", vEventID);
609 vEventID.push_back(eventID5);
610 iDesc.
add<std::vector<edm::EventID>>(
"vEventIDv4", vEventID);
617 std::vector<edm::LuminosityBlockID> vLuminosityBlockID;
618 iDesc.
add<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv1", vLuminosityBlockID);
620 vLuminosityBlockID.push_back(luminosityID3);
621 iDesc.
add<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv2", vLuminosityBlockID);
623 vLuminosityBlockID.push_back(luminosityID4);
624 iDesc.
add<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv3", vLuminosityBlockID);
626 vLuminosityBlockID.push_back(luminosityID5);
627 iDesc.
add<std::vector<edm::LuminosityBlockID>>(
"vLuminosityBlockIDv4", vLuminosityBlockID);
634 std::vector<edm::LuminosityBlockRange> vLumiRange;
635 iDesc.
add<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev1", vLumiRange);
637 iDesc.
add<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev2", vLumiRange);
638 vLumiRange.push_back(lumiRange2);
639 iDesc.
add<std::vector<edm::LuminosityBlockRange>>(
"vLumiRangev3", vLumiRange);
646 std::vector<edm::EventRange> vEventRange;
647 iDesc.
add<std::vector<edm::EventRange>>(
"vEventRangev1", vEventRange);
649 iDesc.
add<std::vector<edm::EventRange>>(
"vEventRangev2", vEventRange);
650 vEventRange.push_back(eventRange2);
651 iDesc.
add<std::vector<edm::EventRange>>(
"vEventRangev3", vEventRange);
662 std::vector<edm::InputTag> vInputTag;
663 iDesc.
add<std::vector<edm::InputTag>>(
"vInputTagv1", vInputTag);
665 iDesc.
add<std::vector<edm::InputTag>>(
"vInputTagv2", vInputTag);
667 iDesc.
add<std::vector<edm::InputTag>>(
"vInputTagv3", vInputTag);
669 iDesc.
add<std::vector<edm::InputTag>>(
"vInputTagv4", vInputTag);
670 vInputTag.push_back(inputTag4);
671 iDesc.
add<std::vector<edm::InputTag>>(
"vInputTagv5", vInputTag);
680 std::vector<edm::ESInputTag> vESInputTag;
681 iDesc.
add<std::vector<edm::ESInputTag>>(
"vESInputTagv1", vESInputTag);
682 vESInputTag.push_back(esinputTag);
683 iDesc.
add<std::vector<edm::ESInputTag>>(
"vESInputTagv2", vESInputTag);
684 vESInputTag.push_back(esinputTag2);
685 iDesc.
add<std::vector<edm::ESInputTag>>(
"vESInputTagv3", vESInputTag);
686 vESInputTag.push_back(esinputTag3);
687 iDesc.
add<std::vector<edm::ESInputTag>>(
"vESInputTagv4", vESInputTag);
691 edm::FileInPath fileInPath(
"FWCore/Integration/plugins/ProducerWithPSetDesc.cc");
698 bar.add<
unsigned int>(
"Drinks", 5);
699 bar.addUntracked<
unsigned int>(
"uDrinks", 5);
700 bar.addOptional<
unsigned int>(
"oDrinks", 5);
701 bar.addOptionalUntracked<
unsigned int>(
"ouDrinks", 5);
702 iDesc.
add(
"bar", bar);
708 barx.
add<
unsigned int>(
"Drinks", 5);
721 std::vector<edm::ParameterSet> defaultVPSet104;
724 std::string(
"test104"), barx,
false, defaultVPSet104);
727 std::vector<edm::ParameterSet> defaultVPSet105;
729 std::string(
"test105"), barx,
false, defaultVPSet105);
778 deeplyNested.
add<
int>(
"testint", 1000);
780 barx.
add(
"testDeeplyNested", deeplyNested);
782 iDesc.
add(
"testDeeplyNested2", deeplyNested);
785 validator.
add<
int>(
"xvalue", 7);
786 std::vector<edm::ParameterSet> vDefaults;
788 vDefaults.push_back(vDefaults0);
791 vDefaults.push_back(vDefaults1);
792 barx.
addVPSet(
"anotherVPSet", validator, vDefaults);
794 std::vector<edm::ParameterSet> defaultVPSet;
798 defaultVPSet.push_back(psetInVector1);
805 std::vector<edm::ParameterSet> anotherDefaultVPSet;
809 anotherDefaultVPSet.push_back(anotherParameterSet);
810 psetInVector2.
addParameter<std::vector<edm::ParameterSet>>(
"anotherVPSet", anotherDefaultVPSet);
816 defaultVPSet.push_back(psetInVector2);
818 iDesc.
addVPSet(
"bars", barx, defaultVPSet);
825 subPsetDescription->
add<
int>(
"xvalue", 11);
834 pn->setComment(
"A comment for a wildcard parameter");
836 std::unique_ptr<edm::ParameterDescriptionNode> wnode =
837 std::make_unique<edm::ParameterWildcard<edm::ParameterSetDescription>>(
"*",
edm::RequireExactlyOne,
true);
841 wSet1.
add<
unsigned int>(
"Drinks", 5);
843 std::unique_ptr<edm::ParameterDescriptionNode> wnode2 =
844 std::make_unique<edm::ParameterWildcard<edm::ParameterSetDescription>>(
848 std::unique_ptr<edm::ParameterDescriptionNode> wnode3 =
849 std::make_unique<edm::ParameterWildcard<std::vector<edm::ParameterSet>>>(
"*",
edm::RequireExactlyOne,
true);
852 wSet1.
add<
unsigned int>(
"Drinks2", 11);
854 std::unique_ptr<edm::ParameterDescriptionNode> wnode4 =
855 std::make_unique<edm::ParameterWildcard<std::vector<edm::ParameterSet>>>(
863 std::vector<int> testIntVector;
864 testIntVector.push_back(21);
865 testIntVector.push_back(22);
872 pn->setComment(
"Comment for a ParameterSwitch");
879 ->setComment(
"If TeV refits are added, their sources need to be specified");
979 noDefaultPset3.
addOptional<std::vector<int>>(
"noDefault2");
980 noDefaultPset3.
addOptional<
unsigned>(
"noDefault3");
981 noDefaultPset3.
addOptional<std::vector<unsigned>>(
"noDefault4");
982 noDefaultPset3.
addOptional<
long long>(
"noDefault5");
983 noDefaultPset3.
addOptional<std::vector<long long>>(
"noDefault6");
984 noDefaultPset3.
addOptional<
unsigned long long>(
"noDefault7");
985 noDefaultPset3.
addOptional<std::vector<unsigned long long>>(
"noDefault8");
987 noDefaultPset3.
addOptional<std::vector<double>>(
"noDefault10");
990 noDefaultPset3.
addOptional<std::vector<std::string>>(
"noDefault13");
992 noDefaultPset3.
addOptional<std::vector<edm::EventID>>(
"noDefault15");
994 noDefaultPset3.
addOptional<std::vector<edm::LuminosityBlockID>>(
"noDefault17");
996 noDefaultPset3.
addOptional<std::vector<edm::InputTag>>(
"noDefault19");
999 noDefaultPset3.
addOptional<std::vector<edm::LuminosityBlockRange>>(
"noDefault22");
1001 noDefaultPset3.
addOptional<std::vector<edm::EventRange>>(
"noDefault24");
1003 iDesc.
add(
"noDefaultPset3", noDefaultPset3);
1032 iDesc.
add(
"noDefaultPset4", noDefaultPset4);
1044 std::vector<edm::ParameterSet> vDefaultsPlugins2;
1045 iDesc.
addVPSet(
"plugin2", pluginDesc2, vDefaultsPlugins2);
1049 std::vector<edm::ParameterSet> vDefaultsPlugins3;
1052 vDefaultsPlugins3.push_back(vpsetDefault0);
1056 vDefaultsPlugins3.push_back(vpsetDefault1);
1058 iDesc.
addVPSet(
"plugin3", pluginDesc3, vDefaultsPlugins3);
1062 descriptions.
add(
"testProducerWithPsetDesc", iDesc);
1067 iDesc1.
add<
int>(
"p_int", 1);
1069 iDesc1.
setComment(
"A comment for a ParameterSetDescription");
1074 noDefaultPset1.
add<std::vector<int>>(
"noDefault2");
1075 noDefaultPset1.
add<
unsigned>(
"noDefault3");
1076 noDefaultPset1.
add<std::vector<unsigned>>(
"noDefault4");
1077 noDefaultPset1.
add<
long long>(
"noDefault5");
1078 noDefaultPset1.
add<std::vector<long long>>(
"noDefault6");
1079 noDefaultPset1.
add<
unsigned long long>(
"noDefault7");
1080 noDefaultPset1.
add<std::vector<unsigned long long>>(
"noDefault8");
1081 noDefaultPset1.
add<
double>(
"noDefault9");
1082 noDefaultPset1.
add<std::vector<double>>(
"noDefault10");
1083 noDefaultPset1.
add<
bool>(
"noDefault11");
1085 noDefaultPset1.
add<std::vector<std::string>>(
"noDefault13");
1087 noDefaultPset1.
add<std::vector<edm::EventID>>(
"noDefault15");
1089 noDefaultPset1.
add<std::vector<edm::LuminosityBlockID>>(
"noDefault17");
1091 noDefaultPset1.
add<std::vector<edm::InputTag>>(
"noDefault19");
1094 noDefaultPset1.
add<std::vector<edm::LuminosityBlockRange>>(
"noDefault22");
1096 noDefaultPset1.
add<std::vector<edm::EventRange>>(
"noDefault24");
1098 iDesc1.
add(
"noDefaultPset1", noDefaultPset1);
1103 noDefaultPset2.
addUntracked<std::vector<int>>(
"noDefault2");
1105 noDefaultPset2.
addUntracked<std::vector<unsigned>>(
"noDefault4");
1107 noDefaultPset2.
addUntracked<std::vector<long long>>(
"noDefault6");
1108 noDefaultPset2.
addUntracked<
unsigned long long>(
"noDefault7");
1109 noDefaultPset2.
addUntracked<std::vector<unsigned long long>>(
"noDefault8");
1111 noDefaultPset2.
addUntracked<std::vector<double>>(
"noDefault10");
1114 noDefaultPset2.
addUntracked<std::vector<std::string>>(
"noDefault13");
1116 noDefaultPset2.
addUntracked<std::vector<edm::EventID>>(
"noDefault15");
1118 noDefaultPset2.
addUntracked<std::vector<edm::LuminosityBlockID>>(
"noDefault17");
1120 noDefaultPset2.
addUntracked<std::vector<edm::InputTag>>(
"noDefault19");
1123 noDefaultPset2.
addUntracked<std::vector<edm::LuminosityBlockRange>>(
"noDefault22");
1125 noDefaultPset2.
addUntracked<std::vector<edm::EventRange>>(
"noDefault24");
1127 iDesc1.
add(
"noDefaultPset2", noDefaultPset2);
1128 descriptions.
add(
"testLabel1", iDesc1);
1133 iDesc2.
add<
int>(
"p_int", 2);
1139 iDesc3.
add<
int>(
"p_int", 3);
void setComment(std::string const &value)
ParameterDescriptionNode * ifValue(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
EventID startEventID() const
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
#define EDM_REGISTER_VALIDATED_PLUGINFACTORY(_factory_, _category_)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setAllowAnything()
allow any parameter label/value pairs
AnotherOneMaker(edm::ParameterSet const &)
virtual ~AnotherIntMakerBase()=default
bool exists(std::string const ¶meterName) const
checks if a parameter exists
EventID endEventID() const
ParameterSet const & getParameterSet(std::string const &) const
virtual ParameterSetDescription const * parameterSetDescription() const
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
virtual int value() const =0
AnotherValueMaker(edm::ParameterSet const &iPSet)
LuminosityBlockID endLumiID() const
T getUntrackedParameter(std::string const &, T const &) const
void setComment(std::string const &value)
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_EDM_VALIDATED_PLUGIN(factory, type, name)
static void fillPSetDescription(edm::ParameterSetDescription &)
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
void addParameter(std::string const &name, T const &value)
ParameterDescriptionNode * addOptionalNode(ParameterDescriptionNode const &node, bool writeToCfi)
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< double > vdouble
void addUntrackedParameter(std::string const &name, T const &value)
ParameterDescriptionNode * ifValueOptional(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases, bool writeToCfi)
void produce(edm::StreamID, edm::Event &e, edm::EventSetup const &c) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProducerWithPSetDesc(edm::ParameterSet const &ps)
VParameterSet const & getParameterSetVector(std::string const &name) const
bool testingAutoGeneratedCfi
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)
LuminosityBlockID startLumiID() const
static constexpr float d1
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)