#include <TKinemCut.h>
Public Member Functions | |
TKinemCut () | |
~TKinemCut () | |
double | DeltaTheta () |
double | DeltaPhi () |
double | PAverage () |
double | PCross () |
double | EMin () |
double | CosPsi () |
double | AverageThetaMin () |
double | AverageThetaMax () |
double | ThetaMin () |
double | ThetaMax () |
double | ThetaMinM () |
double | ThetaMaxM () |
double | ThetaMinP () |
double | ThetaMaxP () |
void | DeltaTheta (const double &x) |
void | DeltaPhi (const double &x) |
void | PAverage (const double &x) |
void | PCross (const double &x) |
void | EMin (const double &x) |
void | CosPsi (const double &x) |
void | AverageTheta (const double &x) |
void | AverageThetaMin (const double &x) |
void | AverageThetaMax (const double &x) |
void | ThetaMinM (const double &x) |
void | ThetaMinP (const double &x) |
void | ThetaRangeM (const double &th_min, const double &th_max) |
void | ThetaRangeP (const double &th_min, const double &th_max) |
void | Init () |
void | Default () |
void | Print () |
Protected Attributes | |
double | fDeltaTheta |
double | fDeltaPhi |
double | fPAverage |
double | fPCross |
double | fEMin |
double | fPAverageAbs |
double | fPCrossAbs |
double | fEMinAbs |
double | fCosPsi |
double | fAverageThetaMin |
double | fAverageThetaMax |
double | fThetaMin |
double | fThetaMax |
double | fThetaMinMinus |
double | fThetaMaxMinus |
double | fThetaMinPlus |
double | fThetaMaxPlus |
Definition at line 8 of file TKinemCut.h.
TKinemCut::TKinemCut | ( | ) |
Definition at line 4 of file TKinemCut.C.
References fAverageThetaMax, fAverageThetaMin, fCosPsi, fDeltaPhi, fDeltaTheta, fEMin, fEMinAbs, fPAverage, fPAverageAbs, fPCross, fPCrossAbs, fThetaMinMinus, fThetaMinPlus, gConst, TConstants::Pi(), and std.
00004 { 00005 using namespace std; 00006 fDeltaTheta = -1.; 00007 fDeltaPhi = -1.; 00008 fPAverage = -1.; 00009 fPCross = -1.; 00010 fEMin = -1.; 00011 fPAverageAbs= -1.; 00012 fPCrossAbs = -1.; 00013 fEMinAbs = -1.; 00014 fCosPsi = -2.; 00015 fAverageThetaMin = -1.; 00016 fAverageThetaMax = gConst->Pi() + 1.; 00017 fThetaMinMinus = -1.; 00018 fThetaMinPlus = -1.; 00019 // cout<<fPAverage<<" "<<fPAverageAbs<<endl; 00020 }
TKinemCut::~TKinemCut | ( | ) | [inline] |
void TKinemCut::AverageTheta | ( | const double & | x | ) | [inline] |
Definition at line 51 of file TKinemCut.h.
References fAverageThetaMax, fAverageThetaMin, gConst, and TConstants::Pi().
Referenced by GetOption(), init_prime_gen_(), and Mcgpj::initialize().
00051 { 00052 fAverageThetaMin = x; 00053 fAverageThetaMax = gConst->Pi()-x; 00054 }
void TKinemCut::AverageThetaMax | ( | const double & | x | ) | [inline] |
Definition at line 56 of file TKinemCut.h.
References fAverageThetaMax.
00056 { fAverageThetaMax = x;}
double TKinemCut::AverageThetaMax | ( | ) | [inline] |
Definition at line 37 of file TKinemCut.h.
References fAverageThetaMax.
Referenced by TEvent::Select(), and TEvent::Selectgg().
00037 {return fAverageThetaMax;}
void TKinemCut::AverageThetaMin | ( | const double & | x | ) | [inline] |
Definition at line 55 of file TKinemCut.h.
References fAverageThetaMin.
00055 { fAverageThetaMin = x;}
double TKinemCut::AverageThetaMin | ( | ) | [inline] |
Definition at line 36 of file TKinemCut.h.
References fAverageThetaMin.
Referenced by TRadCor::Init(), main(), and TEvent::Selectgg().
00036 {return fAverageThetaMin;}
void TKinemCut::CosPsi | ( | const double & | x | ) | [inline] |
double TKinemCut::CosPsi | ( | ) | [inline] |
Definition at line 35 of file TKinemCut.h.
References fCosPsi.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), TEvent::Select(), and TEvent::Selectgg().
00035 {return fCosPsi;}
void TKinemCut::Default | ( | ) |
Definition at line 22 of file TKinemCut.C.
References fAverageThetaMax, fAverageThetaMin, fCosPsi, fDeltaPhi, fDeltaTheta, fEMinAbs, fPAverageAbs, fPCrossAbs, gConst, and TConstants::Pi().
00022 { 00023 fDeltaTheta = 0.25; 00024 fDeltaPhi = 0.15; 00025 fPAverageAbs = 90.; 00026 fPCrossAbs = 90.; 00027 fEMinAbs = 50.; 00028 fCosPsi = 1.; 00029 fAverageThetaMin = 1.1; 00030 fAverageThetaMax = gConst->Pi() - 1.1; 00031 }
void TKinemCut::DeltaPhi | ( | const double & | x | ) | [inline] |
double TKinemCut::DeltaPhi | ( | ) | [inline] |
Definition at line 31 of file TKinemCut.h.
References fDeltaPhi.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), TEvent::Select(), and TEvent::Selectgg().
00031 {return fDeltaPhi;}
void TKinemCut::DeltaTheta | ( | const double & | x | ) | [inline] |
double TKinemCut::DeltaTheta | ( | ) | [inline] |
Definition at line 30 of file TKinemCut.h.
References fDeltaTheta.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), TEvent::Select(), and TEvent::Selectgg().
00030 {return fDeltaTheta;}
void TKinemCut::EMin | ( | const double & | x | ) | [inline] |
double TKinemCut::EMin | ( | ) | [inline] |
Definition at line 34 of file TKinemCut.h.
References fEMin.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), and TEvent::Select().
00034 {return fEMin;}
void TKinemCut::Init | ( | ) |
Definition at line 33 of file TKinemCut.C.
References fAverageThetaMax, fAverageThetaMin, fCosPsi, fDeltaPhi, fDeltaTheta, fEMin, fEMinAbs, fPAverage, fPAverageAbs, fPCross, fPCrossAbs, fThetaMax, fThetaMin, fThetaMinMinus, fThetaMinPlus, gConst, TRadGlobal::Get_E(), TRadGlobal::Get_ThetaMin(), gGlobal, TConstants::Pi(), ThetaMinM(), and ThetaMinP().
Referenced by GetOption(), init_prime_gen_(), and Mcgpj::initialize().
00033 { 00034 double E = gGlobal->Get_E(); 00035 if(0>E) 00036 throw std::logic_error("Energy is not defined!"); 00037 00038 if(0>fDeltaTheta) 00039 throw std::logic_error("Delta Theta is not defined!"); 00040 00041 if(0>fDeltaPhi) 00042 throw std::logic_error("Delta Phi is not defined!"); 00043 00044 if(0>fPAverage) 00045 if(0>fPAverageAbs) 00046 throw std::logic_error("Average momentum of final particle is not defined!"); 00047 else 00048 fPAverage = fPAverageAbs/E; 00049 00050 if(0>fPCross) 00051 if(0>fPCrossAbs) 00052 throw std::logic_error("Cross momentum for each final particle is not defined!"); 00053 else 00054 fPCross = fPCrossAbs/E; 00055 00056 if(0>fEMin) 00057 if(0>fEMinAbs) 00058 throw std::logic_error("Minumum final particle energy is not defined!"); 00059 else 00060 fEMin = fEMinAbs/E; 00061 00062 if(-1>fCosPsi) 00063 throw std::logic_error("Space angle between final particles is not defined!"); 00064 00065 if(0>fAverageThetaMin || gConst->Pi() < fAverageThetaMax ) 00066 throw std::logic_error("Average angle of final particles is not defined!"); 00067 00068 fThetaMin = gGlobal->Get_ThetaMin(); 00069 fThetaMax = gConst->Pi() - gGlobal->Get_ThetaMin(); 00070 if(0>fThetaMin || gConst->Pi() < fThetaMax ) 00071 throw std::logic_error("ThetaMin is not defined!"); 00072 00073 if(fThetaMinMinus<0) 00074 ThetaMinM(fThetaMin); 00075 00076 if(fThetaMinPlus<0) 00077 ThetaMinP(fThetaMin); 00078 }
void TKinemCut::PAverage | ( | const double & | x | ) | [inline] |
double TKinemCut::PAverage | ( | ) | [inline] |
Definition at line 32 of file TKinemCut.h.
References fPAverage.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), and TEvent::Select().
00032 {return fPAverage;}
void TKinemCut::PCross | ( | const double & | x | ) | [inline] |
double TKinemCut::PCross | ( | ) | [inline] |
Definition at line 33 of file TKinemCut.h.
References fPCross.
Referenced by GetOption(), init_prime_gen_(), Mcgpj::initialize(), and TEvent::Select().
00033 {return fPCross;}
void TKinemCut::Print | ( | ) |
Definition at line 80 of file TKinemCut.C.
References fAverageThetaMin, fCosPsi, fDeltaPhi, fDeltaTheta, fEMin, fPAverage, fPCross, fThetaMaxMinus, fThetaMaxPlus, fThetaMinMinus, fThetaMinPlus, TRadGlobal::Get_E(), gGlobal, and std.
Referenced by GetOption(), init_prime_gen_(), and Mcgpj::initialize().
00080 { 00081 using namespace std; 00082 cout 00083 <<"Delta Theta = "<<fDeltaTheta<<" rad"<<endl 00084 <<"Delta Phi = "<<fDeltaPhi<<" rad"<<endl 00085 <<"Average Momentum = "<<fPAverage*gGlobal->Get_E()<<" MeV"<<endl 00086 <<"Cross Momentum = "<<fPCross*gGlobal->Get_E()<<" MeV"<<endl 00087 <<"Minimum Energy = "<<fEMin*gGlobal->Get_E()<<" MeV"<<endl 00088 <<"Cosine of Psi = "<<fCosPsi<<endl 00089 <<"Average Theta = "<<fAverageThetaMin<<" rad"<<endl 00090 <<"ThetaRangeMinus = from "<<fThetaMinMinus<<" to "<<fThetaMaxMinus<<" rad"<<endl 00091 <<"ThetaRangePlus = from "<<fThetaMinPlus<<" to "<<fThetaMaxPlus<<" rad"<<endl 00092 <<flush; 00093 }
double TKinemCut::ThetaMax | ( | ) | [inline] |
double TKinemCut::ThetaMaxM | ( | ) | [inline] |
Definition at line 41 of file TKinemCut.h.
References fThetaMaxMinus.
Referenced by TEPCrossPart::Init(), and TEvent::Select().
00041 {return fThetaMaxMinus;}
double TKinemCut::ThetaMaxP | ( | ) | [inline] |
Definition at line 43 of file TKinemCut.h.
References fThetaMaxPlus.
Referenced by TEvent::Select().
00043 {return fThetaMaxPlus;}
double TKinemCut::ThetaMin | ( | ) | [inline] |
Definition at line 38 of file TKinemCut.h.
References fThetaMin.
Referenced by TRadCor::SetSpecialCase().
00038 {return fThetaMin;}
void TKinemCut::ThetaMinM | ( | const double & | x | ) | [inline] |
Definition at line 57 of file TKinemCut.h.
References fThetaMaxMinus, fThetaMinMinus, gConst, and TConstants::Pi().
00057 {fThetaMinMinus = x; fThetaMaxMinus = gConst->Pi()-x;}
double TKinemCut::ThetaMinM | ( | ) | [inline] |
Definition at line 40 of file TKinemCut.h.
References fThetaMinMinus.
Referenced by Init(), TEPCrossPart::Init(), init_prime_gen_(), Mcgpj::initialize(), and TEvent::Select().
00040 {return fThetaMinMinus;}
void TKinemCut::ThetaMinP | ( | const double & | x | ) | [inline] |
Definition at line 58 of file TKinemCut.h.
References fThetaMaxPlus, fThetaMinPlus, gConst, and TConstants::Pi().
00058 {fThetaMinPlus = x; fThetaMaxPlus = gConst->Pi()-x;}
double TKinemCut::ThetaMinP | ( | ) | [inline] |
Definition at line 42 of file TKinemCut.h.
References fThetaMinPlus.
Referenced by Init(), init_prime_gen_(), Mcgpj::initialize(), and TEvent::Select().
00042 {return fThetaMinPlus;}
void TKinemCut::ThetaRangeM | ( | const double & | th_min, | |
const double & | th_max | |||
) | [inline] |
Definition at line 59 of file TKinemCut.h.
References fThetaMaxMinus, and fThetaMinMinus.
Referenced by GetOption().
00059 { 00060 fThetaMinMinus = th_min; 00061 fThetaMaxMinus = th_max; 00062 }
void TKinemCut::ThetaRangeP | ( | const double & | th_min, | |
const double & | th_max | |||
) | [inline] |
Definition at line 63 of file TKinemCut.h.
References fThetaMaxPlus, and fThetaMinPlus.
Referenced by GetOption().
00063 { 00064 fThetaMinPlus = th_min; 00065 fThetaMaxPlus = th_max; 00066 }
double TKinemCut::fAverageThetaMax [protected] |
Definition at line 20 of file TKinemCut.h.
Referenced by AverageTheta(), AverageThetaMax(), Default(), Init(), and TKinemCut().
double TKinemCut::fAverageThetaMin [protected] |
Definition at line 19 of file TKinemCut.h.
Referenced by AverageTheta(), AverageThetaMin(), Default(), Init(), Print(), and TKinemCut().
double TKinemCut::fCosPsi [protected] |
Definition at line 18 of file TKinemCut.h.
Referenced by CosPsi(), Default(), Init(), Print(), and TKinemCut().
double TKinemCut::fDeltaPhi [protected] |
Definition at line 11 of file TKinemCut.h.
Referenced by Default(), DeltaPhi(), Init(), Print(), and TKinemCut().
double TKinemCut::fDeltaTheta [protected] |
Definition at line 10 of file TKinemCut.h.
Referenced by Default(), DeltaTheta(), Init(), Print(), and TKinemCut().
double TKinemCut::fEMin [protected] |
double TKinemCut::fEMinAbs [protected] |
Definition at line 17 of file TKinemCut.h.
Referenced by Default(), EMin(), Init(), and TKinemCut().
double TKinemCut::fPAverage [protected] |
Definition at line 12 of file TKinemCut.h.
Referenced by Init(), PAverage(), Print(), and TKinemCut().
double TKinemCut::fPAverageAbs [protected] |
Definition at line 15 of file TKinemCut.h.
Referenced by Default(), Init(), PAverage(), and TKinemCut().
double TKinemCut::fPCross [protected] |
Definition at line 13 of file TKinemCut.h.
Referenced by Init(), PCross(), Print(), and TKinemCut().
double TKinemCut::fPCrossAbs [protected] |
Definition at line 16 of file TKinemCut.h.
Referenced by Default(), Init(), PCross(), and TKinemCut().
double TKinemCut::fThetaMax [protected] |
double TKinemCut::fThetaMaxMinus [protected] |
Definition at line 24 of file TKinemCut.h.
Referenced by Print(), ThetaMaxM(), ThetaMinM(), and ThetaRangeM().
double TKinemCut::fThetaMaxPlus [protected] |
Definition at line 26 of file TKinemCut.h.
Referenced by Print(), ThetaMaxP(), ThetaMinP(), and ThetaRangeP().
double TKinemCut::fThetaMin [protected] |
double TKinemCut::fThetaMinMinus [protected] |
Definition at line 23 of file TKinemCut.h.
Referenced by Init(), Print(), ThetaMinM(), ThetaRangeM(), and TKinemCut().
double TKinemCut::fThetaMinPlus [protected] |
Definition at line 25 of file TKinemCut.h.
Referenced by Init(), Print(), ThetaMinP(), ThetaRangeP(), and TKinemCut().