Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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
Int_t qtot
Float_t mcnn_var1
Float_t mcnn_var2
TClonesArray * bmatch

Static Private Attributes

TClonesArray * fgBmatch = 0


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   qtot(mv->qtot),
00028   mcnn_var1(mv->mcnn_var1),
00029   mcnn_var2(mv->mcnn_var2),
00030   bmatch(mv->bmatch)
00031 {
00032 }

MCNNVars::~MCNNVars  )  [virtual]
 

Definition at line 34 of file MCNNVars.cxx.

00035 {
00036   //Clear();
00037   //if(bmatch) delete bmatch;
00038 }


Member Function Documentation

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

Definition at line 40 of file MCNNVars.cxx.

References bmatch.

Referenced by Reset().

00041 {
00042   if(bmatch) {bmatch->Clear("C");}
00043 }

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

Definition at line 67 of file MCNNVars.cxx.

00068 {
00069 }

void MCNNVars::Reset  ) 
 

Definition at line 45 of file MCNNVars.cxx.

References bestmatches, bmatch, Clear(), fgBmatch, fracCC, fracCCy, mcnn_var1, mcnn_var2, mcpresel, meanfracQmatched, meanPlane, meanU, meanV, qtot, and ymean.

Referenced by NueRecord::Reset().

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


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(), MCNNpid::GetMCNNpid(), NueAnaReader::GetMeanFracQMatched(), NueStandard::GetPIDValue(), NueAnaReader::GetWeightedfracCC(), NueAnaReader::GetWeightedfracCCy(), NueAnaReader::GetWeightedMeanFracQMatched(), NueAnaReader::GetWeightedymean(), NueAnaReader::Getymean(), and Reset().

TClonesArray* MCNNVars::bmatch
 

Definition at line 36 of file MCNNVars.h.

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

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

Definition at line 9 of file MCNNVars.cxx.

Referenced by Reset().

Float_t MCNNVars::fracCC
 

Definition at line 28 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), NueMiniAna::FillRecord(), PDFReader::GetProb_f_bg(), PDFReader::GetProb_f_sig(), 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 33 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 34 of file MCNNVars.h.

Referenced by MCNNFiller::FillMCNN(), NueMiniAna::FillMini(), MarkPreselection(), and 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(), PDFReader::GetProb_mfqm_bg(), PDFReader::GetProb_mfqm_sig(), 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().

Int_t MCNNVars::qtot
 

Definition at line 32 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(), PDFReader::GetProb_y_bg(), PDFReader::GetProb_y_sig(), and Reset().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:31 2010 for loon by  doxygen 1.3.9.1