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