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 "DetectorPoint.h"
9#include "TVector3.h"
10
12 public:
14 MTCDetPoint() = default;
15
26 MTCDetPoint(Int_t trackID, Int_t detID, const TVector3& pos,
27 const TVector3& mom, Double_t tof, Double_t length,
28 Double_t eLoss, Int_t pdgCode)
29 : SHiP::DetectorPoint(0, trackID, detID, pos, mom, tof, length, eLoss,
30 pdgCode) {}
31
32 Int_t GetLayer() const {
33 return static_cast<int>(fDetectorID / 1000000) % 100;
34 }
35 Int_t GetLayerType() const {
36 return static_cast<int>(fDetectorID / 100000) % 10;
37 }
38
40};
41
42#endif // SND_MTC_MTCDETPOINT_H_
Int_t GetLayer() const
Definition MTCDetPoint.h:32
Int_t GetLayerType() const
Definition MTCDetPoint.h:35
MTCDetPoint()=default
MTCDetPoint(Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
Definition MTCDetPoint.h:26
ClassDefOverride(SHiP::DetectorPoint, 1)
DetectorPoint()=default