#include <PIDCalculator.h>
Public Member Functions | |
| PIDCalculator () | |
| PIDCalculator (Char_t mode_in[]) | |
| PIDCalculator (const Char_t mode_in[]) | |
| ~PIDCalculator () | |
| Double_t | GetNuBarPID (Double_t qpeqp_in, Int_t nplanes_in, Double_t recoy_in, Double_t cosz_in, LoadPDF *lpdf) |
Private Attributes | |
| Bool_t | DoQPEQP |
| Bool_t | DoPLANES |
| Bool_t | DoY |
| Bool_t | DoCOSZ |
|
|
Definition at line 15 of file PIDCalculator.cxx. References DoCOSZ, DoPLANES, DoQPEQP, and DoY. 00015 {
00016
00017 DoQPEQP=true;
00018 DoPLANES=false;
00019 DoY=true;
00020 DoCOSZ=true;
00021
00022 }//end of 1st constructor
|
|
|
Definition at line 24 of file PIDCalculator.cxx. References DoCOSZ, DoPLANES, DoQPEQP, and DoY. 00024 {
00025
00026 string mode=mode_in;
00027
00028 if(mode.find("Q")!=string::npos){
00029 DoQPEQP=true;
00030 }
00031 if(mode.find("P")!=string::npos){
00032 DoPLANES=true;
00033 }
00034 if(mode.find("Y")!=string::npos){
00035 DoY=true;
00036 }
00037 if(mode.find("C")!=string::npos){
00038 DoCOSZ=true;
00039 }
00040
00041 }//end of 2nd constructor
|
|
|
|
|
|
Definition at line 62 of file PIDCalculator.cxx. 00062 {}
|
|
||||||||||||||||||||||||
|
Definition at line 66 of file PIDCalculator.cxx. References DoCOSZ, DoPLANES, DoQPEQP, DoY, LoadPDF::GetProb1_anu(), LoadPDF::GetProb1_nu(), LoadPDF::GetProb2_anu(), LoadPDF::GetProb2_nu(), LoadPDF::GetProb3_anu(), LoadPDF::GetProb3_nu(), LoadPDF::GetProb4_anu(), and LoadPDF::GetProb4_nu(). 00066 {
00067
00068 Double_t prob1_nu = 1. ;
00069 Double_t prob1_anu = 1. ;
00070 Double_t prob2_nu = 1.;
00071 Double_t prob2_anu = 1.;
00072 Double_t prob3_nu = 1.;
00073 Double_t prob3_anu = 1.;
00074 Double_t prob4_nu = 1.;
00075 Double_t prob4_anu = 1.;
00076
00077 if(DoQPEQP==true){
00078 prob1_nu = lpdf->GetProb1_nu(qpeqp_in,nplanes_in);
00079 prob1_anu = lpdf->GetProb1_anu(qpeqp_in,nplanes_in);
00080 }
00081 if(DoPLANES==true){
00082 prob2_nu = lpdf->GetProb2_nu(nplanes_in);
00083 prob2_anu = lpdf->GetProb2_anu(nplanes_in);
00084 }
00085 if(DoY==true){
00086 prob3_nu =lpdf->GetProb3_nu(recoy_in);
00087 prob3_anu = lpdf->GetProb3_anu(recoy_in);
00088 }
00089 if(DoCOSZ==true){
00090 prob4_nu = lpdf->GetProb4_nu(cosz_in);
00091 prob4_anu = lpdf->GetProb4_anu(cosz_in);
00092 }
00093
00094 Double_t probNu = prob1_nu*prob2_nu*prob3_nu*prob4_nu;
00095
00096 Double_t probANu = prob1_anu*prob2_anu*prob3_anu*prob4_anu;
00097
00098 Double_t nubarpid = -(sqrt(-TMath::Log(probANu))-sqrt(-TMath::Log(probNu)));
00099
00100 return nubarpid;
00101
00102 }
|
|
|
Definition at line 19 of file PIDCalculator.h. Referenced by GetNuBarPID(), and PIDCalculator(). |
|
|
Definition at line 17 of file PIDCalculator.h. Referenced by GetNuBarPID(), and PIDCalculator(). |
|
|
Definition at line 16 of file PIDCalculator.h. Referenced by GetNuBarPID(), and PIDCalculator(). |
|
|
Definition at line 18 of file PIDCalculator.h. Referenced by GetNuBarPID(), and PIDCalculator(). |
1.3.9.1