CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PFTauDiscriminants::PiZeroAngle Class Reference

#include <Discriminants.h>

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

List of all members.

Public Member Functions

 PiZeroAngle ()
 ~PiZeroAngle ()

Protected Member Functions

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

Detailed Description

Definition at line 145 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::PiZeroAngle::PiZeroAngle ( ) [inline]

Definition at line 147 of file Discriminants.h.

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

Definition at line 148 of file Discriminants.h.

{};

Member Function Documentation

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

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 185 of file Discriminants.cc.

References reco::Candidate::charge(), PFTauDiscriminants::PFTauDiscriminantManager::getDecayMode(), reco::LeafCandidate::momentum(), reco::Candidate::momentum(), and PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByPt().

{
   const std::vector<const reco::Candidate*>& theSignalObjects = input->signalObjectsSortedByPt();

   math::XYZVector signalObjectsAxis = input->getDecayMode()->momentum();

   DeltaR<math::XYZVector> myDRComputer;

   for(std::vector<const reco::Candidate*>::const_iterator iObject  = theSignalObjects.begin();
         iObject != theSignalObjects.end();
         ++iObject)
   {
      const reco::Candidate* currentObject = *iObject;
      if (!currentObject->charge())
         result.push_back(myDRComputer(currentObject->momentum(), signalObjectsAxis));
   }
}