BmnRoot
Loading...
Searching...
No Matches
CbmStsSensorDigiPar.cxx
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmStsSensorDigiPar source file -----
3// ----- Created 01/07/2008 by R. Karabowicz -----
4// -------------------------------------------------------------------------
5
6#include <iostream>
7
8#include "TMath.h"
9
10#include "CbmStsSensorDigiPar.h"
11
12using std::cout;
13using std::endl;
14
15
16// ----- Default constructor -------------------------------------------
18: fSensorNr(-1),
19 fType (0),
20 fX0(0.),
21 fY0(0.),
22 fZ0(0.),
23 fRotation(0.),
24 fLx(0.),
25 fLy(0.),
26 fDx(0.),
27 fDy(0.),
28 fStereoF(0.),
29 fStereoB(0.),
30 fD(0.)
31{
32 cout << "-W- CbmStsSensorDigiPar: Do not use this constructor! "
33 << endl;
34}
35
36// ----- Standard constructor ------------------------------------------
38 Double_t x0, Double_t y0,
39 Double_t rotation,
40 Double_t lx, Double_t ly,
41 Double_t dx, Double_t dy,
42 Double_t stereoF, Double_t stereoB)
43: fSensorNr(-1),
44 fType(0),
45 fX0(0.),
46 fY0(0.),
47 fZ0(0.),
48 fRotation(0.),
49 fLx(0.),
50 fLy(0.),
51 fDx(0.),
52 fDy(0.),
53 fStereoF(0.),
54 fStereoB(0.),
55 fD(0.)
56{
57 fSensorNr = iSensor;
58 fType = iType;
59 fX0 = x0;
60 fY0 = y0;
61 fRotation = rotation;
62 fLx = lx;
63 fLy = ly;
64 fDx = dx;
65 fDy = dy;
66 fStereoF = stereoF;
67 fStereoB = stereoB;
68
69 // Check for stereoB angle
70 // (Mathematics has not been checked for angles > 90 degrees)
71 if (TMath::Abs(fStereoB) > TMath::Pi()/2.) {
72 cout << "-E- CbmStsSensorDigiPar: StereoB angle > 90 degrees !"
73 << endl;
74 cout << iSensor << " " << iType << " " << x0 << " " << y0 << " "
75 << rotation << " " << lx << " " << ly << " " << dx << " "
76 << dy << " " << stereoB << endl;
77 cout << " Revise sector layout! " << endl;
78 Fatal("CbmStsSensorDigiPar", "StereoB Angle");
79 }
80 // Check for stereoF angle
81 // (Mathematics has not been checked for angles > 90 degrees)
82 if (TMath::Abs(fStereoF) > TMath::Pi()/2.) {
83 cout << "-E- CbmStsSensorDigiPar: StereoF angle > 90 degrees !"
84 << endl;
85 cout << iSensor << " " << iType << " " << x0 << " " << y0 << " "
86 << rotation << " " << lx << " " << ly << " " << dx << " "
87 << dy << " " << stereoF << endl;
88 cout << " Revise sector layout! " << endl;
89 Fatal("CbmStsSensorDigiPar", "StereoF Angle");
90 }
91}
92
94 Double_t x0, Double_t y0, Double_t z0,
95 Double_t rotation,
96 Double_t lx, Double_t ly,
97 Double_t d, Double_t dx, Double_t dy,
98 Double_t stereoF, Double_t stereoB)
99: fSensorNr(-1),
100 fType(0),
101 fX0(0.),
102 fY0(0.),
103 fZ0(0.),
104 fRotation(0.),
105 fLx(0.),
106 fLy(0.),
107 fDx(0.),
108 fDy(0.),
109 fStereoF(0.),
110 fStereoB(0.),
111 fD(0.)
112{
113 fSensorNr = iSensor;
114 fType = iType;
115 fX0 = x0;
116 fY0 = y0;
117 fZ0 = z0;
118 fRotation = rotation;
119 fLx = lx;
120 fLy = ly;
121 fD = d;
122 fDx = dx;
123 fDy = dy;
124 fStereoF = stereoF;
125 fStereoB = stereoB;
126
127 // Check for stereoB angle
128 // (Mathematics has not been checked for angles > 90 degrees)
129 if (TMath::Abs(fStereoB) > TMath::Pi()/2.) {
130 cout << "-E- CbmStsSensorDigiPar: StereoB angle > 90 degrees !"
131 << endl;
132 cout << iSensor << " " << iType << " " << x0 << " " << y0 << " " << z0 << " "
133 << rotation << " " << lx << " " << ly << " " << dx << " "
134 << dy << " " << stereoB << endl;
135 cout << " Revise sector layout! " << endl;
136 Fatal("CbmStsSensorDigiPar", "StereoB Angle");
137 }
138 // Check for stereoF angle
139 // (Mathematics has not been checked for angles > 90 degrees)
140 if (TMath::Abs(fStereoF) > TMath::Pi()/2.) {
141 cout << "-E- CbmStsSensorDigiPar: StereoF angle > 90 degrees !"
142 << endl;
143 cout << iSensor << " " << iType << " " << x0 << " " << y0 << " " << z0 << " "
144 << rotation << " " << lx << " " << ly << " " << dx << " "
145 << dy << " " << stereoF << endl;
146 cout << " Revise sector layout! " << endl;
147 Fatal("CbmStsSensorDigiPar", "StereoF Angle");
148 }
149}
150// -------------------------------------------------------------------------
151
152// ----- Destructor ----------------------------------------------------
154// -------------------------------------------------------------------------
const Float_t d
Z-ccordinate of the first GEM-station.
Definition BmnMwpcHit.cxx:7
const Float_t z0
Definition BmnMwpcHit.cxx:6