Params Class Reference

#include <Params.h>

List of all members.

Public Member Functions

 Params ()
 Params (const char *name)
 ~Params ()
Int_t WantIsFid (Int_t nunubar)
Int_t WantPittTrkQual (Int_t nunubar)
Float_t FitSigCut (Int_t nunubar)
Float_t DavidPIDCut (Int_t nunubar)
Float_t NuBarPIDCut (Int_t nunubar)

Private Attributes

Int_t IsFid [2]
Int_t PittTrkQual [2]
Float_t FitSig [2]
Float_t DavidPID [2]
Float_t NuBarPID [2]

Detailed Description

Definition at line 4 of file Params.h.


Constructor & Destructor Documentation

Params::Params (  ) 

Definition at line 18 of file Params.cxx.

References DavidPID, FitSig, IsFid, NuBarPID, and PittTrkQual.

00018               {
00019 
00020   //1st entry is neutrinos and second is antineutrinos
00021   IsFid[0]=1;          IsFid[1]=1;
00022   PittTrkQual[0]=1;    PittTrkQual[1]=1;
00023   FitSig[0]=0.1;       FitSig[1]=0.1;
00024   DavidPID[0]=0.1;     DavidPID[1]=-2;
00025   NuBarPID[0]=-0.5;    NuBarPID[1]=0.8;
00026 
00027 }

Params::Params ( const char *  name  ) 

Definition at line 29 of file Params.cxx.

References DavidPID, FitSig, IsFid, Msg::kWarning, MSG, NuBarPID, and PittTrkQual.

00029                               {
00030 
00031   //Default values
00032   //1st entry is neutrinos and second is antineutrinos
00033   IsFid[0]=1;          IsFid[1]=1;
00034   PittTrkQual[0]=1;    PittTrkQual[1]=1;
00035   FitSig[0]=0.1;       FitSig[1]=0.1;
00036   DavidPID[0]=0.1;     DavidPID[1]=-2;
00037   NuBarPID[0]=-0.5;    NuBarPID[1]=0.8;
00038   
00039   ifstream file_sel (name);
00040   string line;
00041   
00042   if(file_sel.is_open()){
00043     while( !file_sel.eof() ){
00044       getline(file_sel,line);
00045       cout << line << endl;
00046     }
00047     file_sel.close();
00048   } else {
00049     MSG("NuBarPID",Msg::kWarning) << "Could not open file" << endl;
00050   }
00051 
00052 }

Params::~Params (  ) 

Definition at line 54 of file Params.cxx.

00054 {}


Member Function Documentation

Float_t Params::DavidPIDCut ( Int_t  nunubar  ) 

Definition at line 91 of file Params.cxx.

References DavidPID, Msg::kWarning, and MSG.

00091                                         {
00092 
00093   if(nunubar==0 || nunubar==1){
00094     return DavidPID[nunubar];
00095   }else {
00096     MSG("NuBarPID",Msg::kWarning) << "Entry must be 0 (neutrino selection) or 1 (antineutrino selection)" << endl;
00097     return -100;
00098   }
00099 }

Float_t Params::FitSigCut ( Int_t  nunubar  ) 

Definition at line 80 of file Params.cxx.

References FitSig, Msg::kWarning, and MSG.

00080                                       {
00081 
00082   if(nunubar==0 || nunubar==1){
00083     return FitSig[nunubar];
00084   }else {
00085     MSG("NuBarPID",Msg::kWarning) << "Entry must be 0 (neutrino selection) or 1 (antineutrino selection)" << endl;
00086     return -100;
00087   }
00088 }

Float_t Params::NuBarPIDCut ( Int_t  nunubar  ) 

Definition at line 102 of file Params.cxx.

References Msg::kWarning, MSG, and NuBarPID.

00102                                         {
00103 
00104   if(nunubar==0 || nunubar==1){
00105     return NuBarPID[nunubar];
00106   }else {
00107     MSG("NuBarPID",Msg::kWarning) << "Entry must be 0 (neutrino selection) or 1 (antineutrino selection)" << endl;
00108     return -100;
00109   }
00110 }

Int_t Params::WantIsFid ( Int_t  nunubar  ) 

Definition at line 58 of file Params.cxx.

References IsFid, Msg::kWarning, and MSG.

00058                                     {
00059 
00060   if(nunubar==0 || nunubar==1){
00061     return IsFid[nunubar];
00062   }else {
00063     MSG("NuBarPID",Msg::kWarning) << "Entry must be 0 (neutrino selection) or 1 (antineutrino selection)" << endl;
00064     return -1;
00065   }
00066 }

Int_t Params::WantPittTrkQual ( Int_t  nunubar  ) 

Definition at line 69 of file Params.cxx.

References Msg::kWarning, MSG, and PittTrkQual.

00069                                           {
00070 
00071   if(nunubar==0 || nunubar==1){
00072     return PittTrkQual[nunubar];
00073   }else {
00074     MSG("NuBarPID",Msg::kWarning) << "Entry must be 0 (neutrino selection) or 1 (antineutrino selection)" << endl;
00075     return -1;
00076   }
00077 }


Member Data Documentation

Float_t Params::DavidPID[2] [private]

Definition at line 20 of file Params.h.

Referenced by DavidPIDCut(), and Params().

Float_t Params::FitSig[2] [private]

Definition at line 19 of file Params.h.

Referenced by FitSigCut(), and Params().

Int_t Params::IsFid[2] [private]

Definition at line 17 of file Params.h.

Referenced by Params(), and WantIsFid().

Float_t Params::NuBarPID[2] [private]

Definition at line 21 of file Params.h.

Referenced by NuBarPIDCut(), and Params().

Int_t Params::PittTrkQual[2] [private]

Definition at line 18 of file Params.h.

Referenced by Params(), and WantPittTrkQual().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1