FairShip
Loading...
Searching...
No Matches
DetectorHit.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 DETECTOR_DETECTORHIT_H_
6#define DETECTOR_DETECTORHIT_H_
7
8#include "Rtypes.h" // for Double_t, Int_t, Float_t, etc
9#include "TObject.h" //
10#include "TVector3.h" // for TVector3
11
12namespace SHiP {
16class DetectorHit : public TObject {
17 public:
20
22 DetectorHit(Int_t detID, Float_t digi);
23
25 ~DetectorHit() override = default;
26
28 Double_t GetDigi() const { return fdigi; };
29 Int_t GetDetectorID() const { return fDetectorID; };
30
32 void SetDigi(Float_t d) { fdigi = d; }
33 void SetDetectorID(Int_t detID) { fDetectorID = detID; }
34
35 /*** Output to screen */
36 void Print(const Option_t* opt = "") const override {}
37
38 protected:
39 Float_t fdigi;
41
43};
44} // namespace SHiP
45
46#endif // DETECTOR_DETECTORHIT_H_
void SetDetectorID(Int_t detID)
Definition: DetectorHit.h:33
void Print(const Option_t *opt="") const override
Definition: DetectorHit.h:36
Float_t fdigi
digitized detector hit
Definition: DetectorHit.h:39
Int_t GetDetectorID() const
Definition: DetectorHit.h:29
~DetectorHit() override=default
void SetDigi(Float_t d)
Definition: DetectorHit.h:32
ClassDefOverride(SHiP::DetectorHit, 1)
Int_t fDetectorID
Detector unique identifier.
Definition: DetectorHit.h:40
Double_t GetDigi() const
Definition: DetectorHit.h:28
Definition: Detector.h:18