Definition at line 135 of file TauDiscriminantCutMultiplexer.cc.
155 typedef std::vector<edm::ParameterSet>
VPSet;
156 typedef std::vector<std::string> VString;
157 typedef std::vector<double> VDouble;
158 VString rawValueConfig =
cfg.getParameter<VString>(
"rawValues");
159 for (
uint i = 0;
i < rawValueConfig.size();
i++) {
160 if (rawValueConfig[
i] ==
"discriminator")
162 else if (rawValueConfig[
i] ==
"category")
166 <<
" Configuration Parameter 'rawValues' containes unknown values. Must be 'discriminator' or 'category'!!\n";
168 n_raws_ = rawValueConfig.size();
170 for (
auto const& mappingEntry :
mapping) {
171 unsigned category = mappingEntry.getParameter<uint32_t>(
"category");
172 std::vector<std::unique_ptr<DiscriminantCutEntry>> cutWPs;
174 bool localWPs =
false;
175 bool wpsAsDouble =
false;
176 if (mappingEntry.exists(
"workingPoints")) {
178 if (mappingEntry.existsAs<VDouble>(
"workingPoints")) {
180 }
else if (mappingEntry.existsAs<VString>(
"workingPoints")) {
184 <<
" Configuration Parameter 'workingPoints' must be filled with cms.string or cms.double!!\n";
186 }
else if (
cfg.exists(
"workingPoints")) {
188 if (
cfg.existsAs<VDouble>(
"workingPoints")) {
190 }
else if (
cfg.existsAs<VString>(
"workingPoints")) {
194 <<
" Configuration Parameter 'workingPoints' must be filled with cms.string or cms.double!!\n";
198 <<
" Undefined Configuration Parameter 'workingPoints' !!\n";
203 workingPoints = mappingEntry.getParameter<VDouble>(
"workingPoints");
207 std::unique_ptr<DiscriminantCutEntry>
cut{
new DiscriminantCutEntry()};
215 workingPoints = mappingEntry.getParameter<VString>(
"workingPoints");
219 std::unique_ptr<DiscriminantCutEntry>
cut{
new DiscriminantCutEntry()};
220 cut->cutName_ = categoryname +
wp;
References taus_updatedMVAIds_cff::category, looper::cfg, gather_cfg::cout, TkAlMuonSelectors_cfi::cut, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::cuts_, Exception, mps_fire::i, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::inputFileName_, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::DiscriminantCutEntry::kFixedCut, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::DiscriminantCutEntry::kVariableCut, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::loadMVAfromDB_, taus_updatedMVAIds_cff::mapping, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::moduleLabel_, eostools::move(), TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::mvaOutputNormalizationName_, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::n_raws_, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::raw_category_idx_, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::raw_discriminator_idx_, AlCaHLTBitMon_QueryRunRegistry::string, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::toMultiplex_, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::toMultiplex_token, parallelization::uint, TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::verbosity_, HistogramManager_cfi::VPSet(), PDWG_TauSkim_cff::workingPoints, and pfClustersFromHGC3DClusters_cfi::wp.