NCExtraction Class Reference

Base class for the various extractions. More...

#include <NCExtraction.h>

Inheritance diagram for NCExtraction:
NCExtractionANN NCExtractionCuts NCExtractionCutswkNN NCExtractionkNN NCExtractionMDA NCExtractionPDF NCExtractionANNFar NCExtractionANNNear

List of all members.

Public Member Functions

 NCExtraction (NCAnalysisCuts *cuts, const Registry &r)
virtual ~NCExtraction ()
virtual void FillAnalysisInfo (NCEventInfo &evtInfo, int beamType)
 Fill the analysisInfo member of evtInfo based on the other members and the beamType (in whatever convention that is).

Protected Member Functions

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

Protected Attributes

NCAnalysisCutsfCuts
ReleaseType::Release_t fReleaseType
 reco/MC version to use for training files, if relevant

Detailed Description

Base class for the various extractions.

Definition at line 20 of file NCExtraction.h.


Constructor & Destructor Documentation

NCExtraction::NCExtraction ( NCAnalysisCuts cuts,
const Registry r 
)

Definition at line 22 of file NCExtraction.cxx.

References fCuts, fReleaseType, Registry::Get(), and ReleaseType::kUnknown.

00024 {
00025   fCuts = cuts;
00026   fReleaseType=ReleaseType::kUnknown;
00027   int tmpi;
00028   if (r.Get("MCVersion", tmpi)) fReleaseType=(ReleaseType::Release_t)tmpi;
00029 }

virtual NCExtraction::~NCExtraction (  )  [inline, virtual]

Definition at line 26 of file NCExtraction.h.

00026 {};


Member Function Documentation

void NCExtraction::FillAnalysisInfo ( NCEventInfo evtInfo,
int  beamType 
) [virtual]

Fill the analysisInfo member of evtInfo based on the other members and the beamType (in whatever convention that is).

The default implementation fills separationParameter with the value of GetIdProbability(), separationParameterCut with the value of GetCutPosition(), and sets isCC to 1 if separationParameter >= separationParameterCut, and isNC to 1 otherwise

Reimplemented in NCExtractionCuts, and NCExtractionCutswkNN.

Definition at line 32 of file NCExtraction.cxx.

References NCEventInfo::analysis, GetCutPosition(), GetIdProbability(), ANtpAnalysisInfo::isCC, ANtpAnalysisInfo::isNC, NCType::kCC, NCType::kNC, NCType::kUnknown, ANtpAnalysisInfo::Reset(), ANtpAnalysisInfo::separationParameter, and ANtpAnalysisInfo::separationParameterCut.

Referenced by MicroDSTMaker::ExtractNCCC().

00034 {
00035   ANtpAnalysisInfo* ana=evtInfo.analysis;
00036   double separationParameter=GetIdProbability(evtInfo, beamType);
00037   double separationCut=GetCutPosition();
00038 
00039   int interactionType = NCType::kUnknown;
00040   if(separationParameter < separationCut)
00041     interactionType = NCType::kNC;
00042   else if(separationParameter >= separationCut)
00043     interactionType = NCType::kCC;
00044 
00045 
00046   //reset the values
00047   ana->Reset();
00048 
00049   ana->separationParameterCut = separationCut;
00050   ana->separationParameter = separationParameter;
00051   ana->isNC = 0;
00052   ana->isCC = 0;
00053   if(interactionType == NCType::kNC) ana->isNC = 1;
00054   else if(interactionType == NCType::kCC) ana->isCC = 1;
00055 }

virtual double NCExtraction::GetCutPosition (  )  const [protected, pure virtual]

Where to cut on the IdProbability.

Implemented in NCExtractionANN, NCExtractionCuts, NCExtractionCutswkNN, NCExtractionkNN, NCExtractionMDA, and NCExtractionPDF.

Referenced by FillAnalysisInfo().

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

The probability that this event is CC.

Implemented in NCExtractionANN, NCExtractionCuts, NCExtractionCutswkNN, NCExtractionkNN, NCExtractionMDA, and NCExtractionPDF.

Referenced by FillAnalysisInfo().


Member Data Documentation

reco/MC version to use for training files, if relevant

Definition at line 49 of file NCExtraction.h.

Referenced by NCExtraction(), NCExtractionMDA::ReadCalibInfoFromFile(), and NCExtractionCuts::ReadPDFs().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1