#include <NCExtraction.h>
Inheritance diagram for NCExtraction:

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 | |
| NCAnalysisCuts * | fCuts |
| ReleaseType::Release_t | fReleaseType |
| reco/MC version to use for training files, if relevant | |
Definition at line 20 of file NCExtraction.h.
|
||||||||||||
|
Definition at line 22 of file NCExtraction.cxx. References fCuts, fReleaseType, and Registry::Get(). 00024 {
00025 fCuts = cuts;
00026 fReleaseType=ReleaseType::kUnknown;
00027 int tmpi;
00028 if (r.Get("MCVersion", tmpi)) fReleaseType=(ReleaseType::Release_t)tmpi;
00029 }
|
|
|
Definition at line 26 of file NCExtraction.h. 00026 {};
|
|
||||||||||||
|
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. Definition at line 32 of file NCExtraction.cxx. References NCEventInfo::analysis, GetCutPosition(), GetIdProbability(), ANtpAnalysisInfo::isCC, ANtpAnalysisInfo::isNC, 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 }
|
|
|
Where to cut on the IdProbability.
Implemented in NCExtractionANN, NCExtractionCuts, NCExtractionkNN, NCExtractionMDA, and NCExtractionPDF. Referenced by FillAnalysisInfo(). |
|
||||||||||||
|
The probability that this event is CC.
Implemented in NCExtractionANN, NCExtractionCuts, NCExtractionkNN, NCExtractionMDA, and NCExtractionPDF. Referenced by FillAnalysisInfo(). |
|
|
Definition at line 46 of file NCExtraction.h. Referenced by NCExtraction(). |
|
|
reco/MC version to use for training files, if relevant
Definition at line 49 of file NCExtraction.h. Referenced by NCExtraction(). |
1.3.9.1