12 #include <boost/shared_ptr.hpp>
13 #include <boost/foreach.hpp>
36 boost::shared_ptr<reco::tau::RecoTauDiscriminantPlugin>
plugin;
49 typedef std::vector<edm::ParameterSet> VPSet;
51 VPSet discriminants = pset.
getParameter<VPSet>(
"discriminants");
53 for(VPSet::const_iterator iDisc = discriminants.begin();
54 iDisc != discriminants.end(); ++iDisc) {
57 double defaultValue = (iDisc->exists(
"default")) ?
58 iDisc->getParameter<
double>(
"default") : 0.;
60 bool requestMultiple = iDisc->exists(
"indices");
63 std::vector<uint32_t> indices =
64 iDisc->getParameter<std::vector<uint32_t> >(
"indices");
65 for(std::vector<uint32_t>::const_iterator
index = indices.begin();
73 collectionName << name << *
index;
74 newDisc.
collName = collectionName.str();
80 discriminators_.push_back(newDisc);
94 discriminators_.push_back(newDisc);
99 produces<PFTauDiscriminator>(disc.
collName);
111 std::auto_ptr<PFTauDiscriminator>
output(
114 for(
size_t itau = 0; itau < pfTaus->size(); ++itau) {
120 if (result.size()-1 < disc.
index) {
121 selected_result = result[disc.
index];
123 output->setValue(itau, selected_result);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
std::string discPluginName(const std::string &mvaName)
std::string const collectionName[nCollections]
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T get(const Candidate &c)