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