CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PFTauDiscriminants::OutlierN Class Reference

#include <Discriminants.h>

Inheritance diagram for PFTauDiscriminants::OutlierN:
PFTauDiscriminants::DiscriminantBase< int > PFTauDiscriminants::Discriminant

List of all members.

Public Member Functions

 OutlierN ()
 ~OutlierN ()

Protected Member Functions

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

Detailed Description

Definition at line 52 of file Discriminants.h.


Constructor & Destructor Documentation

PFTauDiscriminants::OutlierN::OutlierN ( ) [inline]

Definition at line 54 of file Discriminants.h.

:DiscriminantBase<int>("OutlierN", "I", true, false, -1){};
PFTauDiscriminants::OutlierN::~OutlierN ( ) [inline]

Definition at line 55 of file Discriminants.h.

{};

Member Function Documentation

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

Implements PFTauDiscriminants::DiscriminantBase< int >.

Definition at line 33 of file Discriminants.cc.

References PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), and convertSQLitetoXML_cfg::output.

{
   const std::vector<const reco::Candidate*>& theOutlierObjects = input->outlierObjectsSortedByPt();
   size_t output = theOutlierObjects.size();
   // convert to int for TTree
   result.push_back(static_cast<int>(output));
}