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)
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setAllowAnything()
allow any parameter label/value pairs
virtual ParameterSetDescription const * parameterSetDescription() const
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
void setComment(std::string const &value)
void addDefault(ParameterSetDescription const &psetDescription)
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)
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 add(std::string const &label, ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)
static constexpr float d1