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