LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeoCylinder.h
Go to the documentation of this file.
1 
14 #ifndef BASICTOOL_GEOCYLINDER_H
15 #define BASICTOOL_GEOCYLINDER_H
16 
20 
21 namespace geoalgo {
31  class Cylinder : public Line {
32 
33  public:
35  Cylinder();
36 
38  virtual ~Cylinder(){};
39 
41  Cylinder(const double x_min,
42  const double y_min,
43  const double z_min,
44  const double x_max,
45  const double y_max,
46  const double z_max,
47  const double radius);
48 
50  Cylinder(const Point_t& min, const Vector_t& max, const double radius);
51 
53  bool Contain(const Point_t& pt) const;
54 
56  double GetRadius() { return _radius; }
58  void SetRadius(double r) { _radius = r; }
59 
60  protected:
61  double _radius;
62 
63  // geoalgo utility
65  };
66 
68 }
69 #endif
70  // end of doxygen group
TRandom r
Definition: spectrum.C:23
Algorithm to compute various geometrical relation among geometrical objects. In particular functions ...
Definition: GeoAlgo.h:43
Class def header for a class Line.
double x_min
Definition: berger.C:15
double _radius
Radius of the cylinder.
Definition: GeoCylinder.h:61
Class def header for a class Point and Vector.
Float_t radius
Definition: plot.C:23
double GetRadius()
Getters.
Definition: GeoCylinder.h:56
void SetRadius(double r)
Setters.
Definition: GeoCylinder.h:58
TMarker * pt
Definition: egs.C:25
Cylinder()
Default constructor.
Definition: GeoCylinder.cxx:6
Representation of a 3D infinite line. Defines an infinite 3D line by having 2 points which completely...
Definition: GeoLine.h:27
double x_max
Definition: berger.C:16
bool Contain(const Point_t &pt) const
Containment evaluation.
Definition: GeoCylinder.cxx:25
Representation of a 3D Cylinder volume. A Cylinder object inherits from a geoalgo::Line.
Definition: GeoCylinder.h:31
Class def header for a class GeoAlgo.
Cylinder Cylinder_t
Definition: GeoCylinder.h:67
virtual ~Cylinder()
Default destructor.
Definition: GeoCylinder.h:38