MpdTpcSector.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #ifndef MPD_TPC_SECTOR_H
  2. #define MPD_TPC_SECTOR_H
  3. #include <TObject.h>
  4. #include <TVector2.h>
  5. #include <TF1.h>
  6. #include <vector>
  7. //#include "TpcPadPlaneSignals.h"
  8. //#include "TpcAvalanche.h"
  9. using namespace std;
  10. class TpcSector : public TObject {
  11. private:
  12. Float_t _sectorPhi; // angle of the middle of the sector
  13. Float_t _minX; // half of min sector width
  14. Float_t _maxX; // half of max sector width
  15. Float_t _midX; // half of mid sector width
  16. Float_t _outerPadWidth;
  17. Float_t _outerPadHeight;
  18. Float_t _innerPadWidth;
  19. Float_t _innerPadHeight;
  20. Float_t _dPhi2;
  21. Float_t _sectInnerHeight; // height of sector inner part
  22. Float_t _sectOuterHeight; // height of sector outer part
  23. Float_t _sectHeight; // height of whole sector
  24. Float_t _tpcLength; // length from electrode to padPlane
  25. Int_t *_numPadsInRow;
  26. Int_t *_numInnerPadsInRow;
  27. Int_t *_numOuterPadsInRow;
  28. Float_t _rMin;
  29. UInt_t _nRows;
  30. UInt_t _nInnerRows;
  31. UInt_t _nOuterRows;
  32. UInt_t _nSectors;
  33. UInt_t _nTimeBins;
  34. public:
  35. //constructors and destructors
  36. TpcSector();
  37. virtual ~TpcSector();
  38. // Float_t Phi() const { return _sectorPhi; }
  39. Float_t GetOuterPadHeight() const { return _outerPadHeight; }
  40. Float_t GetOuterPadWidth() const { return _outerPadWidth; }
  41. Float_t GetInnerPadHeight() const { return _innerPadHeight; }
  42. Float_t GetInnerPadWidth() const { return _innerPadWidth; }
  43. UInt_t GetNumRows() const { return _nRows; }
  44. UInt_t GetNumInnerRows() const { return _nInnerRows; }
  45. UInt_t GetNumOuterRows() const { return _nOuterRows; }
  46. UInt_t GetNumPadsInInnerRow(UInt_t row) const { return _numInnerPadsInRow[row]; }
  47. UInt_t GetNumPadsInOuterRow(UInt_t row) const { return _numOuterPadsInRow[row]; }
  48. UInt_t GetNumPadsInRow(UInt_t row) const { return _numPadsInRow[row]; }
  49. Float_t GetLength() const { return _tpcLength; }
  50. Float_t GetSectHeight() const { return _sectHeight; }
  51. Float_t GetSectInnerHeight() const { return _sectInnerHeight; }
  52. Int_t* GetArrayPadsInRow() const { return _numPadsInRow; }
  53. Int_t* GetArrayPadsInInnerRow() const { return _numInnerPadsInRow; }
  54. Int_t* GetArrayPadsInOuterRow() const { return _numOuterPadsInRow; }
  55. Float_t GetRmin() const {return _rMin;}
  56. UInt_t GetNSectors() const { return _nSectors; }
  57. UInt_t GetNTimeBins() const { return _nTimeBins; }
  58. Float_t GetMaxX() const { return _maxX; }
  59. Float_t GetMinX() const { return _minX; }
  60. Float_t GetMidX() const { return _midX; }
  61. ClassDef(TpcSector, 9)
  62. };
  63. #endif // TPC_SECTOR_H_