BmnRoot
Loading...
Searching...
No Matches
BmnMwpcGeometry.h
Go to the documentation of this file.
1// @(#)bmnroot/mwpc:$Id$
2// Author: Pavel Batyuk (VBLHEP) <pavel.batyuk@jinr.ru> 2017-02-10
3
5// //
6// BmnMwpcGeometry //
7// //
8// A class containing geometry params. of //
9// the Multi Wire Prop. Chambers of the BM@N experiment //
10// //
12
13#ifndef BMNMWPCGEOMETRY_H
14#define BMNMWPCGEOMETRY_H
15
16#include <iostream>
17#include <TNamed.h>
18#include <TMath.h>
19#include <TVector3.h>
20
21using namespace std;
22using namespace TMath;
23
24class BmnMwpcGeometry : public TNamed {
25public:
26
29
32
33 Short_t GetNChambers() {
34 return fNChambers;
35 }
36
37 Short_t GetNPlanes() {
38 return fNPlanes;
39 }
40
41 Short_t GetTimeBin() {
42 return fTimeBin;
43 }
44
45 Short_t GetNWires() {
46 return fNWires;
47 }
48
49 Double_t GetAngleStep() {
50 return fAngleStep;
51 }
52
53 Double_t GetWireStep() {
54 return fWireStep;
55 }
56
57 Double_t GetPlaneStep() {
58 return fPlaneStep;
59 }
60
61 Double_t GetPlaneHeight() {
62 return fPlaneHeight;
63 }
64
65 Double_t GetPlaneWidth() {
66 return fPlaneWidth;
67 }
68
69 Double_t GetZPlanePos(Int_t chamber, Int_t plane) {
70 return zPlanePos[chamber][plane];
71 }
72
73 TVector3 GetChamberCenter(Int_t chamber);
74
75 Double_t GetZRight(Int_t chamber) {
76 return zRight[chamber];
77 }
78
79 Double_t GetZLeft(Int_t chamber) {
80 return zLeft[chamber];
81 }
82
83private:
84
85 Short_t fNChambers;
86 Short_t fNPlanes;
87 Short_t fTimeBin; // in ns
88 Short_t fNWires; //in one plane
89 Double_t fAngleStep;
90 Double_t fWireStep; // in cm
91 Double_t fPlaneStep; // in cm
92 Double_t fPlaneHeight; // in cm
93 Double_t fPlaneWidth; //in cm
94 Double_t fSpaceLeft; //in cm
95 Double_t fSpaceRight; //in cm
96
97 Double_t zPlanePos[2][6];
98 Double_t zRight[2];
99 Double_t zLeft[2];
100
101 Double_t fChamberWidth;
102 Double_t fDistanceBetweenMWPC;
103 Double_t fZofMWPC[4];
104
105 Bool_t fDebug;
106
107 ClassDef(BmnMwpcGeometry, 1);
108};
109
110#endif
Double_t GetZRight(Int_t chamber)
Double_t GetPlaneWidth()
Double_t GetZLeft(Int_t chamber)
TVector3 GetChamberCenter(Int_t chamber)
Double_t GetPlaneStep()
Double_t GetWireStep()
Double_t GetPlaneHeight()
Double_t GetAngleStep()
Short_t GetNChambers()
Double_t GetZPlanePos(Int_t chamber, Int_t plane)
virtual ~BmnMwpcGeometry()
STL namespace.