FairShip
Loading...
Searching...
No Matches
UpstreamTaggerHit.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 UPSTREAMTAGGER_UPSTREAMTAGGERHIT_H_
6#define UPSTREAMTAGGER_UPSTREAMTAGGERHIT_H_
7
8#include "DetectorHit.h"
9#include "TVector3.h"
10
12
21 public:
24
31 UpstreamTaggerHit(UpstreamTaggerPoint* p, Double_t t0, Double_t pos_res,
32 Double_t time_res);
33
35 ~UpstreamTaggerHit() override = default;
36
38 UpstreamTaggerHit(const UpstreamTaggerHit& hit) = default;
40
42 Double_t GetX() const { return fX; }
43 Double_t GetY() const { return fY; }
44 Double_t GetZ() const { return fZ; }
45 TVector3 GetXYZ() const { return TVector3(fX, fY, fZ); }
46
48 Double_t GetTime() const { return fTime; }
49
52 void Print() const;
53
54 private:
55 Double_t fX;
56 Double_t fY;
57 Double_t fZ;
58 Double_t fTime;
59
61};
62
63#endif // UPSTREAMTAGGER_UPSTREAMTAGGERHIT_H_
void Print(const Option_t *opt="") const override
Definition: DetectorHit.h:36
Hit class for UpstreamTagger scoring plane.
ClassDef(UpstreamTaggerHit, 2)
Double_t fTime
Smeared time (ns)
Double_t fY
Smeared y position (cm)
Double_t GetX() const
Double_t GetY() const
~UpstreamTaggerHit() override=default
Double_t GetZ() const
TVector3 GetXYZ() const
Double_t fZ
Smeared z position (cm)
Double_t fX
Smeared x position (cm)
Double_t GetTime() const
UpstreamTaggerHit & operator=(const UpstreamTaggerHit &hit)=default
UpstreamTaggerHit(const UpstreamTaggerHit &hit)=default