18 #include "GeometryHandler.hh"
41 std::vector<double> ends,
42 std::vector<double> radii,
43 std::vector<std::string> names = std::vector<std::string>());
49 Aperture&
operator=(
const Aperture& Aperture);
61 void Initialize(std::vector<double> starts = std::vector<double>(),
62 std::vector<double> ends = std::vector<double>(),
63 std::vector<double> radii = std::vector<double>(),
64 std::vector<std::string> names = std::vector<std::string>());
79 void Add(
double start,
double end,
double radius, std::string name =
"");
87 const double&
Radius(
double z)
const;
97 bool IsIn(
double x,
double y,
double z)
const;
104 void Draw(std::string name=
"",
double dz=1)
const;
~Aperture()
Destructor.
Definition: Aperture.cc:41
Aperture()
Default constructor, initilizes everything to 0.
Definition: Aperture.cc:5
bool IsIn(double x, double y, double z) const
Checks if the particle is within the apertures.
Definition: Aperture.cc:153
void SetMICEDefault(const std::string &filename)
Sets the default MICE apertures.
Definition: Aperture.cc:70
void Initialize(std::vector< double > starts=std::vector< double >(), std::vector< double > ends=std::vector< double >(), std::vector< double > radii=std::vector< double >(), std::vector< std::string > names=std::vector< std::string >())
Initializes the apertures.
Definition: Aperture.cc:43
Holds a set of beam line apertures.
Definition: Aperture.hh:28
std::vector< double > _starts
Starting points vector of the apertures.
Definition: Aperture.hh:108
std::vector< double > _apertures
Summary vector used to fetch the smallest.
Definition: Aperture.hh:107
std::vector< double > _ends
End points vector of the apertures.
Definition: Aperture.hh:109
Aperture & operator=(const Aperture &Aperture)
Equality operator.
Definition: Aperture.cc:28
void Add(double start, double end, double radius, std::string name="")
Adds a single aperture to the object.
Definition: Aperture.cc:85
std::vector< double > _radii
Radii of the apertures.
Definition: Aperture.hh:110
const double & Radius(double z) const
Checks the aperture radius at a given position along the beam line.
Definition: Aperture.cc:143
std::vector< std::string > _names
Names of the apertures.
Definition: Aperture.hh:111
void Draw(std::string name="", double dz=1) const
Draws the apertures on a canvas.
Definition: Aperture.cc:158