R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandPoint.cxx
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#include "R3BNeulandPoint.h"
15
16using namespace std;
17
19{
20 TVector3 v;
21 // Momentum(v); // TODO: #fairroot: FairMCPoint not const
22 v.SetXYZ(fPx, fPy, fPz);
23 return v;
24}
25
27{
28 TVector3 v;
29 Position(v);
30 return v;
31}
32
33ostream& operator<<(ostream& os, const R3BNeulandPoint& point)
34{
35 os << "R3BNeulandPoint: NeuLAND Point in Paddle " << point.GetPaddle() << " with light yield "
36 << point.GetLightYield() << std::endl;
37 // TODO: #fairroot: Move this to FairMCPoint
38 os << "... with FairMCPoint for track " << point.GetTrackID() << std::endl;
39 os << " Position XYZ: " << point.GetPosition().X() << " " << point.GetPosition().X() << " "
40 << point.GetPosition().Z() << std::endl;
41 os << " Momentum XYZ: " << point.GetMomentum().X() << " " << point.GetMomentum().X() << " "
42 << point.GetMomentum().Z() << std::endl;
43 os << " Time: " << point.GetTime() << " Length: " << point.GetLength()
44 << " Energy loss: " << point.GetEnergyLoss() << std::endl;
45 return os;
46}
47
48void R3BNeulandPoint::Print(const Option_t*) const { std::cout << *this; }
49
ClassImp(R3B::Neuland::Cal2HitPar)
ostream & operator<<(ostream &os, const R3BNeulandPoint &point)
void Print(const Option_t *) const override
auto GetPaddle() const -> int
auto GetLightYield() const -> double
auto GetPosition() const -> TVector3
auto GetMomentum() const -> TVector3