CbmRoot
Loading...
Searching...
No Matches
CbmStsSensorPoint.cxx
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
11#include "CbmStsSensorPoint.h"
12
13#include <sstream>
14
15using std::string;
16
17// --- Default constructor -----------------------------------------------
19 : fX1(0.)
20 , fY1(0.)
21 , fZ1(0.)
22 , fX2(0.)
23 , fY2(0.)
24 , fZ2(0.)
25 , fP(0.)
26 , fELoss(0.)
27 , fTime(0.)
28 , fBx(0.)
29 , fBy(0.)
30 , fBz(0.)
31 , fPid(0)
32{
33}
34// -------------------------------------------------------------------------
35
36
37// --- Destructor --------------------------------------------------------
39// -------------------------------------------------------------------------
40
41
42// --- Standard constructor ----------------------------------------------
43CbmStsSensorPoint::CbmStsSensorPoint(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2,
44 Double_t p, Double_t eLoss, Double_t time, Double_t bx, Double_t by, Double_t bz,
45 Int_t pid)
46 : fX1(x1)
47 , fY1(y1)
48 , fZ1(z1)
49 , fX2(x2)
50 , fY2(y2)
51 , fZ2(z2)
52 , fP(p)
53 , fELoss(eLoss)
54 , fTime(time)
55 , fBx(bx)
56 , fBy(by)
57 , fBz(bz)
58 , fPid(pid)
59{
60}
61// -------------------------------------------------------------------------
62
63
64// ----- String output -------------------------------------------------
66{
67 std::stringstream ss;
68 ss << "PID: " << fPid << ", p = " << fP << ", eLoss = " << fELoss << ", "
69 << "in : (" << fX1 << ", " << fY1 << ", " << fZ1 << "), "
70 << "out: (" << fX2 << ", " << fY2 << ", " << fZ2 << "), "
71 << "at t = " << fTime << ", field " << fBy;
72 return ss.str();
73}
74// -------------------------------------------------------------------------
75
76
ClassImp(CbmConverterManager)
Container class for a local point in a STS sensor.
Double_t fY2
Exit point y [cm].
Double_t fBy
Magnetic field y component at midpoint [T].
Double_t fP
Momentum magnitude at entry point [GeV].
Double_t fX2
Exit point x [cm].
std::string ToString() const
Double_t fZ1
Entry point z [cm].
Double_t fTime
Time [ns].
Double_t fX1
Entry point x [cm].
Double_t fY1
Entry point y [cm].
Double_t fELoss
Energy deposit [GeV].
Int_t fPid
Particle Type [PDG code].
Double_t fZ2
Exit point z [cm].