BmnRoot
Loading...
Searching...
No Matches
BmnSsdSensorPoint.cxx
Go to the documentation of this file.
1
8#include "BmnSsdSensorPoint.h"
9#include <sstream>
10
11using std::string;
12
13// --- Default constructor -----------------------------------------------
14BmnSsdSensorPoint::BmnSsdSensorPoint() : fX1(0.), fY1(0.), fZ1(0.),
15 fX2(0.), fY2(0.), fZ2(0.),
16 fP(0.), fELoss(0.), fTime(0.),
17 fBx(0.), fBy(0.), fBz(0.),
18 fPid(0) { }
19// -------------------------------------------------------------------------
20
21
22
23// --- Destructor --------------------------------------------------------
25// -------------------------------------------------------------------------
26
27
28
29// --- Standard constructor ----------------------------------------------
30BmnSsdSensorPoint::BmnSsdSensorPoint(Double_t x1, Double_t y1, Double_t z1,
31 Double_t x2, Double_t y2, Double_t z2,
32 Double_t p, Double_t eLoss, Double_t time,
33 Double_t bx, Double_t by, Double_t bz,
34 Int_t pid)
35 : fX1(x1), fY1(y1), fZ1(z1), fX2(x2), fY2(y2), fZ2(z2),
36 fP(p), fELoss(eLoss), fTime(time),
37 fBx(bx), fBy(by), fBz(bz), fPid(pid) { }
38// -------------------------------------------------------------------------
39
40
41
42// ----- String output -------------------------------------------------
44 std::stringstream ss;
45 ss << "PID: " << fPid << ", p = " << fP << ", eLoss = " << fELoss << ", "
46 << "in : (" << fX1 << ", " << fY1 << ", " << fZ1 << "), "
47 << "out: (" << fX2 << ", " << fY2 << ", " << fZ2 << "), "
48 << "at t = " << fTime << ", field " << fBy;
49 return ss.str();
50}
51// -------------------------------------------------------------------------
std::string ToString() const