BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
DCHgeometryconstants_bmn.h
Go to the documentation of this file.
1
#ifndef DCHGEOMETRYCONSTANTS_BMN_H
2
#define DCHGEOMETRYCONSTANTS_BMN_H
3
4
#include "
TMath.h
"
5
6
// Beam entering position
7
// static Double_t beamPos[3] = {0.,0.,-210.};
8
/*static Double_t beamPos[3][numRunPeriods] = {
9
{0.,0.,-210.};
10
{0.,0.,-210.};
11
{0.,0.,0.};
12
{0.,0.,0.};
13
{0.,0.,0.};
14
{0.,0.,-210.};
15
{0.,0.,0.};
16
}*/
17
// Basic detector parameters
18
const
UShort_t
numChambers
= 2;
// number of drift chambers
19
const
UShort_t
numLayers
= 8;
// number of anode wire planes in the drift chamber
20
const
UShort_t
numLayers_half
=
numLayers
/ 2;
// half number of anode wire planes in the drift chamber
21
const
UShort_t
twoNumLayers
=
numLayers
*
numChambers
;
// number of anode wire planes in both the drift chambers
22
const
UShort_t
ngaps
=
numLayers
/ 2 - 1;
// number of gaps in the drift chamber
23
// const UShort_t dimzarray=numChambers*numLayers; // number of anode wire planes in the drift chambers
24
const
UShort_t
numRunPeriods
= 7;
25
26
// const UShort_t runType=1; // run type: 1,2,3
27
// Detector's position
28
// const Double_t deflectAngle = 0.3/5.7 ;
29
// const Double_t deflectAngle = 0. ;
30
// const Double_t angleXZ = 0.029845130209; //1.9 grad = 1.71 degree
31
// const Double_t angleXZ = 0.04712389; //2.7 degree
32
// const Double_t angleXZ = -0.04712389; //2.7 degree
33
// const Double_t angleXZ = 0.087266463; //5 degrees
34
const
Double_t
angleXZ
= 0.0;
// 0. grad = 0. degree
35
// static Double_t DCH1_Xpos[numRunPeriods] = {0.,0.,0.,0.,0.,0.,0.};
36
// static Double_t DCH1_Ypos[numRunPeriods] = {0.,0.,0.,0.,0.,0.,0.};
37
// static Double_t DCH1_Xpos[numRunPeriods] = {0.,0.,0.,0.,0.,-39.381,0.};
38
// static Double_t DCH1_Ypos[numRunPeriods] = {0.,0.,0.,0.,0.,1.2917,0.};
39
const
Double_t
DCH1_Zpos
[
numRunPeriods
] = {610., 610., 662.05, 0., 0., 515.5, 0.};
// cm
40
// const Double_t DCH1_Zpos[3] = {550.0,637.85,637.85}; //cm
41
// static Double_t DCH2_Xpos[numRunPeriods] = {0.,0.,0.,0.,0.,0.,0.};
42
// static Double_t DCH2_Ypos[numRunPeriods] = {0.,0.,0.,0.,0.,0.,0.};
43
// static Double_t DCH2_Xpos[numRunPeriods] = {0.,0.,0.,0.,0.,-41.299,0.};
44
// static Double_t DCH2_Ypos[numRunPeriods] = {0.,0.,0.,0.,0.,2.2445,0.};
45
const
Double_t
DCH2_Zpos
[
numRunPeriods
] = {720., 720., 772.05, 0., 0., 715., 0.};
// cm
46
// Double_t DCH2_Zpos[3] = {650.0,748.35,748.35}; //cm
47
// const Double_t DCH2_Zpos[3] = {650.0,673.,748.35}; //cm
48
49
// const Double_t DCH_ZlayerPos_local[numLayers] = {-7.8, -6.6, -3.0, -1.8, 1.8, 3.0, 6.6, 7.8}; // position of gas
50
// volumes (layers) within DCH
51
const
Double_t
DCH_ZlayerPos_local
[
numLayers
] = {7.8, 6.6, 3.0, 1.8, -1.8,
52
-3.0, -6.6, -7.8};
// position of gas volumes (layers) within DCH
53
// const Double_t DCH_ZlayerPos_local[numLayers] = {3.0, 1.8, 7.8, 6.6, -6.6, -7.8, -1.8, -3.0}; // position of gas
54
// volumes (layers) within DCH const Double_t DCH_ZlayerPos_local[numLayers] = {9.3, 8.1, 3.5, 2.3, -2.3, -3.5, -8.1,
55
// -9.3}; // position of gas volumes (layers) within DCH const Double_t DCH_ZlayerPos_local[numLayers] =
56
// {10.2, 9., 3.8, 2.6, -2.6, -3.8, -9., -10.2}; // position of gas volumes (layers) within DCH const Double_t
57
// DCH_ZlayerPos_local[numLayers] = {-9.3, -8.1, -3.5, -2.3, 2.3, 3.5, 8.1, 9.3}; // position of gas volumes (layers)
58
// within DCH
59
60
// const Double_t DCH1_ZlayerPos_global[numLayers] =
61
// {DCH_ZlayerPos_local[0]+DCH1_Zpos,DCH_ZlayerPos_local[1]+DCH1_Zpos,DCH_ZlayerPos_local[2]+DCH1_Zpos,DCH_ZlayerPos_local[3]+DCH1_Zpos,DCH_ZlayerPos_local[4]+DCH1_Zpos,DCH_ZlayerPos_local[5]+DCH1_Zpos,DCH_ZlayerPos_local[6]+DCH1_Zpos,DCH_ZlayerPos_local[7]+DCH1_Zpos};
62
// // position of gas volumes (layers) of DCH1 in laboratory CS const Double_t DCH2_ZlayerPos_global[numLayers] =
63
// {DCH_ZlayerPos_local[0]+DCH2_Zpos,DCH_ZlayerPos_local[1]+DCH2_Zpos,DCH_ZlayerPos_local[2]+DCH2_Zpos,DCH_ZlayerPos_local[3]+DCH2_Zpos,DCH_ZlayerPos_local[4]+DCH2_Zpos,DCH_ZlayerPos_local[5]+DCH2_Zpos,DCH_ZlayerPos_local[6]+DCH2_Zpos,DCH_ZlayerPos_local[7]+DCH2_Zpos};
64
// // position of gas volumes (layers) of DCH2 in laboratory CS
65
66
// Detector's construct parameters
67
const
Double_t
angleLayer
[
numLayers
] = {0., 0., 90., 90.,
68
45., 45., -45., -45.};
// angles of inclined wires, degrees // for exp.
69
// const Double_t angleLayer[numLayers] = {-45., -45., 45., 45., 90., 90., 0., 0.}; // angles of inclined wires, degrees
70
// // for exp. const Double_t angleLayer[numLayers] = {0., 0., 90., 90., -45., -45., 45., 45.}; // angles of inclined
71
// wires, degrees // for sim. const Double_t angleStereoRad=angleStereo*TMath::DegToRad();
72
const
Double_t
angleLayerRad
[
numLayers
] = {
73
angleLayer
[0] *
TMath::DegToRad
(),
angleLayer
[1] *
TMath::DegToRad
(),
angleLayer
[2] *
TMath::DegToRad
(),
74
angleLayer
[3] *
TMath::DegToRad
(),
angleLayer
[4] *
TMath::DegToRad
(),
angleLayer
[5] *
TMath::DegToRad
(),
75
angleLayer
[6] *
TMath::DegToRad
(),
angleLayer
[7] *
TMath::DegToRad
()};
// angles of inclined wires, radians
76
const
Double_t
dirCosLayerX
[
numLayers
] = {
77
cos
(
angleLayerRad
[0]),
cos
(
angleLayerRad
[1]),
cos
(
angleLayerRad
[2]),
cos
(
angleLayerRad
[3]),
cos
(
angleLayerRad
[4]),
78
cos
(
angleLayerRad
[5]),
cos
(
angleLayerRad
[6]),
cos
(
angleLayerRad
[7])};
// x direction cosines of inclined wires
79
const
Double_t
dirCosLayerY
[
numLayers
] = {
80
sin
(
angleLayerRad
[0]),
sin
(
angleLayerRad
[1]),
sin
(
angleLayerRad
[2]),
sin
(
angleLayerRad
[3]),
sin
(
angleLayerRad
[4]),
81
sin
(
angleLayerRad
[5]),
sin
(
angleLayerRad
[6]),
sin
(
angleLayerRad
[7])};
// y direction cosines of inclined wires
82
83
const
Double_t
ZLength_DCH
= 20.0;
84
const
Double_t
ZLength_DCHActiveVolume
= 0.6;
85
const
Double_t
ZhalfLength_DCHActiveVolume
=
ZLength_DCHActiveVolume
/ 2.;
86
const
Double_t
ZhalfLength_DCHActiveVolume_W
=
ZhalfLength_DCHActiveVolume
+ 0.1;
// wider
87
// const Double_t DCH1_ZlayerPos_global_End[numLayers] =
88
// {DCH1_ZlayerPos_global[0]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[1]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[2]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[3]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[4]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[5]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[6]+ZhalfLength_DCHActiveVolume,DCH1_ZlayerPos_global[7]+ZhalfLength_DCHActiveVolume};
89
// // ends of gas volumes (layers) of DCH1 in laboratory CS const Double_t DCH2_ZlayerPos_global_End[numLayers] =
90
// {DCH2_ZlayerPos_global[0]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[1]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[2]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[3]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[4]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[5]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[6]+ZhalfLength_DCHActiveVolume,DCH2_ZlayerPos_global[7]+ZhalfLength_DCHActiveVolume};
91
// // ends of gas volumes (layers) of DCH2 in laboratory CS
92
const
Double_t
HoleSize_DCH
= 12.0;
93
94
const
Double_t
SideLengthOfOctagon
= 120.0;
95
const
Double_t
InnerRadiusOfOctagon
= (2.414 *
SideLengthOfOctagon
) / 2.0;
96
97
const
Double_t
MaxRadiusOfActiveVolume
= 120.0;
98
const
Double_t
MinRadiusOfActiveVolume
= 12.0;
99
100
// const UShort_t numWiresPerLayer = 256;
101
const
UInt_t
numWiresPerLayer
= 240;
102
const
UInt_t
halfNumWiresPerLayer
=
numWiresPerLayer
/ 2;
103
// const Double_t stepXY=2.*MaxRadiusOfActiveVolume/Double_t(numWiresPerLayer);
104
const
Double_t
stepXY
= 1.;
105
const
Double_t
stepXYhalf
=
stepXY
/ 2.;
106
const
Int_t
detIdDch1
= 13;
107
const
Int_t
detIdDch2
= 17;
108
// const Double_t diagonal=sqrt(stepXYhalf*stepXYhalf+ZhalfLength_DCHActiveVolume*ZhalfLength_DCHActiveVolume);
109
110
#endif
UShort_t
unsigned short UShort_t
Int_t
int Int_t
UInt_t
unsigned int UInt_t
Double_t
double Double_t
TMath.h
MaxRadiusOfActiveVolume
const Double_t MaxRadiusOfActiveVolume
Definition
DCHgeometryconstants_bmn.h:97
dirCosLayerY
const Double_t dirCosLayerY[numLayers]
Definition
DCHgeometryconstants_bmn.h:79
DCH2_Zpos
const Double_t DCH2_Zpos[numRunPeriods]
Definition
DCHgeometryconstants_bmn.h:45
HoleSize_DCH
const Double_t HoleSize_DCH
Definition
DCHgeometryconstants_bmn.h:92
numLayers_half
const UShort_t numLayers_half
Definition
DCHgeometryconstants_bmn.h:20
SideLengthOfOctagon
const Double_t SideLengthOfOctagon
Definition
DCHgeometryconstants_bmn.h:94
detIdDch1
const Int_t detIdDch1
Definition
DCHgeometryconstants_bmn.h:106
InnerRadiusOfOctagon
const Double_t InnerRadiusOfOctagon
Definition
DCHgeometryconstants_bmn.h:95
dirCosLayerX
const Double_t dirCosLayerX[numLayers]
Definition
DCHgeometryconstants_bmn.h:76
angleLayerRad
const Double_t angleLayerRad[numLayers]
Definition
DCHgeometryconstants_bmn.h:72
MinRadiusOfActiveVolume
const Double_t MinRadiusOfActiveVolume
Definition
DCHgeometryconstants_bmn.h:98
numChambers
const UShort_t numChambers
Definition
DCHgeometryconstants_bmn.h:18
twoNumLayers
const UShort_t twoNumLayers
Definition
DCHgeometryconstants_bmn.h:21
ZhalfLength_DCHActiveVolume_W
const Double_t ZhalfLength_DCHActiveVolume_W
Definition
DCHgeometryconstants_bmn.h:86
ngaps
const UShort_t ngaps
Definition
DCHgeometryconstants_bmn.h:22
numLayers
const UShort_t numLayers
Definition
DCHgeometryconstants_bmn.h:19
numRunPeriods
const UShort_t numRunPeriods
Definition
DCHgeometryconstants_bmn.h:24
ZLength_DCHActiveVolume
const Double_t ZLength_DCHActiveVolume
Definition
DCHgeometryconstants_bmn.h:84
stepXYhalf
const Double_t stepXYhalf
Definition
DCHgeometryconstants_bmn.h:105
numWiresPerLayer
const UInt_t numWiresPerLayer
Definition
DCHgeometryconstants_bmn.h:101
halfNumWiresPerLayer
const UInt_t halfNumWiresPerLayer
Definition
DCHgeometryconstants_bmn.h:102
DCH_ZlayerPos_local
const Double_t DCH_ZlayerPos_local[numLayers]
Definition
DCHgeometryconstants_bmn.h:51
DCH1_Zpos
const Double_t DCH1_Zpos[numRunPeriods]
Definition
DCHgeometryconstants_bmn.h:39
ZhalfLength_DCHActiveVolume
const Double_t ZhalfLength_DCHActiveVolume
Definition
DCHgeometryconstants_bmn.h:85
ZLength_DCH
const Double_t ZLength_DCH
Definition
DCHgeometryconstants_bmn.h:83
angleXZ
const Double_t angleXZ
Definition
DCHgeometryconstants_bmn.h:34
detIdDch2
const Int_t detIdDch2
Definition
DCHgeometryconstants_bmn.h:107
angleLayer
const Double_t angleLayer[numLayers]
Definition
DCHgeometryconstants_bmn.h:67
stepXY
const Double_t stepXY
Definition
DCHgeometryconstants_bmn.h:104
cos
RVec< PromoteType< T > > cos(const RVec< T > &v)
sin
RVec< PromoteType< T > > sin(const RVec< T > &v)
TMath::DegToRad
constexpr Double_t DegToRad()
detectors
dch
DCHgeometryconstants_bmn.h
Generated on
for BmnRoot by
1.17.0