MCNNVars Class Reference

#include <MCNNVars.h>

List of all members.

Public Member Functions

 MCNNVars ()
 MCNNVars (const MCNNVars *nuefw)
virtual ~MCNNVars ()
virtual void Print (Option_t *option="") const
void Reset ()
void Clear (Option_t *option="")

Public Attributes

Int_t bestmatches
Float_t meanU
Float_t meanV
Int_t meanPlane
Float_t meanfracQmatched
Bool_t mcpresel
Float_t fracCC
Float_t fracCCy
Float_t ymean
Float_t ncymean
Float_t ncmeanfracQmatched
Int_t qtot
Float_t mcnn_var1
Float_t mcnn_var2
Float_t mcnn_var3
Float_t mcnn_var4
TClonesArray * bmatch

Static Private Attributes

static TClonesArray * fgBmatch = 0


Detailed Description

Definition at line 10 of file MCNNVars.h.


Constructor & Destructor Documentation

MCNNVars::MCNNVars (  ) 

Definition at line 12 of file MCNNVars.cxx.

00012                    : 
00013     bmatch(0)
00014 {
00015   Reset(); 
00016 }

MCNNVars::MCNNVars ( const MCNNVars nuefw  ) 

Definition at line 18 of file MCNNVars.cxx.

00018                                     :
00019   meanU(mv->meanU),
00020   meanV(mv->meanV),
00021   meanPlane(mv->meanPlane),
00022   meanfracQmatched(mv->meanfracQmatched),
00023   mcpresel(mv->mcpresel),
00024   fracCC(mv->fracCC),
00025   fracCCy(mv->fracCCy),
00026   ymean(mv->ymean),
00027   ncymean(mv->ncymean),
00028   ncmeanfracQmatched(mv->ncmeanfracQmatched),
00029   qtot(mv->qtot),
00030   mcnn_var1(mv->mcnn_var1),
00031   mcnn_var2(mv->mcnn_var2),
00032   mcnn_var3(mv->mcnn_var3),
00033   mcnn_var4(mv->mcnn_var4),
00034   bmatch(mv->bmatch)
00035 {
00036 }

MCNNVars::~MCNNVars (  )  [virtual]

Definition at line 38 of file MCNNVars.cxx.

00039 {
00040   //Clear();
00041   //if(bmatch) delete bmatch;
00042 }


Member Function Documentation

void MCNNVars::Clear ( Option_t *  option = ""  ) 

Definition at line 44 of file MCNNVars.cxx.

References bmatch.

Referenced by Reset().

00045 {
00046   if(bmatch) {bmatch->Clear("C");}
00047 }

void MCNNVars::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 75 of file MCNNVars.cxx.

00076 {
00077 }

void MCNNVars::Reset (  ) 

Definition at line 49 of file MCNNVars.cxx.

References bestmatches, bmatch, Clear(), fgBmatch, fracCC, fracCCy, ANtpDefaultValue::kBool, ANtpDefaultValue::kFloat, ANtpDefaultValue::kInt, mcnn_var1, mcnn_var2, mcnn_var3, mcnn_var4, mcpresel, meanfracQmatched, meanPlane, meanU, meanV, ncmeanfracQmatched, ncymean, qtot, and ymean.

Referenced by NueRecord::Reset().

00050 {
00051   bestmatches = 0; //<-- default value should be 0 so nobody tries to read in an empty TClonesArray of best matches
00052   meanU = ANtpDefVal::kFloat; // <--charge weighted mean U
00053   meanV = ANtpDefVal::kFloat; //<---charge weighted mean V
00054   meanPlane= ANtpDefVal::kInt; //<--- charge weighted mean Plane
00055   meanfracQmatched= ANtpDefVal::kFloat; // <-- mean fractional charge thatwas
00056                             // matched; tells us if event was properly matched to libraries or not.
00057   mcpresel= ANtpDefVal::kBool; // <-- pass library pre-selection?
00058   fracCC= ANtpDefVal::kFloat;  // <-- fraction of best 20 matches that were nue
00059   fracCCy= ANtpDefVal::kFloat; // <-- fraction of best 20 matches that were nue with y<0.5
00060   ymean= ANtpDefVal::kFloat;   // <--mean y of nue matches (among 20 best matches).
00061   ncymean=  ANtpDefVal::kFloat; // <-- mean y of NC matches
00062   ncmeanfracQmatched= ANtpDefVal::kFloat; // <-- mean frac charge of NC matches
00063 
00064   qtot= ANtpDefVal::kInt; //<-- total charge of event (PEs) as calculated in the mcnn.
00065   mcnn_var1= ANtpDefVal::kFloat; //<--- open variable.
00066   mcnn_var2= ANtpDefVal::kFloat; //<-- open variable.
00067   mcnn_var3= ANtpDefVal::kFloat; //<--- open variable.
00068   mcnn_var4= ANtpDefVal::kFloat; //<--- open variable.
00069 
00070   if (!fgBmatch) fgBmatch = new TClonesArray("MCNNBestMatch");
00071   bmatch = fgBmatch;
00072   Clear();
00073 }


