BmnRoot
Loading...
Searching...
No Matches
BmnSsdSensorConditions.h
Go to the documentation of this file.
1
7#ifndef BMNSSDSENSORCONDITIONS_H
8#define BMNSSDSENSORCONDITIONS_H 1
9
10#include <string>
11#include "TMath.h"
12#include "TObject.h"
13
19class BmnSsdSensorConditions : public TObject {
20
21 public:
22
33 BmnSsdSensorConditions(Double_t vFD = 0., Double_t vBias = 0.,
34 Double_t temperature = 273.,
35 Double_t cCoupling = 0., Double_t cInterstrip = 0.,
36 Double_t bX = 0., Double_t bY = 0.,
37 Double_t bZ = 0.);
38
39
42
43
45 Double_t GetBx() const { return fBx; }
46 Double_t GetBy() const { return fBy; }
47 Double_t GetBz() const { return fBz; }
48 Double_t GetB() const { return TMath::Sqrt( fBx * fBx +
49 fBy * fBy +
50 fBz * fBz ); }
51
52
56 Double_t GetCcoupling() const { return fCcoupling; }
57
58
62 Double_t GetCinterstrip() const { return fCinterstrip; }
63
64
69 Double_t GetCrossTalk() const { return fCrossTalk; }
70
71
75 Double_t GetTemperature() const { return fTemperature; }
76
77
81 Double_t GetVbias() const { return fVbias; }
82
83
87 Double_t GetVfd() const { return fVfd; }
88
93 Double_t GetMeanLorentzShift(Int_t side) const { return fMeanLorentzShift[side]; }
94
95 Double_t GetHallParameter(Int_t index, Int_t chargeType);
96
98 void GetHallMobilityParametersInto(Double_t * hallMobilityParameters, Int_t chargeType) const;
99
100
101
107 Double_t HallMobility(Double_t eField, Int_t chargeType) const;
108
109
110
114 void SetField(Double_t bX, Double_t bY, Double_t bZ) {
115 fBx = bX;
116 fBy = bY;
117 fBz = bZ;
118 CalculateHallMobilityParameters();
119 }
120
121
123 std::string ToString() const;
124
125
126
127 private:
128
129 Double_t fVfd;
130 Double_t fVbias;
131 Double_t fTemperature;
132 Double_t fCcoupling;
133 Double_t fCinterstrip;
134 Double_t fCrossTalk;
135 Double_t fBx;
136 Double_t fBy;
137 Double_t fBz;
138 Double_t fHallMobilityParametersE[4];
139 Double_t fHallMobilityParametersH[4];
140 Double_t fMeanLorentzShift[2];
141
143 void CalculateHallMobilityParameters();
144
145 ClassDef(BmnSsdSensorConditions, 1);
146};
147
148#endif /* BMNSSDSENSORCONDITIONS_H */
Container for operating condition parameters of a sensor.
Double_t GetHallParameter(Int_t index, Int_t chargeType)
Double_t GetMeanLorentzShift(Int_t side) const
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void GetHallMobilityParametersInto(Double_t *hallMobilityParameters, Int_t chargeType) const
Double_t HallMobility(Double_t eField, Int_t chargeType) const