GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gear::TGeoGearDistanceProperties Class Reference

TGeo Implementation of the abstract interface that returns the (material) properties along a given distance between two points in in world coordinates. More...

#include <TGeoGearDistanceProperties.h>

Inheritance diagram for gear::TGeoGearDistanceProperties:
gear::GearDistanceProperties

Public Member Functions

 TGeoGearDistanceProperties (const TGeoGearDistanceProperties &)=delete
 
TGeoGearDistancePropertiesoperator= (const TGeoGearDistanceProperties &)=delete
 
 TGeoGearDistanceProperties (TGeoManager *geoMgr)
 
virtual ~TGeoGearDistanceProperties ()
 Destructor.
 
virtual const std::vector
< std::string > & 
getMaterialNames (const Vector3D &p0, const Vector3D &p1) const
 List of matrial names along the distance between [p0,p1]- WARNING: this method returns a reference to a vector that will change after the next call to this method with different arguments or if the GearDistanceProperties object goes out of scope. More...
 
virtual const std::vector
< double > & 
getMaterialThicknesses (const Vector3D &p0, const Vector3D &p1) const
 List of matrial thicknesses in mm along the distance between [p0,p1] - runs parallel to the array returned by getMaterialNames() - WARNING: this method returns a reference to a vector that will change after the next call to this method with different arguments or if the GearDistanceProperties object goes out of scope. More...
 
virtual const std::vector
< std::string > 
getVolumeNames (const Vector3D &p0, const Vector3D &p1) const
 List of traversed volumes by name. More...
 
virtual double getNRadlen (const Vector3D &p0, const Vector3D &p1) const
 The number of radiation lengths along the distance between [p0,p1] .
 
virtual double getNIntlen (const Vector3D &p0, const Vector3D &p1) const
 The number of interaction lengths along the distance between [p0,p1] .
 
virtual double getBdL (const Vector3D &p0, const Vector3D &p1) const
 The integrated magnetic field along the distance between [p0,p1] in Tesla*mm.
 
virtual double getEdL (const Vector3D &p0, const Vector3D &p1) const
 The integrated electric field along the distance between [p0,p1] in mVolt.
 
- Public Member Functions inherited from gear::GearDistanceProperties
virtual ~GearDistanceProperties ()
 Destructor.
 

Protected Member Functions

void beamOn (const Vector3D &p0, const Vector3D &p1) const
 

Protected Attributes

TGeoManager * _tgeomanager = nullptr
 
Vector3D _p0 {}
 
Vector3D _p1 {}
 
std::vector< std::string > _volNames {}
 
std::vector< std::string > _matNames {}
 
std::vector< double > _distance {}
 
std::vector< double > _intLen {}
 
std::vector< double > _radLen {}
 

Detailed Description

TGeo Implementation of the abstract interface that returns the (material) properties along a given distance between two points in in world coordinates.

Author
A. Muennich, CERN
Version
$Id$

Definition at line 21 of file TGeoGearDistanceProperties.h.

Member Function Documentation

const std::vector< std::string > & gear::TGeoGearDistanceProperties::getMaterialNames ( const Vector3D p0,
const Vector3D p1 
) const
virtual

List of matrial names along the distance between [p0,p1]- WARNING: this method returns a reference to a vector that will change after the next call to this method with different arguments or if the GearDistanceProperties object goes out of scope.

List of matrial names along the distance between [p0,p1] .

It is the users responsibility to make a copy of that vector if needed.

Implements gear::GearDistanceProperties.

Definition at line 132 of file TGeoGearDistanceProperties.cc.

const std::vector< double > & gear::TGeoGearDistanceProperties::getMaterialThicknesses ( const Vector3D p0,
const Vector3D p1 
) const
virtual

List of matrial thicknesses in mm along the distance between [p0,p1] - runs parallel to the array returned by getMaterialNames() - WARNING: this method returns a reference to a vector that will change after the next call to this method with different arguments or if the GearDistanceProperties object goes out of scope.

List of matrial thicknesses in mm along the distance between [p0,p1] - runs parallel to the array returned by getMaterialNames().

It is the users responsibility to make a copy of that vector if needed.

Implements gear::GearDistanceProperties.

Definition at line 159 of file TGeoGearDistanceProperties.cc.

const std::vector< std::string > gear::TGeoGearDistanceProperties::getVolumeNames ( const Vector3D p0,
const Vector3D p1 
) const
virtual

List of traversed volumes by name.

List of volume names along the distance between [p0,p1] .

Definition at line 145 of file TGeoGearDistanceProperties.cc.


The documentation for this class was generated from the following files: