CbmRoot
|
#include <CbmMuchTest.h>
Classes | |
struct | Cluster |
struct | M_Point |
Public Member Functions | |
CbmMuchTest () | |
Constructor. | |
CbmMuchTest (Int_t nofPoints, Float_t subStep) | |
void | SetNPoints (Int_t nofPoints) |
void | SetXIn (Float_t xIn, Int_t iPoint) |
void | SetYIn (Float_t yIn, Int_t iPoint) |
void | SetXOut (Float_t xOut, Int_t iPoint) |
void | SetYOut (Float_t yOut, Int_t iPoint) |
void | SetSubStep (Int_t iStep) |
void | SetNClusters (Int_t NCl) |
Int_t | GetNPoints () const |
Int_t | GetNSbCenters () const |
void | RebuildPoints () |
void | SetNCl (Int_t nCl, Int_t iCl) |
void | SetXCl (Float_t xCl, Int_t iCl) |
void | SetYCl (Float_t yCl, Int_t iCl) |
void | SetCharge (UInt_t chCl, Int_t iCl) |
void | SetNPads (Int_t nofPads, Int_t iCl) |
void | SetPadInCl (Int_t nPad, Int_t iCl, Int_t iPad) |
void | SetCluster (Int_t nCl, Float_t xCl, Float_t yCl, UInt_t chCl, Int_t nofPads, Int_t iCl) |
void | CalculateEfficiency () |
void | CalculateAccuracy () |
void | MainTesting () |
Float_t | GetMeanAccuracy () const |
Float_t | GetMeanAccuracyForSubCenters () const |
Float_t | GetMeanEfficiency () const |
Float_t | GetMeanEfficiencyForSubCenters () const |
virtual | ~CbmMuchTest () |
Destructor. | |
Private Member Functions | |
CbmMuchTest (const CbmMuchTest &) | |
CbmMuchTest & | operator= (const CbmMuchTest &) |
Private Attributes | |
Int_t | fNofPoints |
Int_t | fNofSubCenters |
Float_t | fSubStep |
M_Point * | fRealPoints |
Int_t | fNofClusters |
Cluster * | fClusters |
Float_t | fMeanErrorOnX |
Float_t | fMeanErrorOnY |
Float_t * | fErrorsOnX |
Float_t * | fErrorsOnY |
Float_t | fMeanErrorOnXforSubCenters |
Float_t | fMeanErrorOnYforSubCenters |
Float_t * | fErrorsOnXforSubCenters |
Float_t * | fErrorsOnYforSubCenters |
Float_t | fEfficiency |
Float_t | fEfficiencyForSubCenters |
Static Private Attributes | |
static const Int_t | fMaxSubCentersPerPoint = 10 |
Definition at line 22 of file CbmMuchTest.h.
CbmMuchTest::CbmMuchTest | ( | ) |
Constructor.
Definition at line 36 of file CbmMuchTest.cxx.
References fNofClusters, fNofPoints, fNofSubCenters, fRealPoints, and fSubStep.
CbmMuchTest::CbmMuchTest | ( | Int_t | nofPoints, |
Float_t | subStep ) |
Definition at line 57 of file CbmMuchTest.cxx.
References fNofClusters, fNofPoints, fNofSubCenters, fRealPoints, and fSubStep.
|
virtual |
Destructor.
Definition at line 77 of file CbmMuchTest.cxx.
|
private |
void CbmMuchTest::CalculateAccuracy | ( | ) |
Definition at line 256 of file CbmMuchTest.cxx.
References fClusters, fErrorsOnX, fErrorsOnXforSubCenters, fErrorsOnY, fErrorsOnYforSubCenters, fMeanErrorOnX, fMeanErrorOnXforSubCenters, fMeanErrorOnY, fMeanErrorOnYforSubCenters, fNofClusters, fNofPoints, fRealPoints, and sqrt().
Referenced by MainTesting().
void CbmMuchTest::CalculateEfficiency | ( | ) |
Definition at line 248 of file CbmMuchTest.cxx.
References fEfficiency, fEfficiencyForSubCenters, fNofClusters, fNofPoints, and fNofSubCenters.
Referenced by MainTesting().
|
inline |
Definition at line 60 of file CbmMuchTest.h.
References fMeanErrorOnX, and fMeanErrorOnY.
|
inline |
Definition at line 61 of file CbmMuchTest.h.
References fMeanErrorOnXforSubCenters, and fMeanErrorOnYforSubCenters.
|
inline |
Definition at line 65 of file CbmMuchTest.h.
References fEfficiency.
|
inline |
Definition at line 66 of file CbmMuchTest.h.
References fEfficiencyForSubCenters.
|
inline |
Definition at line 42 of file CbmMuchTest.h.
References fNofPoints.
|
inline |
Definition at line 43 of file CbmMuchTest.h.
References fNofSubCenters.
void CbmMuchTest::MainTesting | ( | ) |
Definition at line 312 of file CbmMuchTest.cxx.
References CalculateAccuracy(), and CalculateEfficiency().
|
private |
void CbmMuchTest::RebuildPoints | ( | ) |
Definition at line 79 of file CbmMuchTest.cxx.
References fNofPoints, fNofSubCenters, fRealPoints, fSubStep, CbmMuchTest::M_Point::nofSubCenters, CbmMuchTest::M_Point::pLenght, sqrt(), CbmMuchTest::M_Point::x1, CbmMuchTest::M_Point::x2, CbmMuchTest::M_Point::xc, CbmMuchTest::M_Point::xSC, CbmMuchTest::M_Point::y1, CbmMuchTest::M_Point::y2, CbmMuchTest::M_Point::yc, and CbmMuchTest::M_Point::ySC.
void CbmMuchTest::SetCharge | ( | UInt_t | chCl, |
Int_t | iCl ) |
Definition at line 207 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::sumClCharge.
void CbmMuchTest::SetCluster | ( | Int_t | nCl, |
Float_t | xCl, | ||
Float_t | yCl, | ||
UInt_t | chCl, | ||
Int_t | nofPads, | ||
Int_t | iCl ) |
Definition at line 234 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, CbmMuchTest::Cluster::nofCluster, CbmMuchTest::Cluster::nofPads, CbmMuchTest::Cluster::sumClCharge, CbmMuchTest::Cluster::xc, and CbmMuchTest::Cluster::yc.
void CbmMuchTest::SetNCl | ( | Int_t | nCl, |
Int_t | iCl ) |
Definition at line 180 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::nofCluster.
void CbmMuchTest::SetNClusters | ( | Int_t | NCl | ) |
Definition at line 169 of file CbmMuchTest.cxx.
References fClusters, fEfficiency, fEfficiencyForSubCenters, fErrorsOnX, fErrorsOnXforSubCenters, fErrorsOnY, fErrorsOnYforSubCenters, and fNofClusters.
void CbmMuchTest::SetNPads | ( | Int_t | nofPads, |
Int_t | iCl ) |
Definition at line 216 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::nofPads.
void CbmMuchTest::SetNPoints | ( | Int_t | nofPoints | ) |
Definition at line 112 of file CbmMuchTest.cxx.
References fNofPoints, and fRealPoints.
void CbmMuchTest::SetPadInCl | ( | Int_t | nPad, |
Int_t | iCl, | ||
Int_t | iPad ) |
Definition at line 225 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::padsInCluster.
void CbmMuchTest::SetSubStep | ( | Int_t | iStep | ) |
Definition at line 167 of file CbmMuchTest.cxx.
References fSubStep.
void CbmMuchTest::SetXCl | ( | Float_t | xCl, |
Int_t | iCl ) |
Definition at line 189 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::xc.
void CbmMuchTest::SetXIn | ( | Float_t | xIn, |
Int_t | iPoint ) |
Definition at line 122 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::x1.
void CbmMuchTest::SetXOut | ( | Float_t | xOut, |
Int_t | iPoint ) |
Definition at line 145 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::x2.
void CbmMuchTest::SetYCl | ( | Float_t | yCl, |
Int_t | iCl ) |
Definition at line 198 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::yc.
void CbmMuchTest::SetYIn | ( | Float_t | yIn, |
Int_t | iPoint ) |
Definition at line 134 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::y1.
void CbmMuchTest::SetYOut | ( | Float_t | yOut, |
Int_t | iPoint ) |
Definition at line 156 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::y2.
|
private |
Definition at line 103 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), SetCharge(), SetCluster(), SetNCl(), SetNClusters(), SetNPads(), SetPadInCl(), SetXCl(), and SetYCl().
|
private |
Definition at line 113 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), GetMeanEfficiency(), and SetNClusters().
|
private |
Definition at line 114 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), GetMeanEfficiencyForSubCenters(), and SetNClusters().
|
private |
Definition at line 106 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 110 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 107 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 111 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
staticprivate |
Definition at line 76 of file CbmMuchTest.h.
|
private |
Definition at line 104 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracy().
|
private |
Definition at line 108 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracyForSubCenters().
|
private |
Definition at line 105 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracy().
|
private |
Definition at line 109 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracyForSubCenters().
|
private |
Definition at line 94 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CalculateEfficiency(), CbmMuchTest(), CbmMuchTest(), SetCharge(), SetCluster(), SetNCl(), SetNClusters(), SetNPads(), SetPadInCl(), SetXCl(), and SetYCl().
|
private |
Definition at line 73 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CalculateEfficiency(), CbmMuchTest(), CbmMuchTest(), GetNPoints(), RebuildPoints(), SetNPoints(), SetXIn(), SetXOut(), SetYIn(), and SetYOut().
|
private |
Definition at line 74 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), CbmMuchTest(), CbmMuchTest(), GetNSbCenters(), and RebuildPoints().
|
private |
Definition at line 85 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CbmMuchTest(), CbmMuchTest(), RebuildPoints(), SetNPoints(), SetXIn(), SetXOut(), SetYIn(), and SetYOut().
|
private |
Definition at line 75 of file CbmMuchTest.h.
Referenced by CbmMuchTest(), CbmMuchTest(), RebuildPoints(), and SetSubStep().