#include <Discriminants.h>
Public Member Functions | |
GammaPt () | |
~GammaPt () | |
Protected Member Functions | |
void | doComputation (PFTauDiscriminantManager *input, std::vector< double > &result) |
Definition at line 128 of file Discriminants.h.
PFTauDiscriminants::GammaPt::GammaPt | ( | ) | [inline] |
Definition at line 130 of file Discriminants.h.
:DiscriminantBase<double>("GammaPt", "vector<double>", false, true, 0.0){}
PFTauDiscriminants::GammaPt::~GammaPt | ( | ) | [inline] |
Definition at line 131 of file Discriminants.h.
{};
void PFTauDiscriminants::GammaPt::doComputation | ( | PFTauDiscriminantManager * | input, |
std::vector< double > & | result | ||
) | [protected, virtual] |
Implements PFTauDiscriminants::DiscriminantBase< double >.
Definition at line 140 of file Discriminants.cc.
References reco::Candidate::charge(), PFTauDiscriminants::PFTauDiscriminantManager::getLeafDaughters(), 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()) { std::vector<const reco::Candidate*> daughters = input->getLeafDaughters(currentObject); for(std::vector<const reco::Candidate*>::const_iterator iDaughter = daughters.begin(); iDaughter != daughters.end(); ++iDaughter) { result.push_back((*iDaughter)->pt()); } } } }