SND@LHC Software
Loading...
Searching...
No Matches
vetoHit.h
Go to the documentation of this file.
1#ifndef vetoHIT_H
2#define vetoHIT_H 1
3#include "FairVolume.h"
4#include "ShipHit.h"
5#include "vetoPoint.h"
6#include "TObject.h"
7#include "TGeoShape.h"
8#include "TGeoPhysicalNode.h"
9
10class vetoHit : public ShipHit
11{
12 public:
13
15 vetoHit();
16
22 vetoHit(Int_t detID, Float_t adc);
24 virtual ~vetoHit();
25
27 Double_t GetX();
28 Double_t GetY();
29 Double_t GetZ();
30 TVector3 GetXYZ();
31 TGeoNode* GetNode();
33 void SetEloss(Double_t val){fdigi=val;}
34 void SetTDC(Double_t val){ft=val;}
35
38 virtual void Print(Int_t detID) const;
39 Float_t GetADC() const {return fdigi;}
40 Float_t GetTDC() const {return ft;}
41 Double_t GetEloss() {return fdigi;}
42 void setInvalid() {flag = false;}
43 void setIsValid() {flag = true;}
44 bool isValid() const {return flag;}
45 private:
46 Double_t ft;
47 vetoHit(const vetoHit& point);
48 vetoHit operator=(const vetoHit& point);
49
50 Float_t flag;
51
53
54};
55
56#endif
Float_t fdigi
digitized detector hit
Definition ShipHit.h:57
void SetTDC(Double_t val)
Definition vetoHit.h:34
void setInvalid()
Definition vetoHit.h:42
vetoHit(const vetoHit &point)
Float_t flag
flag
Definition vetoHit.h:50
vetoHit()
Definition vetoHit.cxx:19
Float_t GetADC() const
Definition vetoHit.h:39
Double_t GetX()
Definition vetoHit.cxx:49
ClassDef(vetoHit, 1)
Double_t GetY()
Definition vetoHit.cxx:53
Double_t GetZ()
Definition vetoHit.cxx:57
vetoHit operator=(const vetoHit &point)
Double_t ft
Definition vetoHit.h:46
bool isValid() const
Definition vetoHit.h:44
void setIsValid()
Definition vetoHit.h:43
TGeoNode * GetNode()
Definition vetoHit.cxx:61
Double_t GetEloss()
Definition vetoHit.h:41
virtual ~vetoHit()
Definition vetoHit.cxx:35
void SetEloss(Double_t val)
Definition vetoHit.h:33
TVector3 GetXYZ()
Definition vetoHit.cxx:38
Float_t GetTDC() const
Definition vetoHit.h:40
virtual void Print(Int_t detID) const
Definition vetoHit.cxx:100