CbmRoot
|
#include <CbmMuchTest.h>
Classes | |
struct | Cluster |
struct | M_Point |
Public Member Functions | |
CbmMuchTest () | |
Constructor. More... | |
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. More... | |
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 18 of file CbmMuchTest.h.
CbmMuchTest::CbmMuchTest | ( | ) |
Constructor.
Definition at line 33 of file CbmMuchTest.cxx.
References fNofClusters, fNofPoints, fNofSubCenters, fRealPoints, and fSubStep.
CbmMuchTest::CbmMuchTest | ( | Int_t | nofPoints, |
Float_t | subStep | ||
) |
Definition at line 53 of file CbmMuchTest.cxx.
References fNofClusters, fNofPoints, fNofSubCenters, fRealPoints, and fSubStep.
|
virtual |
Destructor.
Definition at line 72 of file CbmMuchTest.cxx.
|
private |
void CbmMuchTest::CalculateAccuracy | ( | ) |
Definition at line 237 of file CbmMuchTest.cxx.
References fabs(), fClusters, fErrorsOnX, fErrorsOnXforSubCenters, fErrorsOnY, fErrorsOnYforSubCenters, fMeanErrorOnX, fMeanErrorOnXforSubCenters, fMeanErrorOnY, fMeanErrorOnYforSubCenters, fNofClusters, fNofPoints, fRealPoints, and sqrt().
Referenced by MainTesting().
void CbmMuchTest::CalculateEfficiency | ( | ) |
Definition at line 229 of file CbmMuchTest.cxx.
References fEfficiency, fEfficiencyForSubCenters, fNofClusters, fNofPoints, and fNofSubCenters.
Referenced by MainTesting().
|
inline |
Definition at line 61 of file CbmMuchTest.h.
References fMeanErrorOnX, and fMeanErrorOnY.
|
inline |
Definition at line 64 of file CbmMuchTest.h.
References fMeanErrorOnXforSubCenters, and fMeanErrorOnYforSubCenters.
|
inline |
Definition at line 67 of file CbmMuchTest.h.
References fEfficiency.
|
inline |
Definition at line 68 of file CbmMuchTest.h.
References fEfficiencyForSubCenters.
|
inline |
Definition at line 38 of file CbmMuchTest.h.
References fNofPoints.
|
inline |
Definition at line 39 of file CbmMuchTest.h.
References fNofSubCenters.
void CbmMuchTest::MainTesting | ( | ) |
Definition at line 294 of file CbmMuchTest.cxx.
References CalculateAccuracy(), and CalculateEfficiency().
|
private |
void CbmMuchTest::RebuildPoints | ( | ) |
Definition at line 74 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 191 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 212 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 170 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::nofCluster.
void CbmMuchTest::SetNClusters | ( | Int_t | NCl | ) |
Definition at line 160 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 198 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 205 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::padsInCluster.
void CbmMuchTest::SetSubStep | ( | Int_t | iStep | ) |
Definition at line 158 of file CbmMuchTest.cxx.
References fSubStep.
void CbmMuchTest::SetXCl | ( | Float_t | xCl, |
Int_t | iCl | ||
) |
Definition at line 177 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::xc.
void CbmMuchTest::SetXIn | ( | Float_t | xIn, |
Int_t | iPoint | ||
) |
Definition at line 121 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::x1.
void CbmMuchTest::SetXOut | ( | Float_t | xOut, |
Int_t | iPoint | ||
) |
Definition at line 140 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::x2.
void CbmMuchTest::SetYCl | ( | Float_t | yCl, |
Int_t | iCl | ||
) |
Definition at line 184 of file CbmMuchTest.cxx.
References fClusters, fNofClusters, and CbmMuchTest::Cluster::yc.
void CbmMuchTest::SetYIn | ( | Float_t | yIn, |
Int_t | iPoint | ||
) |
Definition at line 131 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::y1.
void CbmMuchTest::SetYOut | ( | Float_t | yOut, |
Int_t | iPoint | ||
) |
Definition at line 149 of file CbmMuchTest.cxx.
References fNofPoints, fRealPoints, and CbmMuchTest::M_Point::y2.
|
private |
Definition at line 107 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), SetCharge(), SetCluster(), SetNCl(), SetNClusters(), SetNPads(), SetPadInCl(), SetXCl(), and SetYCl().
|
private |
Definition at line 117 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), GetMeanEfficiency(), and SetNClusters().
|
private |
Definition at line 118 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), GetMeanEfficiencyForSubCenters(), and SetNClusters().
|
private |
Definition at line 110 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 114 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 111 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
private |
Definition at line 115 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and SetNClusters().
|
staticprivate |
Definition at line 80 of file CbmMuchTest.h.
|
private |
Definition at line 108 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracy().
|
private |
Definition at line 112 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracyForSubCenters().
|
private |
Definition at line 109 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracy().
|
private |
Definition at line 113 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), and GetMeanAccuracyForSubCenters().
|
private |
Definition at line 98 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CalculateEfficiency(), CbmMuchTest(), SetCharge(), SetCluster(), SetNCl(), SetNClusters(), SetNPads(), SetPadInCl(), SetXCl(), and SetYCl().
|
private |
Definition at line 77 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CalculateEfficiency(), CbmMuchTest(), GetNPoints(), RebuildPoints(), SetNPoints(), SetXIn(), SetXOut(), SetYIn(), and SetYOut().
|
private |
Definition at line 78 of file CbmMuchTest.h.
Referenced by CalculateEfficiency(), CbmMuchTest(), GetNSbCenters(), and RebuildPoints().
|
private |
Definition at line 89 of file CbmMuchTest.h.
Referenced by CalculateAccuracy(), CbmMuchTest(), RebuildPoints(), SetNPoints(), SetXIn(), SetXOut(), SetYIn(), and SetYOut().
|
private |
Definition at line 79 of file CbmMuchTest.h.
Referenced by CbmMuchTest(), RebuildPoints(), and SetSubStep().