Belle II Software development
Belle2::ECLElementNumbers Namespace Reference

ECL element numbers. More...

Functions

bool isForward (int cellId)
 Check whether the crystal is in forward ECL.
 
bool isBarrel (int cellId)
 Check whether the crystal is in barrel ECL.
 
bool isBackward (int cellId)
 Check whether the crystal is in backward ECL.
 

Variables

const int c_NCrystals = 8736
 Number of crystals.
 
const int c_NCrystalsForward = 1152
 Number of crystals in the forward ECL.
 
const int c_NCrystalsBarrel = 6624
 Number of crystals in the barrel ECL.
 
const int c_NCrystalsBackward = 960
 Number of crystals in the backward ECL.
 
const int c_NCrystalsForwardBarrel = c_NCrystalsForward + c_NCrystalsBarrel
 Number of crystals in the forward and barrel ECL.
 

Detailed Description

ECL element numbers.

Function Documentation

◆ isBackward()

bool isBackward ( int  cellId)
inline

Check whether the crystal is in backward ECL.

Parameters
[in]cellIdCell identifier (1-based).

Definition at line 60 of file ECLElementNumbers.h.

61 {
62 return c_NCrystalsForwardBarrel < cellId;
63 }
const int c_NCrystalsForwardBarrel
Number of crystals in the forward and barrel ECL.

◆ isBarrel()

bool isBarrel ( int  cellId)
inline

Check whether the crystal is in barrel ECL.

Parameters
[in]cellIdCell identifier (1-based).

Definition at line 50 of file ECLElementNumbers.h.

51 {
52 return (c_NCrystalsForward < cellId) &&
53 (cellId <= c_NCrystalsForwardBarrel);
54 }

◆ isForward()

bool isForward ( int  cellId)
inline

Check whether the crystal is in forward ECL.

Parameters
[in]cellIdCell identifier (1-based).

Definition at line 41 of file ECLElementNumbers.h.

42 {
43 return cellId <= c_NCrystalsForward;
44 }
const int c_NCrystalsForward
Number of crystals in the forward ECL.

Variable Documentation

◆ c_NCrystals

const int c_NCrystals = 8736

Number of crystals.

Definition at line 23 of file ECLElementNumbers.h.

◆ c_NCrystalsBackward

const int c_NCrystalsBackward = 960

Number of crystals in the backward ECL.

Definition at line 32 of file ECLElementNumbers.h.

◆ c_NCrystalsBarrel

const int c_NCrystalsBarrel = 6624

Number of crystals in the barrel ECL.

Definition at line 29 of file ECLElementNumbers.h.

◆ c_NCrystalsForward

const int c_NCrystalsForward = 1152

Number of crystals in the forward ECL.

Definition at line 26 of file ECLElementNumbers.h.

◆ c_NCrystalsForwardBarrel

const int c_NCrystalsForwardBarrel = c_NCrystalsForward + c_NCrystalsBarrel

Number of crystals in the forward and barrel ECL.

Definition at line 35 of file ECLElementNumbers.h.