NCExtractionkNN Class Reference

k-Nearest Neighbour extraction More...

#include <NCExtractionkNN.h>

Inheritance diagram for NCExtractionkNN:
NCExtraction

List of all members.

Public Member Functions

 NCExtractionkNN (NCAnalysisCuts *c, const Registry &r)

Protected Member Functions

double GetIdProbability (NCEventInfo &evtInfo, int beamType)
 The probability that this event is CC.
virtual double GetCutPosition () const
 Where to cut on the IdProbability.

Detailed Description

k-Nearest Neighbour extraction

Definition at line 14 of file NCExtractionkNN.h.


Constructor & Destructor Documentation

NCExtractionkNN::NCExtractionkNN ( NCAnalysisCuts c,
const Registry r 
)

Definition at line 24 of file NCExtractionkNN.cxx.

00025 : NCExtraction(cuts, r)
00026 {
00027   // No-op
00028 }


Member Function Documentation

virtual double NCExtractionkNN::GetCutPosition (  )  const [inline, protected, virtual]

Where to cut on the IdProbability.

Implements NCExtraction.

Definition at line 21 of file NCExtractionkNN.h.

00021 {return 0.3;}

double NCExtractionkNN::GetIdProbability ( NCEventInfo evtInfo,
int  beamType 
) [protected, virtual]

The probability that this event is CC.

Implements NCExtraction.

Definition at line 30 of file NCExtractionkNN.cxx.

References MuELoss::e, ANtpTrackInfoNC::kNN, and NCEventInfo::track.

00031 {
00032   return evtInfo.track->kNN < 0 ? 1e-3 : evtInfo.track->kNN;
00033 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1