Project
Loading...
Searching...
No Matches
o2::phos::Geometry Class Reference

#include <Geometry.h>

Public Member Functions

 Geometry ()=default
 
 Geometry (const std::string_view name)
 
 Geometry (const Geometry &geom)
 
 ~Geometry ()=default
 
Geometryoperator= (const Geometry &rvalue)
 
void local2Global (char module, float x, float z, TVector3 &globaPos) const
 
bool impactOnPHOS (const TVector3 &vtx, const TVector3 &p, short &module, float &z, float &x) const
 
const std::string & GetName () const
 
const TGeoHMatrix * getAlignmentMatrix (int mod) const
 

Static Public Member Functions

static GeometryGetInstance ()
 
static GeometryGetInstance (const std::string_view name)
 
static int areNeighbours (short absId1, short absId2)
 
static short relToAbsId (char moduleNumber, int strip, int cell)
 
static bool absToRelNumbering (short absId, char *relid)
 
static char absIdToModule (short absId)
 
static void absIdToRelPosInModule (short absId, float &x, float &z)
 
static void relPosToRelId (short module, float x, float z, char *relId)
 
static bool relToAbsNumbering (const char *RelId, short &AbsId)
 
static bool truAbsToRelNumbering (short truId, short trigType, char *relid)
 
static short truRelToAbsNumbering (const char *relId, short trigType)
 
static short relPosToTruId (char mod, float x, float z, short trigType)
 
static void relPosToAbsId (char module, float x, float z, short &absId)
 
static int getTotalNCells ()
 
static bool isCellExists (short absId)
 

Detailed Description

Definition at line 29 of file Geometry.h.

Constructor & Destructor Documentation

◆ Geometry() [1/3]

o2::phos::Geometry::Geometry ( )
default

Default constructor. It must be kept public for root persistency purposes, but should never be called by the outside world

◆ Geometry() [2/3]

Geometry::Geometry ( const std::string_view  name)

Constructor for normal use.

Parameters
namegeometry name: PHOS (see main class description for definition)

Definition at line 36 of file Geometry.cxx.

◆ Geometry() [3/3]

o2::phos::Geometry::Geometry ( const Geometry geom)

Copy constructor.

◆ ~Geometry()

o2::phos::Geometry::~Geometry ( )
default

Destructor.

Member Function Documentation

◆ absIdToModule()

char Geometry::absIdToModule ( short  absId)
static

Definition at line 151 of file Geometry.cxx.

◆ absIdToRelPosInModule()

void Geometry::absIdToRelPosInModule ( short  absId,
float &  x,
float &  z 
)
static

Definition at line 198 of file Geometry.cxx.

◆ absToRelNumbering()

bool Geometry::absToRelNumbering ( short  absId,
char relid 
)
static

Definition at line 65 of file Geometry.cxx.

◆ areNeighbours()

int Geometry::areNeighbours ( short  absId1,
short  absId2 
)
static

\breif Checks if two channels have common side

Parameters
absId1absId of first channel, order important!
absId2absId of secont channel, order important!
Returns
0 are not neighbour but continue searching

Definition at line 159 of file Geometry.cxx.

◆ getAlignmentMatrix()

const TGeoHMatrix * o2::phos::Geometry::getAlignmentMatrix ( int  mod) const
inline

Definition at line 134 of file Geometry.h.

◆ GetInstance() [1/2]

static Geometry * o2::phos::Geometry::GetInstance ( )
inlinestatic
Returns
the pointer of the existing unique instance of the geometry It should have been set before with GetInstance(name) method

Definition at line 63 of file Geometry.h.

◆ GetInstance() [2/2]

static Geometry * o2::phos::Geometry::GetInstance ( const std::string_view  name)
inlinestatic
Returns
(newly created) pointer of the unique instance of the geometry. Previous instance is destroied.
Parameters
namegeometry name: PHOS (see main class description for definition)
title

Definition at line 73 of file Geometry.h.

◆ GetName()

const std::string & o2::phos::Geometry::GetName ( ) const
inline

Definition at line 132 of file Geometry.h.

◆ getTotalNCells()

static int o2::phos::Geometry::getTotalNCells ( )
inlinestatic

Definition at line 126 of file Geometry.h.

◆ impactOnPHOS()

bool Geometry::impactOnPHOS ( const TVector3 &  vtx,
const TVector3 &  p,
short module,
float &  z,
float &  x 
) const

Definition at line 244 of file Geometry.cxx.

◆ isCellExists()

static bool o2::phos::Geometry::isCellExists ( short  absId)
inlinestatic

Definition at line 127 of file Geometry.h.

◆ local2Global()

void Geometry::local2Global ( char  module,
float  x,
float  z,
TVector3 &  globaPos 
) const

Definition at line 234 of file Geometry.cxx.

◆ operator=()

Geometry & o2::phos::Geometry::operator= ( const Geometry rvalue)

Assign operator.

◆ relPosToAbsId()

void Geometry::relPosToAbsId ( char  module,
float  x,
float  z,
short absId 
)
static

Definition at line 220 of file Geometry.cxx.

◆ relPosToRelId()

void Geometry::relPosToRelId ( short  module,
float  x,
float  z,
char relId 
)
static

Definition at line 226 of file Geometry.cxx.

◆ relPosToTruId()

short Geometry::relPosToTruId ( char  mod,
float  x,
float  z,
short  trigType 
)
static

Definition at line 144 of file Geometry.cxx.

◆ relToAbsId()

short Geometry::relToAbsId ( char  moduleNumber,
int  strip,
int  cell 
)
static

\breif Converts Geant volume numbers to absId

Returns
AbsId index of the PHOS cell
Parameters
moduleNumbermodule number
stripstrip number

Definition at line 49 of file Geometry.cxx.

◆ relToAbsNumbering()

bool Geometry::relToAbsNumbering ( const char RelId,
short AbsId 
)
static

Definition at line 207 of file Geometry.cxx.

◆ truAbsToRelNumbering()

bool Geometry::truAbsToRelNumbering ( short  truId,
short  trigType,
char relid 
)
static

Definition at line 83 of file Geometry.cxx.

◆ truRelToAbsNumbering()

short Geometry::truRelToAbsNumbering ( const char relId,
short  trigType 
)
static

Definition at line 118 of file Geometry.cxx.


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