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

#include <Geometry.h>

Public Member Functions

 Geometry ()=default
 Default constructor.
 
 Geometry (const Geometry &geom)
 
 ~Geometry ()=default
 
Geometryoperator= (const Geometry &rvalue)
 
 ClassDefNV (Geometry, 1)
 

Static Public Member Functions

static short areNeighbours (unsigned short absId1, unsigned short absId2)
 
static unsigned short relToAbsId (short moduleNumber, short iphi, short iz)
 
static bool absToRelNumbering (unsigned short absId, short *relId)
 
static short absIdToModule (unsigned short absId)
 
static void absIdToRelPosInModule (unsigned short absId, float &x, float &z)
 
static bool relToAbsNumbering (const short *relId, unsigned short &absId)
 
static bool hwaddressToAbsId (short ccId, short dil, short gas, short pad, unsigned short &absId)
 
static bool absIdToHWaddress (unsigned short absId, short &ccId, short &dil, short &gas, short &pad)
 
static unsigned short getTotalNPads ()
 
static bool IsPadExists (unsigned short absId)
 

Static Public Attributes

static constexpr short kNumberOfCPVPadsPhi = 128
 
static constexpr short kNumberOfCPVPadsZ = 60
 
static constexpr short kNCHANNELS = kNumberOfCPVPadsPhi * kNumberOfCPVPadsZ * 3
 
static constexpr float kCPVPadSizePhi = 1.13
 
static constexpr float kCPVPadSizeZ = 2.1093
 
static constexpr short kNPAD = 48
 
static constexpr short kNDilogic = 4
 
static constexpr short kNGas = 5
 
static constexpr short kNRow = 16
 
static constexpr short kNMod = 4
 
static constexpr short mPadMap [6][8]
 
static constexpr short mPadToZ [48] = {1, 1, 2, 0, 3, 4, 2, 5, 1, 5, 2, 5, 3, 4, 3, 4, 2, 5, 1, 0, 1, 2, 0, 4, 1, 3, 0, 2, 1, 0, 0, 0, 3, 4, 3, 4, 2, 4, 3, 5, 2, 5, 1, 5, 0, 4, 3, 5}
 
static constexpr short mPadToPhi [48] = {2, 1, 2, 0, 2, 2, 1, 2, 0, 1, 0, 0, 1, 1, 0, 0, 5, 3, 6, 6, 5, 4, 5, 3, 4, 3, 4, 3, 3, 3, 2, 1, 7, 7, 6, 6, 7, 5, 5, 7, 6, 6, 7, 5, 7, 4, 4, 4}
 

Detailed Description

Definition at line 25 of file Geometry.h.

Constructor & Destructor Documentation

◆ Geometry() [1/2]

o2::cpv::Geometry::Geometry ( )
default

Default constructor.

Available numbering schems: relative pad coordinates relId[3]={Module, phi col, z row} where Module=2..4, phi col=0..127, z row=0..59 Absolute pad coordunate absId=0..128*60*3-1=23039 Raw addresses: each module consist of 16 columns of width 8 pads: row=0..15 Each column consists of 10 dilogics (in z direction) dilogic=0...9 Ecah dilogic contains 8*6 pads: hwaddress=0...48

◆ Geometry() [2/2]

o2::cpv::Geometry::Geometry ( const Geometry geom)

Copy constructor.

◆ ~Geometry()

o2::cpv::Geometry::~Geometry ( )
default

Destructor.

Member Function Documentation

◆ absIdToHWaddress()

bool Geometry::absIdToHWaddress ( unsigned short  absId,
short ccId,
short dil,
short gas,
short pad 
)
static

Definition at line 137 of file Geometry.cxx.

◆ absIdToModule()

short Geometry::absIdToModule ( unsigned short  absId)
static

Definition at line 43 of file Geometry.cxx.

◆ absIdToRelPosInModule()

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

Definition at line 89 of file Geometry.cxx.

◆ absToRelNumbering()

bool Geometry::absToRelNumbering ( unsigned short  absId,
short relId 
)
static

Definition at line 25 of file Geometry.cxx.

◆ areNeighbours()

