SND@LHC Software
Loading...
Searching...
No Matches
UpstreamTaggerHit.h
Go to the documentation of this file.
1#ifndef UpstreamTaggerHIT_H
2#define UpstreamTaggerHIT_H 1
3#include "FairVolume.h"
4#include "ShipHit.h"
6#include "UpstreamTagger.h"
7#include "TObject.h"
8#include "TGeoShape.h"
9#include "TGeoPhysicalNode.h"
10
11
13{
14 public:
15
18
20
22 virtual ~UpstreamTaggerHit();
23
25 Double_t GetX();
26 Double_t GetY();
27 Double_t GetZ();
28 TVector3 GetXYZ();
29
30
31 TGeoNode* GetNode(Double_t &hit_final, Int_t &mod);
32 std::vector<double> GetTime(Double_t x);
33 std::vector<double> GetTime();
34 std::vector<double> GetMeasurements();
36 void SetTDC(Float_t val1, Float_t val2){t_1=val1;t_2=val2;}
37 void SetPoint(Double_t p1, Double_t p2, Double_t p3){point_final[0]=p1;point_final[1]=p2;point_final[2]=p3;}
39 virtual void Print() const;
40
41 void Dist(Float_t x, Float_t& lpos, Float_t& lneg);
42 void setInvalid() {flag = false;}
43 void setIsValid() {flag = true;}
44 Int_t GetModule() const {return RpcModule;}
45 Int_t GetGlass() const {return RpcGlass;}
46 Int_t GetStrip() const {return RpcStrip;}
47 Int_t GetNeighbour() const {return Rpc_NeighbourStrip;}
48 Int_t GetRpcDetector() const {return RpcDetector;}
49
50 //Rpc time is invalid if isValid returns False
51 bool isValid() const {return flag;}
52 private:
55 Double_t v_drift = 17.7;// cm/ns
56 Double_t T_resol = 0.283; // Rpc time resolution in ns
57
59 Double_t point_final[3];
60 const Double_t * mom[3];
61
62 Float_t flag;
63 Float_t t_1,t_2;
64 Int_t RpcModule; //Rpc module
65 Int_t RpcGlass; //Rpc glass
66 Int_t RpcStrip; //Rpc Strip
67 Int_t RpcDetector; //Rpc detector 1 or 2
68 Int_t Rpc_NeighbourStrip; //Neighbour strip likely to be activated
69 Double_t det_zdet1;
70
72
73};
74
75#endif
UpstreamTaggerHit(const UpstreamTaggerHit &point)
Int_t GetRpcDetector() const
void SetPoint(Double_t p1, Double_t p2, Double_t p3)
UpstreamTaggerHit operator=(const UpstreamTaggerHit &point)
Int_t GetNeighbour() const
Int_t GetGlass() const
TGeoNode * GetNode(Double_t &hit_final, Int_t &mod)
Int_t GetModule() const
std::vector< double > GetTime()
virtual void Print() const
const Double_t * mom[3]
ClassDef(UpstreamTaggerHit, 1)
z-position of veto station
Int_t GetStrip() const
Float_t t_2
TDC on both sides.
void SetTDC(Float_t val1, Float_t val2)
std::vector< double > GetMeasurements()
UpstreamTagger * c0
void Dist(Float_t x, Float_t &lpos, Float_t &lneg)