CbmRoot
Loading...
Searching...
No Matches
CbmMuchTest.h
Go to the documentation of this file.
1/* Copyright (C) 2012-2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Grigory Kozlov, Andrey Lebedev [committer] */
4
5/*
6 * CbmMuchTest.h
7 *
8 * Created on: May 2, 2012
9 * Author: kozlov
10 */
11
12#ifndef CBMMUCHTEST_H_
13#define CBMMUCHTEST_H_
14
15#include "FairTask.h"
16
17//class CbmMuchGeoScheme;
18//class CbmMuchCluster;
19//class CbmMuchPad;
20//class TClonesArray;
21
22class CbmMuchTest //: public FairTask
23{
24 public:
29 CbmMuchTest(Int_t nofPoints, Float_t subStep);
30 //CbmMuchGeoCl(Int_t nStation, Int_t nLayer, Bool_t nSide, Int_t nModule);
31
32 void SetNPoints(Int_t nofPoints);
33 void SetXIn(Float_t xIn, Int_t iPoint);
34 void SetYIn(Float_t yIn, Int_t iPoint);
35 void SetXOut(Float_t xOut, Int_t iPoint);
36 void SetYOut(Float_t yOut, Int_t iPoint);
37 //void SetNHits(Int_t nofHits);
38 void SetSubStep(Int_t iStep);
39
40 void SetNClusters(Int_t NCl); // { fNofClusters = NCl; }
41
42 Int_t GetNPoints() const { return fNofPoints; }
43 Int_t GetNSbCenters() const { return fNofSubCenters; }
44
45 void RebuildPoints();
46
47 //---
48 void SetNCl(Int_t nCl, Int_t iCl);
49 void SetXCl(Float_t xCl, Int_t iCl);
50 void SetYCl(Float_t yCl, Int_t iCl);
51 void SetCharge(UInt_t chCl, Int_t iCl);
52 void SetNPads(Int_t nofPads, Int_t iCl);
53 void SetPadInCl(Int_t nPad, Int_t iCl, Int_t iPad);
54 void SetCluster(Int_t nCl, Float_t xCl, Float_t yCl, UInt_t chCl, Int_t nofPads, Int_t iCl);
55
56 //--
58 void CalculateAccuracy();
59 void MainTesting();
60 Float_t GetMeanAccuracy() const { return ((fMeanErrorOnX + fMeanErrorOnY) / 2); }
65 Float_t GetMeanEfficiency() const { return fEfficiency; }
70 virtual ~CbmMuchTest();
71
72 private:
75 Float_t fSubStep;
76 static const Int_t fMaxSubCentersPerPoint = 10;
77
78 struct M_Point {
79 Float_t x1, y1, x2, y2, xc, yc;
81 Float_t pLenght;
84 };
86
87 /*Int_t fNofHits;
88 struct M_Hit{
89 Float_t x, y;
90 //UInt_t charge;
91 };
92 M_Hit* fHits;*/
93
95 struct Cluster {
97 Float_t xc;
98 Float_t yc;
100 Int_t nofPads;
101 Int_t padsInCluster[30];
102 };
106 Float_t* fErrorsOnX;
107 Float_t* fErrorsOnY;
112
113 Float_t fEfficiency;
115
118};
119
120#endif /* CBMMUCHTEST_H_ */
void CalculateEfficiency()
Float_t * fErrorsOnYforSubCenters
void SetNCl(Int_t nCl, Int_t iCl)
Int_t fNofPoints
Definition CbmMuchTest.h:73
Float_t fSubStep
Definition CbmMuchTest.h:75
Float_t * fErrorsOnX
Float_t GetMeanAccuracyForSubCenters() const
Definition CbmMuchTest.h:61
Int_t GetNSbCenters() const
Definition CbmMuchTest.h:43
void SetPadInCl(Int_t nPad, Int_t iCl, Int_t iPad)
void CalculateAccuracy()
void SetNPoints(Int_t nofPoints)
Cluster * fClusters
void SetSubStep(Int_t iStep)
virtual ~CbmMuchTest()
Destructor.
Float_t fEfficiencyForSubCenters
void SetCluster(Int_t nCl, Float_t xCl, Float_t yCl, UInt_t chCl, Int_t nofPads, Int_t iCl)
Float_t * fErrorsOnY
void SetXCl(Float_t xCl, Int_t iCl)
void SetXIn(Float_t xIn, Int_t iPoint)
Float_t fMeanErrorOnY
static const Int_t fMaxSubCentersPerPoint
Definition CbmMuchTest.h:76
M_Point * fRealPoints
Definition CbmMuchTest.h:85
Float_t fEfficiency
void SetCharge(UInt_t chCl, Int_t iCl)
Float_t GetMeanEfficiencyForSubCenters() const
Definition CbmMuchTest.h:66
CbmMuchTest & operator=(const CbmMuchTest &)
Float_t * fErrorsOnXforSubCenters
void SetNPads(Int_t nofPads, Int_t iCl)
CbmMuchTest()
Constructor.
CbmMuchTest(const CbmMuchTest &)
Float_t GetMeanAccuracy() const
Definition CbmMuchTest.h:60
void SetYIn(Float_t yIn, Int_t iPoint)
void MainTesting()
Float_t GetMeanEfficiency() const
Definition CbmMuchTest.h:65
Int_t fNofSubCenters
Definition CbmMuchTest.h:74
void SetXOut(Float_t xOut, Int_t iPoint)
void SetYCl(Float_t yCl, Int_t iCl)
Float_t fMeanErrorOnYforSubCenters
void SetYOut(Float_t yOut, Int_t iPoint)
Float_t fMeanErrorOnX
Int_t fNofClusters
Definition CbmMuchTest.h:94
void RebuildPoints()
Float_t fMeanErrorOnXforSubCenters
Int_t GetNPoints() const
Definition CbmMuchTest.h:42
void SetNClusters(Int_t NCl)
Float_t ySC[fMaxSubCentersPerPoint]
Definition CbmMuchTest.h:83
Float_t xSC[fMaxSubCentersPerPoint]
Definition CbmMuchTest.h:82