LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GFRectFinitePlane.h
Go to the documentation of this file.
1 /* Copyright 2008-2010, Technische Universitaet Muenchen,
2  Authors: Christian Hoeppner & Sebastian Neubert
3 
4  This file is part of GENFIT.
5 
6  GENFIT is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  GENFIT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
29 #ifndef GFRECTFINITEPLANE_H
30 #define GFRECTFINITEPLANE_H
31 
33 #include <iostream>
34 #include <stdexcept> // std::logic_error
35 
39 namespace genf {
40 
42  public:
43  //override inActive & Print methods
44  bool inActive(const double& u, const double& v) const;
45  void Print(std::ostream& out = std::cout) const;
46 
48  GFRectFinitePlane(const double&, const double&, const double&, const double&);
50 
51  virtual ~GFRectFinitePlane();
52 
53  GFAbsFinitePlane* clone() const { return new GFRectFinitePlane(*this); }
54 
55  private:
56  double fUmin, fUmax, fVmin, fVmax;
57 
58  virtual void Print(Option_t*) const
59  {
60  throw std::logic_error(std::string(__func__) + "::Print(Option_t*) not available");
61  }
62  // public:
63  //ClassDef(GFRectFinitePlane,1)
64  };
65 
66 } // namespace genf
67 
68 #endif
69 
Generic Interface to magnetic fields in GENFIT.
Definition: GFAbsBField.h:34
GFAbsFinitePlane * clone() const
Deep copy ctor for polymorphic class.
virtual void Print(Option_t *) const
bool inActive(const double &u, const double &v) const
void Print(std::ostream &out=std::cout) const