FairShip
Loading...
Searching...
No Matches
vetoHitOnTrack.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_VETOHITONTRACK_H_
6#define VETO_VETOHITONTRACK_H_
7
8#include "Rtypes.h" // for Double_t, Int_t, Double32_t, etc
9#include "TObject.h" //
10#include "TVector3.h" // for TVector3
11
15class vetoHitOnTrack : public TObject {
16 public:
19
21 vetoHitOnTrack(Int_t hitID, Float_t dist);
22
24 virtual ~vetoHitOnTrack();
25
27 Double_t GetDist() const { return fDist; };
28 Int_t GetHitID() const { return fHitID; };
29
31 void SetDist(Float_t d) { fDist = d; }
32 void SetHitID(Int_t hitID) { fHitID = hitID; }
33
34 /*** Output to screen */
35 virtual void Print(const Option_t* opt = "") const { ; }
36
37 protected:
38 Float_t fDist;
39 Int_t fHitID;
40
42};
43
44#endif // VETO_VETOHITONTRACK_H_
Double_t GetDist() const
virtual ~vetoHitOnTrack()
virtual void Print(const Option_t *opt="") const
void SetDist(Float_t d)
Int_t fHitID
hit ID
ClassDef(vetoHitOnTrack, 2)
Float_t fDist
distance to closest veto hit
void SetHitID(Int_t hitID)
Int_t GetHitID() const