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