CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PFTauDiscriminants::MainTrackPt Class Reference

#include <Discriminants.h>

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

List of all members.

Public Member Functions

 MainTrackPt ()
 ~MainTrackPt ()

Protected Member Functions

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

Detailed Description

Definition at line 77 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::MainTrackPt::MainTrackPt ( ) [inline]

Definition at line 79 of file Discriminants.h.

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

Definition at line 80 of file Discriminants.h.

{};

Member Function Documentation

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

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 54 of file Discriminants.cc.

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

{
   const reco::Candidate* theMainTrack = input->mainTrack();
   if (theMainTrack)
      result.push_back(theMainTrack->pt());
}