EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoMedium Class Reference

#include <EicRoot/blob/master/geobase/FairGeoMedium.h>

+ Inheritance diagram for FairGeoMedium:
+ Collaboration diagram for FairGeoMedium:

Public Member Functions

 FairGeoMedium (const char *name="")
 
FairGeoMediumoperator= (const FairGeoMedium &)
 
 ~FairGeoMedium ()
 
void setMediumIndex (Int_t i)
 
Int_t getMediumIndex ()
 
void setAutoFlag (Int_t i)
 
Int_t getAutoFlag ()
 
void setNComponents (Int_t)
 
Int_t getNComponents ()
 
Bool_t setComponent (Int_t, Double_t, Double_t, Double_t w=1.)
 
void getComponent (Int_t, Double_t *)
 
Int_t getWeightFac ()
 
void setDensity (Double_t d)
 
Double_t getDensity ()
 
void setRadiationLength (Double_t l)
 
Double_t getRadiationLength ()
 
void setNpckov (Int_t)
 
Int_t getNpckov ()
 
Bool_t setCerenkovPar (Int_t, Double_t, Double_t, Double_t, Double_t)
 
void getCerenkovPar (Int_t, Double_t *)
 
void setMediumPar (Int_t, Int_t, Double_t, Double_t, Double_t maxDeviation=-1., Double_t maxStep=-1., Double_t maxDE=-1., Double_t minStepDouble_t=-1.)
 
void getMediumPar (Double_t *)
 
Bool_t isSensitive ()
 
Int_t getSensitivityFlag ()
 
Int_t getFieldFlag ()
 
Double_t getField ()
 
Double_t getEpsil ()
 
void read (std::fstream &, Int_t autoflag)
 
void print ()
 
void write (std::fstream &)
 
Bool_t calcRadiationLength ()
 

Private Member Functions

 FairGeoMedium (const FairGeoMedium &)
 

Private Attributes

Int_t medId
 
Int_t autoflag
 
Int_t nComponents
 
Int_t weightFac
 
Double_t * ca
 
Double_t * cz
 
Double_t * cw
 
Double_t density
 
Double_t radLen
 
Int_t sensFlag
 
Int_t fldFlag
 
Double_t fld
 
Double_t epsil
 
Double_t madfld
 
Double_t maxstep
 
Double_t maxde
 
Double_t minstep
 
Int_t npckov
 
Double_t * ppckov
 
Double_t * absco
 
Double_t * effic
 
Double_t * rindex
 

Friends

class FairModule
 

Detailed Description

Class for tracking medium

Author
ilse koenig

Definition at line 13 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 13 of file FairGeoMedium.h

Constructor & Destructor Documentation

FairGeoMedium::FairGeoMedium ( const char *  name = "")
FairGeoMedium::~FairGeoMedium ( )

Definition at line 49 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 49 of file FairGeoMedium.cxx

References absco, ca, cw, cz, effic, nComponents, npckov, ppckov, and rindex.

FairGeoMedium::FairGeoMedium ( const FairGeoMedium )
private

Member Function Documentation

Bool_t FairGeoMedium::calcRadiationLength ( )

Definition at line 280 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 280 of file FairGeoMedium.cxx

References starlightConstants::alpha, ca, cw, cz, density, Acts::UnitConstants::e, F, nComponents, radLen, weightFac, y, and z.

Referenced by FairModule::AssignMediumAtImport(), and read().

+ Here is the caller graph for this function:

Int_t FairGeoMedium::getAutoFlag ( )
inline

Definition at line 48 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 48 of file FairGeoMedium.h

References autoflag.

Referenced by FairGeoMedia::print(), and FairGeoMedia::write().

+ Here is the caller graph for this function:

void FairGeoMedium::getCerenkovPar ( Int_t  i,
Double_t *  p 
)

Definition at line 150 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 150 of file FairGeoMedium.cxx

References absco, effic, npckov, ppckov, and rindex.

Referenced by FairMCApplication::ConstructOpGeometry(), and CbmRichHitProducer::Init().

+ Here is the caller graph for this function:

void FairGeoMedium::getComponent ( Int_t  i,
Double_t *  p 
)

Definition at line 107 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 107 of file FairGeoMedium.cxx

References ca, cw, cz, and nComponents.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Double_t FairGeoMedium::getDensity ( )
inline

Definition at line 55 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 55 of file FairGeoMedium.h

References density.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Double_t FairGeoMedium::getEpsil ( )
inline

Definition at line 70 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 70 of file FairGeoMedium.h

References epsil.

Double_t FairGeoMedium::getField ( )
inline

Definition at line 69 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 69 of file FairGeoMedium.h

References fld.

Int_t FairGeoMedium::getFieldFlag ( )
inline

Definition at line 68 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 68 of file FairGeoMedium.h

References fldFlag.

Int_t FairGeoMedium::getMediumIndex ( )
inline

Definition at line 46 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 46 of file FairGeoMedium.h

References medId.

Referenced by FairMCApplication::ConstructOpGeometry(), and FairGeoRootBuilder::createNode().

+ Here is the caller graph for this function:

void FairGeoMedium::getMediumPar ( Double_t *  params)

