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#include <Math/Vector3Dfwd.h>
16#include <RtypesCore.h>
17#include <iostream>
18#include <ostream>
19
20// NOLINTBEGIN(misc-include-cleaner)
21#include <Math/Vector3D.h>
22// NOLINTEND(misc-include-cleaner)
23
24auto operator<<(std::ostream& ostream, const R3BNeulandPoint& point) -> std::ostream&
25{
26 ostream << "R3BNeulandPoint: NeuLAND Point in Paddle " << point.GetPaddle() << " with light yield "
27 << point.GetLightYield() << "\n";
28 // TODO: #fairroot: Move this to FairMCPoint
29 ostream << "... with FairMCPoint for track " << point.GetTrackID() << "\n";
30 ostream << " Position XYZ: " << point.GetPosition().X() << " " << point.GetPosition().X() << " "
31 << point.GetPosition().Z() << "\n";
32 ostream << " Momentum XYZ: " << point.GetMomentum().X() << " " << point.GetMomentum().X() << " "
33 << point.GetMomentum().Z() << "\n";
34 ostream << " Time: " << point.GetTime() << " Length: " << point.GetLength()
35 << " Energy loss: " << point.GetEnergyLoss() << "\n";
36 return ostream;
37}
38
39void R3BNeulandPoint::Print(const Option_t* /*opt*/) const { std::cout << *this; }
auto operator<<(std::ostream &ostream, const R3BNeulandPoint &point) -> std::ostream &
void Print(const Option_t *) const override