Member Data Documentation

Int_t MCNNVars::bestmatches

Definition at line 21 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAnaPID::FillMini(), NueMiniAna::FillMini(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), NueData::FillRecord(), NueAnaReader::GetdlnLmean(), NueAnaReader::GetfracCC(), NueAnaReader::GetfracCCy(), LEMStandard::GetfracCCy(), MCNNpid::GetMCNNpid_value(), NueAnaReader::GetMeanFracQMatched(), LEMStandard::GetMeanFracQMatched(), NueAnaReader::GetNCMeanFracQMatched(), LEMStandard::GetNCMeanFracQMatched(), NueAnaReader::GetNCymean(), LEMStandard::GetNCymean(), NueStandard::GetPIDValue(), NueAnaReader::GetWeightedfracCC(), NueAnaReader::GetWeightedfracCCy(), NueAnaReader::GetWeightedMeanFracQMatched(), NueAnaReader::GetWeightedymean(), NueAnaReader::Getymean(), LEMStandard::Getymean(), and Reset().

TClonesArray* MCNNVars::bmatch

Definition at line 40 of file MCNNVars.h.

Referenced by Clear(), MCNNFiller::FillBestMatches(), NueAnaReader::GetBestMatch(), LEMStandard::GetBestMatch(), and Reset().

TClonesArray * MCNNVars::fgBmatch = 0 [static, private]

Definition at line 43 of file MCNNVars.h.

Referenced by Reset().

Float_t MCNNVars::fracCC

Definition at line 28 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueMiniAna::FillRecord(), and Reset().

Float_t MCNNVars::fracCCy

Definition at line 29 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueModule::PassesBlindingCuts(), and Reset().

Float_t MCNNVars::mcnn_var1

Definition at line 35 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAnaPID::FillMini(), NueMiniAna::FillMini(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), NueData::FillRecord(), NueStandard::GetPIDValue(), Reset(), and NueSystematic::UpdateRecord().

Float_t MCNNVars::mcnn_var2

Definition at line 36 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueStandard::GetPIDValue(), MarkPreselection(), and Reset().

Float_t MCNNVars::mcnn_var3

Definition at line 37 of file MCNNVars.h.

Referenced by Reset().

Float_t MCNNVars::mcnn_var4

Definition at line 38 of file MCNNVars.h.

Referenced by Reset().

Bool_t MCNNVars::mcpresel

Definition at line 27 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), and Reset().

Float_t MCNNVars::meanfracQmatched

Definition at line 25 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueMiniAna::FillRecord(), and Reset().

Int_t MCNNVars::meanPlane

Definition at line 24 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), MarkPreselection(), and Reset().

Float_t MCNNVars::meanU

Definition at line 22 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), MarkPreselection(), and Reset().

Float_t MCNNVars::meanV

Definition at line 23 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), MarkPreselection(), and Reset().

Float_t MCNNVars::ncmeanfracQmatched

Definition at line 32 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), and Reset().

Float_t MCNNVars::ncymean

Definition at line 31 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), and Reset().

Int_t MCNNVars::qtot

Definition at line 34 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), PDFReader::GetProb_q_bg(), PDFReader::GetProb_q_sig(), and Reset().

Float_t MCNNVars::ymean

Definition at line 30 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueMiniAna::FillRecord(), and Reset().


The documentation for this class was generated from the following files:
Generated on Fri Oct 10 22:45:51 2014 for loon by  doxygen 1.4.7