CbmRoot
compareTrdPoint.h
Go to the documentation of this file.
1 #ifndef COMPARETRDPOINT_H
2 #define COMPARETRDPOINT_H 1
3 
4 #include "compareFairMCPoint.h"
5 
7  Int_t trackID,
8  Int_t detID,
9  TVector3 posin,
10  TVector3 momin,
11  TVector3 posout,
12  TVector3 momout,
13  Double_t tof,
14  Double_t length,
15  Double_t eLoss,
16  Int_t eventid) {
17 
18  FairMCPoint test1 = static_cast<FairMCPoint>(test);
20  test1, trackID, detID, posin, momin, tof, length, eLoss, eventid);
21 
22  Int_t retValInt {-222};
23  Double_t retValDouble {-222.};
24 
25  retValInt = test.GetModuleAddress();
26  EXPECT_EQ(detID, retValInt);
27 
28  retValDouble = test.GetXIn();
29  EXPECT_EQ(posin.X(), retValDouble);
30 
31  retValDouble = test.GetXOut();
32  EXPECT_EQ(posout.X(), retValDouble);
33 
34  retValDouble = test.GetPxIn();
35  EXPECT_EQ(momin.Px(), retValDouble);
36 
37  retValDouble = test.GetPxOut();
38  EXPECT_EQ(momout.Px(), retValDouble);
39 
40  retValDouble = test.GetYIn();
41  EXPECT_EQ(posin.Y(), retValDouble);
42 
43  retValDouble = test.GetYOut();
44  EXPECT_EQ(posout.Y(), retValDouble);
45 
46  retValDouble = test.GetPyIn();
47  EXPECT_EQ(momin.Py(), retValDouble);
48 
49  retValDouble = test.GetPyOut();
50  EXPECT_EQ(momout.Py(), retValDouble);
51 
52  retValDouble = test.GetZIn();
53  EXPECT_EQ(posin.Z(), retValDouble);
54 
55  retValDouble = test.GetZOut();
56  EXPECT_EQ(posout.Z(), retValDouble);
57 
58  retValDouble = test.GetPzIn();
59  EXPECT_EQ(momin.Pz(), retValDouble);
60 
61  retValDouble = test.GetPzOut();
62  EXPECT_EQ(momout.Pz(), retValDouble);
63 }
64 
65 #endif // COMPARETRDDIGI_H
CbmTrdPoint::GetPxIn
Double_t GetPxIn() const
Definition: CbmTrdPoint.h:72
CbmTrdPoint::GetYOut
Double_t GetYOut() const
Definition: CbmTrdPoint.h:67
CbmTrdPoint::GetZIn
Double_t GetZIn() const
Definition: CbmTrdPoint.h:65
CbmTrdPoint::GetXOut
Double_t GetXOut() const
Definition: CbmTrdPoint.h:66
CbmTrdPoint::GetPyIn
Double_t GetPyIn() const
Definition: CbmTrdPoint.h:73
compareFairMCPoint.h
CbmTrdPoint::GetPyOut
Double_t GetPyOut() const
Definition: CbmTrdPoint.h:70
CbmTrdPoint::GetZOut
Double_t GetZOut() const
Definition: CbmTrdPoint.h:68
compareTrdPointDataMembers
void compareTrdPointDataMembers(CbmTrdPoint &test, Int_t trackID, Int_t detID, TVector3 posin, TVector3 momin, TVector3 posout, TVector3 momout, Double_t tof, Double_t length, Double_t eLoss, Int_t eventid)
Definition: compareTrdPoint.h:6
CbmTrdPoint::GetPxOut
Double_t GetPxOut() const
Definition: CbmTrdPoint.h:69
CbmTrdPoint
Definition: CbmTrdPoint.h:23
CbmTrdPoint::GetPzOut
Double_t GetPzOut() const
Definition: CbmTrdPoint.h:71
CbmTrdPoint::GetXIn
Double_t GetXIn() const
Definition: CbmTrdPoint.h:63
CbmTrdPoint::GetModuleAddress
Int_t GetModuleAddress() const
Definition: CbmTrdPoint.h:76
CbmTrdPoint::GetYIn
Double_t GetYIn() const
Definition: CbmTrdPoint.h:64
CbmTrdPoint::GetPzIn
Double_t GetPzIn() const
Definition: CbmTrdPoint.h:74
compareFairMCPointDataMembers
void compareFairMCPointDataMembers(FairMCPoint &test, Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eloss, Int_t eventid)
Definition: compareFairMCPoint.h:8