short Geometry::areNeighbours ( unsigned short  absId1,
unsigned 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 49 of file Geometry.cxx.

◆ ClassDefNV()

o2::cpv::Geometry::ClassDefNV ( Geometry  ,
 
)

◆ getTotalNPads()

static unsigned short o2::cpv::Geometry::getTotalNPads ( )
inlinestatic

Definition at line 94 of file Geometry.h.

◆ hwaddressToAbsId()

bool Geometry::hwaddressToAbsId ( short  ccId,
short  dil,
short  gas,
short  pad,
unsigned short absId 
)
static

Definition at line 109 of file Geometry.cxx.

◆ IsPadExists()

static bool o2::cpv::Geometry::IsPadExists ( unsigned short  absId)
inlinestatic

Definition at line 95 of file Geometry.h.

◆ operator=()

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

Assign operator.

◆ relToAbsId()

unsigned short Geometry::relToAbsId ( short  moduleNumber,
short  iphi,
short  iz 
)
static
Returns
AbsId index of the CPV cell
Parameters
moduleNumbermodule number
stripstrip number

Definition at line 19 of file Geometry.cxx.

◆ relToAbsNumbering()

bool Geometry::relToAbsNumbering ( const short relId,
unsigned short absId 
)
static

Definition at line 99 of file Geometry.cxx.

Member Data Documentation

◆ kCPVPadSizePhi

constexpr float o2::cpv::Geometry::kCPVPadSizePhi = 1.13
staticconstexpr

Definition at line 31 of file Geometry.h.

◆ kCPVPadSizeZ

constexpr float o2::cpv::Geometry::kCPVPadSizeZ = 2.1093
staticconstexpr

Definition at line 32 of file Geometry.h.

◆ kNCHANNELS

constexpr short o2::cpv::Geometry::kNCHANNELS = kNumberOfCPVPadsPhi * kNumberOfCPVPadsZ * 3
staticconstexpr

Definition at line 30 of file Geometry.h.

◆ kNDilogic

constexpr short o2::cpv::Geometry::kNDilogic = 4
staticconstexpr

Definition at line 35 of file Geometry.h.

◆ kNGas

constexpr short o2::cpv::Geometry::kNGas = 5
staticconstexpr

Definition at line 36 of file Geometry.h.

◆ kNMod

constexpr short o2::cpv::Geometry::kNMod = 4
staticconstexpr

Definition at line 38 of file Geometry.h.

◆ kNPAD

constexpr short o2::cpv::Geometry::kNPAD = 48
staticconstexpr

Definition at line 34 of file Geometry.h.

◆ kNRow

constexpr short o2::cpv::Geometry::kNRow = 16
staticconstexpr

Definition at line 37 of file Geometry.h.

◆ kNumberOfCPVPadsPhi

constexpr short o2::cpv::Geometry::kNumberOfCPVPadsPhi = 128
staticconstexpr

Definition at line 28 of file Geometry.h.

◆ kNumberOfCPVPadsZ

constexpr short o2::cpv::Geometry::kNumberOfCPVPadsZ = 60
staticconstexpr

Definition at line 29 of file Geometry.h.

◆ mPadMap

constexpr short o2::cpv::Geometry::mPadMap[6][8]
staticconstexpr
Initial value:
= {3, 31, 30, 29, 26, 22, 19, 44,
8, 1, 0, 28, 24, 20, 18, 42,
10, 6, 2, 27, 21, 16, 40, 36,
14, 12, 4, 25, 46, 38, 34, 32,
15, 13, 5, 23, 45, 37, 35, 33,
11, 9, 7, 17, 47, 43, 41, 39}

Definition at line 102 of file Geometry.h.

◆ mPadToPhi

constexpr short o2::cpv::Geometry::mPadToPhi[48] = {2, 1, 2, 0, 2, 2, 1, 2, 0, 1, 0, 0, 1, 1, 0, 0, 5, 3, 6, 6, 5, 4, 5, 3, 4, 3, 4, 3, 3, 3, 2, 1, 7, 7, 6, 6, 7, 5, 5, 7, 6, 6, 7, 5, 7, 4, 4, 4}
staticconstexpr

Definition at line 109 of file Geometry.h.

◆ mPadToZ

constexpr short o2::cpv::Geometry::mPadToZ[48] = {1, 1, 2, 0, 3, 4, 2, 5, 1, 5, 2, 5, 3, 4, 3, 4, 2, 5, 1, 0, 1, 2, 0, 4, 1, 3, 0, 2, 1, 0, 0, 0, 3, 4, 3, 4, 2, 4, 3, 5, 2, 5, 1, 5, 0, 4, 3, 5}
staticconstexpr

Definition at line 108 of file Geometry.h.


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