BmnRoot
Loading...
Searching...
No Matches
BmnSsdSensorPoint.h
Go to the documentation of this file.
1
7#ifndef BMNSSDSENSORPOINT_H
8#define BMNSSDSENSORPOINT_H 1
9
10#include <string>
11#include "Rtypes.h"
12
20{
21
22 public:
23
26
27
39 BmnSsdSensorPoint(Double_t x1, Double_t y1, Double_t z1,
40 Double_t x2, Double_t y2, Double_t z2,
41 Double_t p, Double_t eLoss, Double_t time,
42 Double_t bx = 0., Double_t by = 0., Double_t bz = 0.,
43 Int_t pid = 0);
44
46 virtual ~BmnSsdSensorPoint();
47
48
49 // --- Accessors --- //
50 Double_t GetX1() const { return fX1; }
51 Double_t GetY1() const { return fY1; }
52 Double_t GetZ1() const { return fZ1; }
53 Double_t GetX2() const { return fX2; }
54 Double_t GetY2() const { return fY2; }
55 Double_t GetZ2() const { return fZ2; }
56 Double_t GetP() const { return fP; }
57 Double_t GetELoss() const { return fELoss; }
58 Double_t GetTime() const { return fTime; }
59 Double_t GetBx() const { return fBx; }
60 Double_t GetBy() const { return fBy; }
61 Double_t GetBz() const { return fBz; }
62 Int_t GetPid() const { return fPid; }
63
64
66 std::string ToString() const;
67
68
69 private:
70
71 Double_t fX1;
72 Double_t fY1;
73 Double_t fZ1;
74 Double_t fX2;
75 Double_t fY2;
76 Double_t fZ2;
77 Double_t fP;
78 Double_t fELoss;
79 Double_t fTime;
80 Double_t fBx;
81 Double_t fBy;
82 Double_t fBz;
83 Int_t fPid;
84
85
86 ClassDef(BmnSsdSensorPoint,2);
87
88};
89
90#endif /* BMNSSDSENSORPOINT_H */
Container class for a local point in a SSD sensor.
Double_t GetTime() const
Time [ns].
Double_t GetZ2() const
Exit z coordinate [cm].
Double_t GetX2() const
Exit x coordinate [cm].
std::string ToString() const
Double_t GetZ1() const
Entry z coordinate [cm].
Double_t GetY2() const
Exit y coordinate [cm].
Int_t GetPid() const
Particle ID [PDG].
Double_t GetBx() const
Bx-Field at midpoint [T].
Double_t GetX1() const
Entry x coordinate [cm].
Double_t GetBy() const
By-Field at midpoint [T].
Double_t GetY1() const
Entry y coordinate [cm].
Double_t GetELoss() const
Energy loss [GeV].
Double_t GetP() const
Momentum magnitude.
Double_t GetBz() const
Bz-Field at midpoint [T].