FairShip
Loading...
Searching...
No Matches
vetoHitOnTrack Class Reference

#include <vetoHitOnTrack.h>

Inheritance diagram for vetoHitOnTrack:
Collaboration diagram for vetoHitOnTrack:

Public Member Functions

 vetoHitOnTrack ()
 
 vetoHitOnTrack (Int_t hitID, Float_t dist)
 
virtual ~vetoHitOnTrack ()
 
Double_t GetDist () const
 
Int_t GetHitID () const
 
void SetDist (Float_t d)
 
void SetHitID (Int_t hitID)
 
virtual void Print (const Option_t *opt="") const
 

Protected Member Functions

 ClassDef (vetoHitOnTrack, 2)
 

Protected Attributes

Float_t fDist
 distance to closest veto hit
 
Int_t fHitID
 hit ID
 

Detailed Description

copied from shipdata/ShipHit.h

Definition at line 15 of file vetoHitOnTrack.h.

Constructor & Destructor Documentation

◆ vetoHitOnTrack() [1/2]

vetoHitOnTrack::vetoHitOnTrack ( )

Default constructor

Definition at line 8 of file vetoHitOnTrack.cxx.

8: TObject(), fDist(-1), fHitID(-1) {}
Int_t fHitID
hit ID
Float_t fDist
distance to closest veto hit

◆ vetoHitOnTrack() [2/2]

vetoHitOnTrack::vetoHitOnTrack ( Int_t  hitID,
Float_t  dist 
)

Constructor with hit parameters

Definition at line 12 of file vetoHitOnTrack.cxx.

13 : TObject(), fDist(dist), fHitID(hitID) {}

◆ ~vetoHitOnTrack()

vetoHitOnTrack::~vetoHitOnTrack ( )
virtual

Destructor

Definition at line 18 of file vetoHitOnTrack.cxx.

18{}

Member Function Documentation

◆ ClassDef()

vetoHitOnTrack::ClassDef ( vetoHitOnTrack  ,
 
)
protected

◆ GetDist()

Double_t vetoHitOnTrack::GetDist ( ) const
inline

Accessors

Definition at line 27 of file vetoHitOnTrack.h.

27{ return fDist; };

◆ GetHitID()

Int_t vetoHitOnTrack::GetHitID ( ) const
inline

Definition at line 28 of file vetoHitOnTrack.h.

28{ return fHitID; };

◆ Print()

virtual void vetoHitOnTrack::Print ( const Option_t *  opt = "") const
inlinevirtual

Definition at line 35 of file vetoHitOnTrack.h.

35{ ; }

◆ SetDist()

void vetoHitOnTrack::SetDist ( Float_t  d)
inline

Modifiers

Definition at line 31 of file vetoHitOnTrack.h.

◆ SetHitID()

void vetoHitOnTrack::SetHitID ( Int_t  hitID)
inline

Definition at line 32 of file vetoHitOnTrack.h.

32{ fHitID = hitID; }

Member Data Documentation

◆ fDist

Float_t vetoHitOnTrack::fDist
protected

distance to closest veto hit

Definition at line 38 of file vetoHitOnTrack.h.

◆ fHitID

Int_t vetoHitOnTrack::fHitID
protected

hit ID

Definition at line 39 of file vetoHitOnTrack.h.


The documentation for this class was generated from the following files: