FairShip
Loading...
Searching...
No Matches
DetectorPoint.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#ifndef DETECTOR_DETECTORPOINT_H_
6#define DETECTOR_DETECTORPOINT_H_
7
8#include <array>
9
10#include "FairMCPoint.h"
11#include "TVector3.h"
12
13namespace SHiP {
14class DetectorPoint : public FairMCPoint {
15 public:
16 DetectorPoint() = default;
17 ~DetectorPoint() override = default;
18
19 DetectorPoint(Int_t eventID, Int_t trackID, Int_t detID, const TVector3& pos,
20 const TVector3& mom, Double_t tof, Double_t length,
21 Double_t eLoss, Int_t pdgCode, const TVector3& Lpos,
22 const TVector3& Lmom);
23
24 DetectorPoint(Int_t eventID, Int_t trackID, Int_t detID, const TVector3& pos,
25 const TVector3& mom, Double_t tof, Double_t length,
26 Double_t eLoss, Int_t pdgCode);
27
29 DetectorPoint(const DetectorPoint& point) = default;
30 DetectorPoint& operator=(const DetectorPoint& point) = default;
31
33 using FairMCPoint::Print;
34 virtual void Print() const;
35 Int_t PdgCode() const { return fPdgCode; }
36 TVector3 LastPoint() const { return TVector3(fLpos[0], fLpos[1], fLpos[2]); }
37 TVector3 LastMom() const { return TVector3(fLmom[0], fLmom[1], fLmom[2]); }
38
39 virtual void extraPrintInfo() const;
40
41 protected:
42 Int_t fPdgCode;
43 std::array<Double_t, 3> fLpos, fLmom;
44
45 private:
47};
48} // namespace SHiP
49
50#endif // DETECTOR_DETECTORPOINT_H_
~DetectorPoint() override=default
DetectorPoint(const DetectorPoint &point)=default
DetectorPoint & operator=(const DetectorPoint &point)=default
ClassDefOverride(SHiP::DetectorPoint, 1)
Int_t PdgCode() const
TVector3 LastPoint() const
DetectorPoint()=default
TVector3 LastMom() const
std::array< Double_t, 3 > fLmom
virtual void Print() const
virtual void extraPrintInfo() const
std::array< Double_t, 3 > fLpos