-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSensor.h
More file actions
45 lines (30 loc) · 921 Bytes
/
Sensor.h
File metadata and controls
45 lines (30 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SENSOR_H
#define SENSOR_H
#include "TF1.h"
#include "TF2.h"
#include <string>
class Sensor {
public:
Sensor(const char* name);
Sensor(const char* name, const double thick, const double vdepl);
~Sensor();
double eField(const double z) const;
double getBfield(const double) const { return _Bfield;}
double getThickness() const {return _thickness;}
void setThickness(const double thick) {_thickness = thick;};
void setVdepl(const double vdepl) {_Vdepl = vdepl;}
void setVbias(const double vbias) {_Vbias = vbias;}
void setBField(const double bfield) {_Bfield = bfield;}
void SetLineColor(Color_t color);
void SetLineStyle(Style_t style);
TF1* EfieldFunc() const;
private:
double getEfield(const double *x, const double *p) const;
std::string _name;
double _thickness;
double _Vdepl;
double _Vbias;
double _Bfield;
TF1* _Efieldfunc;
};
#endif // SENSOR_H