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
11
class
MTCDetPoint
:
public
SHiP::DetectorPoint
{
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
39
ClassDefOverride
(
MTCDetPoint
, 4)
40
};
41
42
#endif
// SND_MTC_MTCDETPOINT_H_
DetectorPoint.h
MTCDetPoint
Definition
MTCDetPoint.h:11
MTCDetPoint::GetLayer
Int_t GetLayer() const
Definition
MTCDetPoint.h:32
MTCDetPoint::GetLayerType
Int_t GetLayerType() const
Definition
MTCDetPoint.h:35
MTCDetPoint::MTCDetPoint
MTCDetPoint()=default
MTCDetPoint::MTCDetPoint
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
SHiP::DetectorPoint
Definition
DetectorPoint.h:14
SHiP::DetectorPoint::ClassDefOverride
ClassDefOverride(SHiP::DetectorPoint, 1)
SHiP::DetectorPoint::DetectorPoint
DetectorPoint()=default
SHiP
Definition
ActsFrame.hpp:19
SND
MTC
MTCDetPoint.h
Generated by
Doxygen
1.15.0