CbmRoot
Loading...
Searching...
No Matches
CbmStsSensorPoint.h
Go to the documentation of this file.
1/* Copyright (C) 2013-2016 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
10#ifndef CBMSTSSENSORPOINT_H
11#define CBMSTSSENSORPOINT_H 1
12
13#include "Rtypes.h"
14
15#include <string>
16
25
26public:
29
30
42 CbmStsSensorPoint(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2, Double_t p,
43 Double_t eLoss, Double_t time, Double_t bx = 0., Double_t by = 0., Double_t bz = 0., Int_t pid = 0);
44
46 virtual ~CbmStsSensorPoint();
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
69private:
70 Double_t fX1;
71 Double_t fY1;
72 Double_t fZ1;
73 Double_t fX2;
74 Double_t fY2;
75 Double_t fZ2;
76 Double_t fP;
77 Double_t fELoss;
78 Double_t fTime;
79 Double_t fBx;
80 Double_t fBy;
81 Double_t fBz;
82 Int_t fPid;
83
84
86};
87
88#endif /* CBMSTSSENSORPOINT_H */
Container class for a local point in a STS sensor.
Int_t GetPid() const
Particle ID [PDG].
Double_t fY2
Exit point y [cm].
Double_t GetY2() const
Exit y coordinate [cm].
Double_t fBy
Magnetic field y component at midpoint [T].
Double_t fP
Momentum magnitude at entry point [GeV].
Double_t GetBx() const
Bx-Field at midpoint [T].
Double_t fX2
Exit point x [cm].
Double_t GetY1() const
Entry y coordinate [cm].
ClassDef(CbmStsSensorPoint, 2)
Double_t GetP() const
Momentum magnitude.
std::string ToString() const
Double_t fZ1
Entry point z [cm].
Double_t GetBz() const
Bz-Field at midpoint [T].
Double_t GetX1() const
Entry x coordinate [cm].
Double_t GetZ1() const
Entry z coordinate [cm].
Double_t fBz
Magnetic field z component at midpoint [T].
Double_t GetBy() const
By-Field at midpoint [T].
Double_t fTime
Time [ns].
Double_t fX1
Entry point x [cm].
Double_t GetX2() const
Exit x coordinate [cm].
Double_t fBx
Magnetic field x component at midpoint [T].
Double_t fY1
Entry point y [cm].
Double_t GetTime() const
Time [ns].
Double_t fELoss
Energy deposit [GeV].
Int_t fPid
Particle Type [PDG code].
Double_t GetZ2() const
Exit z coordinate [cm].
Double_t fZ2
Exit point z [cm].
Double_t GetELoss() const
Energy loss [GeV].