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;
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);
113 for(
size_t itau = 0; itau < pfTaus->size(); ++itau) {
119 if (result.size()-1 < disc.
index) {
120 selected_result = result[disc.
index];
122 output->setValue(itau, selected_result);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
def create(alignables, pedeDump, additionalData, outputFile, config)
#define DEFINE_FWK_MODULE(type)
std::string discPluginName(const std::string &mvaName)
std::string const collectionName[nCollections]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T get(const Candidate &c)