BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnGeoNavigator.h
Go to the documentation of this file.
1
/** BmnTGeoNavigator.h
2
* \author Andrey Lebedev <andrey.lebedev@gsi.de> - Original author. First version of code for CBM experiment.
3
* \author Sergey Merts <Sergey.Merts@gmail.com> - Modification for BMN experiment.
4
* \date 2008-2014
5
**
6
** The class performs geometry navigation, which is based on the ROOT TGeoManager.
7
**/
8
9
#ifndef BMNGEONAVIGATOR_H_
10
#define BMNGEONAVIGATOR_H_
11
12
#include "BmnEnums.h"
13
#include "
BmnMaterialInfo.h
"
14
#include "FairTrackParam.h"
15
#include "
TObject.h
"
16
17
#include <vector>
18
19
using namespace
std
;
20
21
class
BmnGeoNavigator
22
{
23
public
:
24
/* Constructor */
25
BmnGeoNavigator
();
26
27
/* Destructor */
28
virtual
~BmnGeoNavigator
();
29
30
BmnStatus
FindIntersections
(
const
FairTrackParam* par,
Float_t
zOut, vector<BmnMaterialInfo>& 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
FairTrackParam* 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
BmnMaterialInfo
MakeStep
(
Float_t
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
Float_t
CalcLength
(
Float_t
zOut)
const
;
50
};
51
52
#endif
/*BMNGEONAVIGATOR_H_*/
Bool_t
bool Bool_t
Float_t
float Float_t
TObject.h
BmnStatus
BmnStatus
Define status code.
Definition
BmnEnums.h:93
BmnMaterialInfo.h
BmnGeoNavigator::~BmnGeoNavigator
virtual ~BmnGeoNavigator()
Definition
BmnGeoNavigator.cxx:23
BmnGeoNavigator::FindIntersections
BmnStatus FindIntersections(const FairTrackParam *par, Float_t zOut, vector< BmnMaterialInfo > &inter)
Definition
BmnGeoNavigator.cxx:25
BmnGeoNavigator::InitTrack
void InitTrack(const FairTrackParam *par, Bool_t downstream) const
Definition
BmnGeoNavigator.cxx:74
BmnGeoNavigator::MakeStep
BmnMaterialInfo MakeStep(Float_t step=0.) const
Definition
BmnGeoNavigator.cxx:90
BmnGeoNavigator::BmnGeoNavigator
BmnGeoNavigator()
Definition
BmnGeoNavigator.cxx:21
BmnGeoNavigator::CalcLength
Float_t CalcLength(Float_t zOut) const
Definition
BmnGeoNavigator.cxx:114
BmnMaterialInfo
Definition
BmnMaterialInfo.h:21
std
Definition
json.hpp:4446
base
math
BmnGeoNavigator.h
Generated on
for BmnRoot by
1.17.0