Definition at line 176 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 176 of file FairGeoMedium.cxx

References epsil, fld, fldFlag, madfld, maxde, maxstep, minstep, and sensFlag.

Referenced by EicDetector::ConstructGeometry(), and FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Int_t FairGeoMedium::getNComponents ( )
inline

Definition at line 50 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 50 of file FairGeoMedium.h

References nComponents.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Int_t FairGeoMedium::getNpckov ( )
inline

Definition at line 59 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 59 of file FairGeoMedium.h

References npckov.

Referenced by FairMCApplication::ConstructOpGeometry(), and CbmRichHitProducer::Init().

+ Here is the caller graph for this function:

Double_t FairGeoMedium::getRadiationLength ( )
inline

Definition at line 57 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 57 of file FairGeoMedium.h

References radLen.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Int_t FairGeoMedium::getSensitivityFlag ( )
inline

Definition at line 67 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 67 of file FairGeoMedium.h

References sensFlag.

Referenced by CbmRich::ExpandNodeForGdml().

+ Here is the caller graph for this function:

Int_t FairGeoMedium::getWeightFac ( )
inline

Definition at line 53 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 53 of file FairGeoMedium.h

References weightFac.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

Bool_t FairGeoMedium::isSensitive ( )
inline

Definition at line 83 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 83 of file FairGeoMedium.h

References sensFlag.

Referenced by FairGeoNode::isSensitive().

+ Here is the caller graph for this function:

FairGeoMedium& FairGeoMedium::operator= ( const FairGeoMedium )
inline

Definition at line 43 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 43 of file FairGeoMedium.h

void FairGeoMedium::print ( )

Definition at line 234 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 234 of file FairGeoMedium.cxx

References absco, autoflag, ca, cw, cz, density, effic, epsil, fld, fldFlag, madfld, maxde, maxstep, minstep, nComponents, npckov, ppckov, radLen, rindex, sensFlag, and weightFac.

Referenced by FairGeoMedia::print().

+ Here is the caller graph for this function:

void FairGeoMedium::read ( std::fstream &  fin,
Int_t  autoflag 
)

Definition at line 191 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 191 of file FairGeoMedium.cxx

References absco, autoflag, ca, calcRadiationLength(), cw, cz, density, effic, epsil, fld, fldFlag, madfld, maxde, maxstep, minstep, n, nComponents, ppckov, rindex, sensFlag, setNComponents(), and setNpckov().

Referenced by FairGeoMedia::read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairGeoMedium::setAutoFlag ( Int_t  i)
inline

Definition at line 47 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 47 of file FairGeoMedium.h

References autoflag.

Bool_t FairGeoMedium::setCerenkovPar ( Int_t  i,
Double_t  p,
Double_t  a,
Double_t  e,
Double_t  r 
)

Definition at line 136 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 136 of file FairGeoMedium.cxx

References absco, Acts::UnitConstants::e, effic, npckov, p, ppckov, and rindex.

Bool_t FairGeoMedium::setComponent ( Int_t  i,
Double_t  a,
Double_t  z,
Double_t  w = 1. 
)

Definition at line 94 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 94 of file FairGeoMedium.cxx

References ca, cw, cz, nComponents, and z.

Referenced by FairModule::AssignMediumAtImport().

+ Here is the caller graph for this function:

void FairGeoMedium::setDensity ( Double_t  d)
inline

Definition at line 54 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 54 of file FairGeoMedium.h

References d, and density.

Referenced by FairModule::AssignMediumAtImport().

+ Here is the caller graph for this function:

void FairGeoMedium::setMediumIndex ( Int_t  i)
inline

Definition at line 45 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 45 of file FairGeoMedium.h

References medId.

Referenced by FairGeoRootBuilder::createMedium().

+ Here is the caller graph for this function:

void FairGeoMedium::setMediumPar ( Int_t  sensitivityFlag,
Int_t  fieldFlag,
Double_t  maxField,
Double_t  precision,
Double_t  maxDeviation = -1.,
Double_t  maxStep = -1.,
Double_t  maxDE = -1.,
Double_t  minStepDouble_t = -1. 
)

Definition at line 161 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 161 of file FairGeoMedium.cxx

References epsil, fld, fldFlag, madfld, maxde, maxstep, minstep, precision, and sensFlag.

void FairGeoMedium::setNComponents ( Int_t  n)

Definition at line 74 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 74 of file FairGeoMedium.cxx

References kdfinder::abs(), ca, cw, cz, k, nComponents, and weightFac.

Referenced by FairModule::AssignMediumAtImport(), and read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairGeoMedium::setNpckov ( Int_t  n)

Definition at line 118 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 118 of file FairGeoMedium.cxx

References absco, effic, n, npckov, ppckov, and rindex.

Referenced by read().

+ Here is the caller graph for this function:

void FairGeoMedium::setRadiationLength ( Double_t  l)
inline

Definition at line 56 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 56 of file FairGeoMedium.h

References radLen.

void FairGeoMedium::write ( std::fstream &  fout)

Definition at line 257 of file FairGeoMedium.cxx.

