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
32 const TVector3& digitizedPosition, 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 Int_t GetADC() const { return static_cast<Int_t>(fdigi); }
50 Int_t GetTileID() const { return fTileID; }
51 Bool_t IsTriggered() const { return fTriggered; }
52 void SetADC(Int_t adc) { SetDigi(adc); }
53 void SetTileID(Int_t tileID) { fTileID = tileID; }
54 void SetTriggered(Bool_t triggered) { fTriggered = triggered; }
55
58 void Print() const;
59
60 private:
61 Double_t fX;
62 Double_t fY;
63 Double_t fZ;
64 Double_t fTime;
65 Int_t fTileID;
66 Bool_t fTriggered;
67
69};
70
71#endif // UPSTREAMTAGGER_UPSTREAMTAGGERHIT_H_
void Print(const Option_t *opt="") const override
Definition DetectorHit.h:36
Float_t fdigi
digitized detector hit
Definition DetectorHit.h:39
void SetDigi(Float_t d)
Definition DetectorHit.h:32
Double_t fTime
Smeared time (ns).
Double_t fY
Digitized y position (cm).
Double_t GetX() const
Double_t GetY() const
Bool_t IsTriggered() const
~UpstreamTaggerHit() override=default
void SetTileID(Int_t tileID)
Int_t fTileID
Unique position- and tile-size-aware constituent ID.
Double_t GetZ() const
TVector3 GetXYZ() const
Double_t fZ
Digitized z position (cm).
ClassDefOverride(UpstreamTaggerHit, 3)
void SetADC(Int_t adc)
Double_t fX
Digitized x position (cm).
Double_t GetTime() const
void SetTriggered(Bool_t triggered)
Int_t GetTileID() const
UpstreamTaggerHit & operator=(const UpstreamTaggerHit &hit)=default
Bool_t fTriggered
True when ADC is at or above the trigger threshold.
UpstreamTaggerHit(const UpstreamTaggerHit &hit)=default