PandaRoot
PndFtsTube.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDFTSTUBE_H
14 #define PNDFTSTUBE_H 1
15 
16 #include "TVector3.h"
17 #include "TMatrixT.h"
18 #include "TObject.h"
19 
20 class PndFtsTube : public TObject {
21 
22  public:
24  PndFtsTube();
25  PndFtsTube(PndFtsTube &tube);
26 
27  ~PndFtsTube();
28  PndFtsTube(Double_t x, Double_t y, Double_t z, Double_t r11, Double_t r12, Double_t r13, Double_t r21, Double_t r22, Double_t r23, Double_t r31, Double_t r32, Double_t r33,
29  Double_t radin, Double_t radout, Double_t hl);
30 
31  TVector3 GetPosition() const;
32  TMatrixT<Double_t> GetRotationMatrix() const;
33  Double_t GetRadIn() const;
34  Double_t GetRadOut() const;
35  Double_t GetHalfLength() const;
36  TVector3 GetWireDirection() const;
37 
38  bool IsSkew() const { return (0. != GetWireDirection().X()); }
39 
40  private:
41  TVector3 fCenPosition;
42  TMatrixT<double> fRotationMatrix;
43  Double_t fRadIn, fRadOut, fHalfLength;
44 
45  ClassDef(PndFtsTube, 1);
46 };
47 
48 #endif
Double_t GetRadOut() const
Double_t GetRadIn() const
TVector3 GetPosition() const
TMatrixT< Double_t > GetRotationMatrix() const
Double_t GetHalfLength() const
bool IsSkew() const
Definition: PndFtsTube.h:38
TVector3 GetWireDirection() const