#include <Discriminants.h>
Public Member Functions | |
OutlierMass () | |
~OutlierMass () | |
Protected Member Functions | |
void | doComputation (PFTauDiscriminantManager *input, std::vector< double > &result) |
Definition at line 206 of file Discriminants.h.
PFTauDiscriminants::OutlierMass::OutlierMass | ( | ) | [inline] |
Definition at line 208 of file Discriminants.h.
:DiscriminantBase<double>("OutlierMass", "D", true, false, 0.0){};
PFTauDiscriminants::OutlierMass::~OutlierMass | ( | ) | [inline] |
Definition at line 209 of file Discriminants.h.
{};
void PFTauDiscriminants::OutlierMass::doComputation | ( | PFTauDiscriminantManager * | input, |
std::vector< double > & | result | ||
) | [protected, virtual] |
Implements PFTauDiscriminants::DiscriminantBase< double >.
Definition at line 297 of file Discriminants.cc.
References PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), and reco::Candidate::p4().
{ LorentzVector totalFourVector; 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) totalFourVector += currentObject->p4(); } result.push_back(totalFourVector.M()); }