CMS 3D CMS Logo

PFTauDiscriminants::NeutralOutlierAngle Class Reference

#include <RecoTauTag/TauTagTools/interface/Discriminants.h>

Inheritance diagram for PFTauDiscriminants::NeutralOutlierAngle:

PFTauDiscriminants::DiscriminantBase< double > PFTauDiscriminants::Discriminant

List of all members.

Public Member Functions

 NeutralOutlierAngle ()
 ~NeutralOutlierAngle ()

Protected Member Functions

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


Detailed Description

Definition at line 184 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::NeutralOutlierAngle::NeutralOutlierAngle (  )  [inline]

Definition at line 186 of file Discriminants.h.

00186 :DiscriminantBase<double>("NeutralOutlierAngle", "vector<double>", false, true, 0.0){};

PFTauDiscriminants::NeutralOutlierAngle::~NeutralOutlierAngle (  )  [inline]

Definition at line 187 of file Discriminants.h.

00187 {};


Member Function Documentation

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

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 266 of file Discriminants.cc.

References reco::Particle::charge(), PFTauDiscriminants::PFTauDiscriminantManager::getDecayMode(), reco::Particle::momentum(), PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), and edm::Vector< T >::push_back().

00267 {
00268    const vector<const reco::Candidate*>& theoutlierObjects = input->outlierObjectsSortedByPt();
00269    math::XYZVector signalObjectsAxis = input->getDecayMode()->momentum();
00270    DeltaR<math::XYZVector> myDRComputer;
00271    for(vector<const reco::Candidate*>::const_iterator iObject  = theoutlierObjects.begin();
00272          iObject != theoutlierObjects.end();
00273          ++iObject)
00274    {
00275       const reco::Candidate* currentObject = *iObject;
00276       if (currentObject && !currentObject->charge())
00277          result.push_back(myDRComputer(currentObject->momentum(), signalObjectsAxis));
00278    }
00279 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:50:04 2009 for CMSSW by  doxygen 1.5.4