FairShip
Loading...
Searching...
No Matches
MTCDetPoint.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 SND_MTC_MTCDETPOINT_H_
6#define SND_MTC_MTCDETPOINT_H_
7
8#include "FairMCPoint.h"
9#include "TObject.h"
10#include "TVector3.h"
11
12class MTCDetPoint : public FairMCPoint {
13 public:
16
27 MTCDetPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
28 Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode);
29
31 virtual ~MTCDetPoint();
32
34 MTCDetPoint(const MTCDetPoint& point) = default;
35 MTCDetPoint& operator=(const MTCDetPoint& point) = default;
36
38 using FairMCPoint::Print;
39 virtual void Print() const;
40 Int_t PdgCode() const { return fPdgCode; }
41 Int_t GetLayer() const {
42 return static_cast<int>(fDetectorID / 1000000) % 100;
43 }
44 Int_t GetLayerType() const {
45 return static_cast<int>(fDetectorID / 100000) % 10;
46 }
47 Int_t fPdgCode;
48
49 ClassDef(MTCDetPoint, 3)
50};
51
52#endif // SND_MTC_MTCDETPOINT_H_
MTCDetPoint & operator=(const MTCDetPoint &point)=default
Int_t fPdgCode
Definition: MTCDetPoint.h:47
Int_t PdgCode() const
Definition: MTCDetPoint.h:40
MTCDetPoint(const MTCDetPoint &point)=default
Int_t GetLayer() const
Definition: MTCDetPoint.h:41
Int_t GetLayerType() const
Definition: MTCDetPoint.h:44
virtual void Print() const
Definition: MTCDetPoint.cxx:28
virtual ~MTCDetPoint()
Definition: MTCDetPoint.cxx:24