73 desc.add<
bool>(
"usePFThresholdsFromDB",
true);
91 validator.
add<std::vector<int>>(
"depths", {});
92 validator.
add<std::vector<double>>(
"recHitEnergyNorm", {});
93 std::vector<edm::ParameterSet> vDefaults(2);
94 vDefaults[0].addParameter<
std::string>(
"detector",
"HCAL_BARREL1");
95 vDefaults[0].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4});
96 vDefaults[0].addParameter<std::vector<double>>(
"recHitEnergyNorm", {0.1, 0.2, 0.3, 0.3});
97 vDefaults[1].addParameter<
std::string>(
"detector",
"HCAL_ENDCAP");
98 vDefaults[1].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4, 5, 6, 7});
99 vDefaults[1].addParameter<std::vector<double>>(
"recHitEnergyNorm", {0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2});
104 bar.add<
std::string>(
"algoName",
"Basic2DGenericPFlowPositionCalc");
105 bar.add<
double>(
"minFractionInCalc", 1
e-9);
106 bar.add<
int>(
"posCalcNCrystals", 5);
110 validator.
add<std::vector<int>>(
"depths", {});
111 validator.
add<std::vector<double>>(
"logWeightDenominator", {});
112 std::vector<edm::ParameterSet> vDefaults(2);
113 vDefaults[0].addParameter<
std::string>(
"detector",
"HCAL_BARREL1");
114 vDefaults[0].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4});
115 vDefaults[0].addParameter<std::vector<double>>(
"logWeightDenominator", {0.1, 0.2, 0.3, 0.3});
116 vDefaults[1].addParameter<
std::string>(
"detector",
"HCAL_ENDCAP");
117 vDefaults[1].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4, 5, 6, 7});
118 vDefaults[1].addParameter<std::vector<double>>(
"logWeightDenominator", {0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2});
119 bar.addVPSet(
"logWeightDenominatorByDetector", validator, vDefaults);
121 bar.add<
double>(
"minAllowedNormalization", 1
e-9);
126 bar.add<
std::string>(
"algoName",
"Basic2DGenericPFlowPositionCalc");
127 bar.add<
double>(
"minFractionInCalc", 1
e-9);
128 bar.add<
int>(
"posCalcNCrystals", -1);
132 validator.
add<std::vector<int>>(
"depths", {});
133 validator.
add<std::vector<double>>(
"logWeightDenominator", {});
134 std::vector<edm::ParameterSet> vDefaults(2);
135 vDefaults[0].addParameter<
std::string>(
"detector",
"HCAL_BARREL1");
136 vDefaults[0].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4});
137 vDefaults[0].addParameter<std::vector<double>>(
"logWeightDenominator", {0.1, 0.2, 0.3, 0.3});
138 vDefaults[1].addParameter<
std::string>(
"detector",
"HCAL_ENDCAP");
139 vDefaults[1].addParameter<std::vector<int>>(
"depths", {1, 2, 3, 4, 5, 6, 7});
140 vDefaults[1].addParameter<std::vector<double>>(
"logWeightDenominator", {0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2});
141 bar.addVPSet(
"logWeightDenominatorByDetector", validator, vDefaults);
143 bar.add<
double>(
"minAllowedNormalization", 1
e-9);
148 bar.add<
double>(
"corrTermLowE", 0.);
149 bar.add<
double>(
"threshLowE", 6.);
150 bar.add<
double>(
"noiseTerm", 21.86);
151 bar.add<
double>(
"constantTermLowE", 4.24);
152 bar.add<
double>(
"noiseTermLowE", 8.);
153 bar.add<
double>(
"threshHighE", 15.);
154 bar.add<
double>(
"constantTerm", 2.82);
159 bar.add<
double>(
"corrTermLowE", 0.);
160 bar.add<
double>(
"threshLowE", 6.);
161 bar.add<
double>(
"noiseTerm", 21.86);
162 bar.add<
double>(
"constantTermLowE", 4.24);
163 bar.add<
double>(
"noiseTermLowE", 8.);
164 bar.add<
double>(
"threshHighE", 15.);
165 bar.add<
double>(
"constantTerm", 2.82);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)