CbmRoot
CbmLitTGeoNavigator.h
Go to the documentation of this file.
1 
8 #ifndef CBMLITTGEONAVIGATOR_H_
9 #define CBMLITTGEONAVIGATOR_H_
10 
11 #include "TObject.h"
14 
15 #include <vector>
16 
17 class CbmLitTrackParam;
18 
20 public:
21  /* Constructor */
23 
24  /* Destructor */
25  virtual ~CbmLitTGeoNavigator();
26 
27  /* Inherited from CbmLitGeoNavigator */
29  litfloat zOut,
30  std::vector<CbmLitMaterialInfo>& inter);
31 
32 private:
33  /* Sets the current position and direction for the TGeoManager
34  * @param par Track parameter from which the current position and direction will be initialized.
35  */
36  void InitTrack(const CbmLitTrackParam* par, Bool_t downstream) const;
37 
38  /* Make a step: if step=0 than to the next crossing boundary, else
39  * make a step of length step.
40  * @param step Step size [cm].
41  * @return Crossed material information
42  */
43  CbmLitMaterialInfo MakeStep(litfloat step = 0.) const;
44 
45  /* Calculates length between current position and the point on the plane at zOut.
46  * @param zOut Output Z position [cm]
47  * @return Length.
48  */
49  litfloat CalcLength(litfloat zOut) const;
50 };
51 
52 #endif /*CBMLITTGEONAVIGATOR_H_*/
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitTGeoNavigator::MakeStep
CbmLitMaterialInfo MakeStep(litfloat step=0.) const
Definition: CbmLitTGeoNavigator.cxx:86
CbmLitTGeoNavigator::FindIntersections
LitStatus FindIntersections(const CbmLitTrackParam *par, litfloat zOut, std::vector< CbmLitMaterialInfo > &inter)
Find intersection points with detector material in a certain interval.
Definition: CbmLitTGeoNavigator.cxx:24
CbmLitTGeoNavigator
Definition: CbmLitTGeoNavigator.h:19
CbmLitTrackParam
Data class for track parameters.
Definition: CbmLitTrackParam.h:29
CbmLitGeoNavigator
Interface for geometry navigation algorithm.
Definition: CbmLitGeoNavigator.h:25
CbmLitTGeoNavigator::~CbmLitTGeoNavigator
virtual ~CbmLitTGeoNavigator()
Definition: CbmLitTGeoNavigator.cxx:21
CbmLitMaterialInfo
Definition: CbmLitMaterialInfo.h:19
CbmLitGeoNavigator.h
Interface for geometry navigation algorithm.
CbmLitMaterialInfo.h
LitStatus
LitStatus
Definition: CbmLitEnums.h:23
CbmLitTGeoNavigator::InitTrack
void InitTrack(const CbmLitTrackParam *par, Bool_t downstream) const
Definition: CbmLitTGeoNavigator.cxx:73
CbmLitTGeoNavigator::CalcLength
litfloat CalcLength(litfloat zOut) const
Definition: CbmLitTGeoNavigator.cxx:110
CbmLitTGeoNavigator::CbmLitTGeoNavigator
CbmLitTGeoNavigator()
Definition: CbmLitTGeoNavigator.cxx:19