PandaRoot
AbsMaterialInterface.h
Go to the documentation of this file.
1 /* Copyright 2008-2009, Technische Universitaet Muenchen,
2  Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
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 
24 #ifndef genfit_AbsMaterialInterface_h
25 #define genfit_AbsMaterialInterface_h
26 
27 #include "RKTrackRep.h"
28 #include "MaterialProperties.h"
29 
30 #include <TObject.h>
31 #include <TVector3.h>
32 
33 namespace genfit {
34 
38 class AbsMaterialInterface : public TObject {
39 
40  public:
42  virtual ~AbsMaterialInterface() { ; };
43 
46  virtual bool initTrack(double posX, double posY, double posZ, double dirX, double dirY, double dirZ) = 0;
47 
50  virtual void getMaterialParameters(double &density, double &Z, double &A, double &radiationLength, double &mEE) = 0;
51 
52  virtual void getMaterialParameters(MaterialProperties &parameters) = 0;
53 
60  virtual double findNextBoundary(const RKTrackRep *rep, const M1x7 &state7, double sMax, bool varField = true) = 0;
61 
62  virtual void setDebugLvl(unsigned int lvl = 1) { debugLvl_ = lvl; }
63 
64  protected:
65  unsigned int debugLvl_;
66 
67  // ClassDef(AbsMaterialInterface, 1);
68 };
69 
70 } /* End of namespace genfit */
73 #endif // genfit_AbsMaterialInterface_h
Abstract base class for geometry interfacing.
virtual void getMaterialParameters(double &density, double &Z, double &A, double &radiationLength, double &mEE)=0
Get material parameters in current material.
Material properties needed e.g. for material effects calculation.
virtual void setDebugLvl(unsigned int lvl=1)
virtual double findNextBoundary(const RKTrackRep *rep, const M1x7 &state7, double sMax, bool varField=true)=0
Make a step until maxStep or the next boundary is reached.
double M1x7[1 *7]
Definition: RKTools.h:36
AbsTrackRep with 5D track parameterization in plane coordinates: (q/p, u&#39;, v&#39;, u, v) ...
Matrix inversion tools.
Definition: AbsBField.h:28
virtual bool initTrack(double posX, double posY, double posZ, double dirX, double dirY, double dirZ)=0
Initialize the navigator at given position and with given direction. Return true if volume changed...