28 typedef std::pair<edm::InputTag, edm::Handle<reco::PFTauDiscriminator> >
DiscInfo;
40 pset.
getParameter<std::vector<edm::InputTag> >(
"discSrc");
41 for(
auto const&
tag : discriminators) {
57 bool foundGoodDiscriminator =
false;
64 foundGoodDiscriminator =
true;
70 if (!foundGoodDiscriminator) {
71 std::stringstream
error;
72 error <<
"Couldn't find a PFTauDiscriminator usable with given tau." 73 << std::endl <<
" Input tau has product id: " << tau.
id() << std::endl;
82 edm::LogError(
"BadDiscriminatorConfiguration") << error.str();
88 return std::vector<double>(1,
result);
96 "RecoTauDiscriminantFromDiscriminator");
void beginEvent() override
T getParameter(std::string const &) const
std::vector< double > operator()(const reco::PFTauRef &tau) const override
ProductID id() const
Accessor for product ID.
U second(std::pair< T, U > const &p)
std::vector< DiscInfo > discriminators_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const edm::Event * evt() const
RecoTauDiscriminantFromDiscriminator(const edm::ParameterSet &pset)
KeyRefProd const & keyProduct() const
std::pair< edm::InputTag, edm::Handle< reco::PFTauDiscriminator > > DiscInfo
#define DEFINE_EDM_PLUGIN(factory, type, name)