CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PFTauDiscriminants::MainTrackAngle Class Reference

#include <Discriminants.h>

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

List of all members.

Public Member Functions

 MainTrackAngle ()
 ~MainTrackAngle ()

Protected Member Functions

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

Detailed Description

Definition at line 85 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::MainTrackAngle::MainTrackAngle ( ) [inline]

Definition at line 87 of file Discriminants.h.

:DiscriminantBase<double>("MainTrackAngle", "D", true, false, -1){};
PFTauDiscriminants::MainTrackAngle::~MainTrackAngle ( ) [inline]

Definition at line 88 of file Discriminants.h.

{};

Member Function Documentation

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

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 62 of file Discriminants.cc.

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

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

   const reco::Candidate* theMainTrack = input->mainTrack();

   DeltaR<math::XYZVector> myDRComputer;

   if (theMainTrack)
      result.push_back(myDRComputer(theMainTrack->momentum(), signalObjectsAxis));
}