#include <Discriminants.h>
Public Member Functions | |
NeutralOutlierPt () | |
~NeutralOutlierPt () | |
Protected Member Functions | |
void | doComputation (PFTauDiscriminantManager *input, std::vector< double > &result) |
Definition at line 246 of file Discriminants.h.
PFTauDiscriminants::NeutralOutlierPt::NeutralOutlierPt | ( | ) | [inline] |
Definition at line 248 of file Discriminants.h.
:DiscriminantBase<double>("NeutralOutlierPt", "vector<double>", false, true, 0.0){};
PFTauDiscriminants::NeutralOutlierPt::~NeutralOutlierPt | ( | ) | [inline] |
Definition at line 249 of file Discriminants.h.
{};
void PFTauDiscriminants::NeutralOutlierPt::doComputation | ( | PFTauDiscriminantManager * | input, |
std::vector< double > & | result | ||
) | [protected, virtual] |
Implements PFTauDiscriminants::DiscriminantBase< double >.
Definition at line 375 of file Discriminants.cc.
References reco::Candidate::charge(), PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), and reco::Candidate::pt().
{ const std::vector<const reco::Candidate*>& theOutlierObjects = input->outlierObjectsSortedByPt(); for(std::vector<const reco::Candidate*>::const_iterator iObject = theOutlierObjects.begin(); iObject != theOutlierObjects.end(); ++iObject) { const reco::Candidate* currentObject = *iObject; if (currentObject && !currentObject->charge()) result.push_back(currentObject->pt()); } }