FairShip
Loading...
Searching...
No Matches
vetoHit.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 VETO_VETOHIT_H_
6#define VETO_VETOHIT_H_
7#include "DetectorHit.h"
8
9class TGeoNode;
10
11class vetoHit : public SHiP::DetectorHit {
12 public:
14 vetoHit();
15
21 vetoHit(Int_t detID, Float_t adc);
23 ~vetoHit() override = default;
24
26 Double_t GetX() const;
27 Double_t GetY() const;
28 Double_t GetZ() const;
29 TVector3 GetXYZ() const;
30 TGeoNode* GetNode() const;
32 void SetEloss(Double_t val) { fdigi = val; }
33 void SetTDC(Double_t val) { ft = val; }
34
37 void Print(Int_t detID) const;
38 Float_t GetADC() const { return fdigi; }
39 Float_t GetTDC() const { return ft; }
40 Double_t GetEloss() const { return fdigi; }
41 void setInvalid() { flag = false; }
42 void setIsValid() { flag = true; }
43 bool isValid() const { return flag; }
44
45 vetoHit(const vetoHit& point) = default;
46 vetoHit& operator=(const vetoHit& point) = default;
47
48 private:
49 Double_t ft{-1.};
50 Bool_t flag{true};
51
53};
54
55#endif // VETO_VETOHIT_H_
void Print(const Option_t *opt="") const override
Definition: DetectorHit.h:36
Float_t fdigi
digitized detector hit
Definition: DetectorHit.h:39
void SetTDC(Double_t val)
Definition: vetoHit.h:33
void setInvalid()
Definition: vetoHit.h:41
vetoHit()
Definition: vetoHit.cxx:24
Float_t GetADC() const
Definition: vetoHit.h:38
ClassDef(vetoHit, 2)
Double_t GetX() const
Definition: vetoHit.cxx:45
vetoHit & operator=(const vetoHit &point)=default
Double_t ft
Definition: vetoHit.h:49
~vetoHit() override=default
Double_t GetZ() const
Definition: vetoHit.cxx:53
TVector3 GetXYZ() const
Definition: vetoHit.cxx:32
bool isValid() const
Definition: vetoHit.h:43
void setIsValid()
Definition: vetoHit.h:42
vetoHit(const vetoHit &point)=default
Bool_t flag
validity flag
Definition: vetoHit.h:50
TGeoNode * GetNode() const
Definition: vetoHit.cxx:57
Double_t GetEloss() const
Definition: vetoHit.h:40
void SetEloss(Double_t val)
Definition: vetoHit.h:32
Double_t GetY() const
Definition: vetoHit.cxx:49
Float_t GetTDC() const
Definition: vetoHit.h:39
void Print(Int_t detID) const
Definition: vetoHit.cxx:96