CocoaSolidShapeTubs

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//   COCOA class header file
// Id:  CocoaSolidShapeTubs.h
//
//   History: v1.0
//   Pedro Arce

#ifndef _CocoaSolidShapeTubs_HH
#define _CocoaSolidShapeTubs_HH

#include "Alignment/CocoaDDLObjects/interface/CocoaSolidShape.h"
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <CLHEP/Units/SystemOfUnits.h>

class CocoaSolidShapeTubs : public CocoaSolidShape {
public:
  //---------- Constructors / Destructor
  CocoaSolidShapeTubs(const ALIstring pType,
                      ALIfloat pRMin,
                      ALIfloat pRMax,
                      ALIfloat pDz,
                      ALIfloat pSPhi = 0. * CLHEP::deg,
                      ALIfloat pDPhi = 360. * CLHEP::deg);
  ~CocoaSolidShapeTubs() override {}
  ALIfloat getInnerRadius() const { return theInnerRadius; }
  ALIfloat getOuterRadius() const { return theOuterRadius; }
  ALIfloat getZHalfLength() const { return theZHalfLength; }
  ALIfloat getStartPhiAngle() const { return theStartPhiAngle; }
  ALIfloat getDeltaPhiAngle() const { return theDeltaPhiAngle; }

private:
  ALIfloat theInnerRadius;
  ALIfloat theOuterRadius;
  ALIfloat theZHalfLength;
  ALIfloat theStartPhiAngle;
  ALIfloat theDeltaPhiAngle;
};

#endif