View newest version in sPHENIX GitHub at line 257 of file FairGeoMedium.cxx

References absco, autoflag, ca, cw, cz, density, effic, epsil, fld, fldFlag, madfld, maxde, maxstep, minstep, nComponents, npckov, ppckov, radLen, rindex, sensFlag, and weightFac.

Referenced by FairGeoMedia::write().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class FairModule
friend

Definition at line 16 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 16 of file FairGeoMedium.h

Member Data Documentation

Double_t* FairGeoMedium::absco
private

Definition at line 38 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 38 of file FairGeoMedium.h

Referenced by getCerenkovPar(), print(), read(), setCerenkovPar(), setNpckov(), write(), and ~FairGeoMedium().

Int_t FairGeoMedium::autoflag
private

Unique number for the material and the medium

Definition at line 20 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 20 of file FairGeoMedium.h

Referenced by getAutoFlag(), print(), read(), setAutoFlag(), and write().

Double_t* FairGeoMedium::ca
private

Factor for weights (1: relative w., -1: w. by number of atoms)

Definition at line 23 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 23 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getComponent(), print(), read(), setComponent(), setNComponents(), write(), and ~FairGeoMedium().

Double_t* FairGeoMedium::cw
private

Definition at line 25 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 25 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getComponent(), print(), read(), setComponent(), setNComponents(), write(), and ~FairGeoMedium().

Double_t* FairGeoMedium::cz
private

Definition at line 24 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 24 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getComponent(), print(), read(), setComponent(), setNComponents(), write(), and ~FairGeoMedium().

Double_t FairGeoMedium::density
private

Definition at line 26 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 26 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getDensity(), print(), read(), setDensity(), and write().

Double_t* FairGeoMedium::effic
private

Definition at line 39 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 39 of file FairGeoMedium.h

Referenced by getCerenkovPar(), print(), read(), setCerenkovPar(), setNpckov(), write(), and ~FairGeoMedium().

Double_t FairGeoMedium::epsil
private

Maximum field value in kilogauss

Definition at line 31 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 31 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getEpsil(), getMediumPar(), print(), read(), setMediumPar(), and write().

Double_t FairGeoMedium::fld
private

Field flag

Definition at line 30 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 30 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getField(), getMediumPar(), print(), read(), setMediumPar(), and write().

Int_t FairGeoMedium::fldFlag
private

Sensitivity flag

Definition at line 29 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 29 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getFieldFlag(), getMediumPar(), print(), read(), setMediumPar(), and write().

Double_t FairGeoMedium::madfld
private

Boundary crossing precision

Definition at line 32 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 32 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getMediumPar(), print(), read(), setMediumPar(), and write().

Double_t FairGeoMedium::maxde
private

Maximum step permitted

Definition at line 34 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 34 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getMediumPar(), print(), read(), setMediumPar(), and write().

Double_t FairGeoMedium::maxstep
private

Maximum angular deviation due to field

Definition at line 33 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 33 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getMediumPar(), print(), read(), setMediumPar(), and write().

Int_t FairGeoMedium::medId
private

Definition at line 19 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 19 of file FairGeoMedium.h

Referenced by getMediumIndex(), and setMediumIndex().

Double_t FairGeoMedium::minstep
private

Maximum fractional energy loss

Definition at line 35 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 35 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getMediumPar(), print(), read(), setMediumPar(), and write().

Int_t FairGeoMedium::nComponents
private

Flag for default values of madfld .. minstep

Definition at line 21 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 21 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getComponent(), getNComponents(), print(), read(), setComponent(), setNComponents(), write(), and ~FairGeoMedium().

Int_t FairGeoMedium::npckov
private

Minimum value for step

Definition at line 36 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 36 of file FairGeoMedium.h

Referenced by getCerenkovPar(), getNpckov(), print(), setCerenkovPar(), setNpckov(), write(), and ~FairGeoMedium().

Double_t* FairGeoMedium::ppckov
private

Number of optical parameters for Cerenkov

Definition at line 37 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 37 of file FairGeoMedium.h

Referenced by getCerenkovPar(), print(), read(), setCerenkovPar(), setNpckov(), write(), and ~FairGeoMedium().

Double_t FairGeoMedium::radLen
private

Density in g cm(**-3)

Definition at line 27 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 27 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getRadiationLength(), print(), setRadiationLength(), and write().

Double_t* FairGeoMedium::rindex
private

Definition at line 40 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 40 of file FairGeoMedium.h

Referenced by getCerenkovPar(), print(), read(), setCerenkovPar(), setNpckov(), write(), and ~FairGeoMedium().

Int_t FairGeoMedium::sensFlag
private

Radiation lenght

Definition at line 28 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 28 of file FairGeoMedium.h

Referenced by FairModule::AssignMediumAtImport(), getMediumPar(), getSensitivityFlag(), isSensitive(), print(), read(), setMediumPar(), and write().

Int_t FairGeoMedium::weightFac
private

Number of material components

Definition at line 22 of file FairGeoMedium.h.

View newest version in sPHENIX GitHub at line 22 of file FairGeoMedium.h

Referenced by calcRadiationLength(), getWeightFac(), print(), setNComponents(), and write().


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