CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PFTauDiscriminants::ChargedOutlierPt Class Reference

#include <Discriminants.h>

Inheritance diagram for PFTauDiscriminants::ChargedOutlierPt:
PFTauDiscriminants::DiscriminantBase< double > PFTauDiscriminants::Discriminant

List of all members.

Public Member Functions

 ChargedOutlierPt ()
 ~ChargedOutlierPt ()

Protected Member Functions

void doComputation (PFTauDiscriminantManager *input, std::vector< double > &result)

Detailed Description

Definition at line 222 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::ChargedOutlierPt::ChargedOutlierPt ( ) [inline]

Definition at line 224 of file Discriminants.h.

:DiscriminantBase<double>("ChargedOutlierPt", "vector<double>", false, true, 0.0){};
PFTauDiscriminants::ChargedOutlierPt::~ChargedOutlierPt ( ) [inline]

Definition at line 225 of file Discriminants.h.

{};

Member Function Documentation

void PFTauDiscriminants::ChargedOutlierPt::doComputation ( PFTauDiscriminantManager input,
std::vector< double > &  result 
) [protected, virtual]

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 329 of file Discriminants.cc.

References reco::Candidate::charge(), PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), and reco::Candidate::pt().

{
   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 && currentObject->charge())
         result.push_back(currentObject->pt());
   }
}