Belle II Software  release-08-01-10
EKLMGeometry Class Reference

Class to store EKLM geometry data in the database. More...

#include <EKLMGeometry.h>

Inheritance diagram for EKLMGeometry:
Collaboration diagram for EKLMGeometry:

Classes

class  ElementPosition
 Position information for the elements of detector. More...
 
class  EndcapStructureGeometry
 Endcap srtucture geometry parameters. More...
 
class  PlasticSheetGeometry
 Plastic sheet geometry data. More...
 
class  Point
 2D point. More...
 
class  SectorSupportGeometry
 Sector support geometry data. More...
 
class  SegmentSupportGeometry
 Segment support geometry data. More...
 
class  SegmentSupportPosition
 Segment support position. More...
 
class  ShieldDetailGeometry
 Shield layer detail geometry data. More...
 
class  ShieldGeometry
 Shield layer geometry data. More...
 
class  StripGeometry
 Strip geometry data. More...
 

Public Member Functions

 EKLMGeometry ()
 Constructor.
 
 EKLMGeometry (const EKLMGeometry &geometry)
 Copy constructor.
 
 ~EKLMGeometry ()
 Destructor.
 
EKLMGeometryoperator= (const EKLMGeometry &geometry)
 Operator =.
 
bool beamBackgroundStudy () const
 Whether to perform beam-background study.
 
int getNSections () const
 Get number of sections.
 
int getNLayers () const
 Get number of layers.
 
int getNDetectorLayers (int section) const
 Get number of detector layers. More...
 
int getNSectors () const
 Get number of sectors.
 
int getNPlanes () const
 Get number of planes.
 
int getNSegments () const
 Get number of segments.
 
int getNSegmentSupportElementsSector () const
 Get number of segment support elements *in one sector).
 
int getNStrips () const
 Get number of strips.
 
void checkDetectorLayerNumber (int section, int layer) const
 Check if number of detector layers is correct (fatal error if not). More...
 
void checkDetectorLayer (int section, int layer) const
 Check if detector layer number is correct (fatal error if not). More...
 
void checkSegmentSupport (int support) const
 Check if segment support number is correct (fatal error if not). More...
 
void checkStripSegment (int strip) const
 Check if number of strip in a segment is correct (fatal error if not). More...
 
double getSolenoidZ () const
 Get solenoid center Z coordinate.
 
const EndcapStructureGeometrygetEndcapStructureGeometry () const
 Get endcap structure geometry data.
 
const ElementPositiongetSectionPosition () const
 Get position data for sections.
 
const ElementPositiongetLayerPosition () const
 Get position data for layers.
 
double getLayerShiftZ () const
 Get Z distance between two layers.
 
const ElementPositiongetSectorPosition () const
 Get position data for sectors.
 
const ElementPositiongetSectorSupportPosition () const
 Get position data for sector support structure.
 
const SectorSupportGeometrygetSectorSupportGeometry () const
 Get sector support geometry data.
 
const ElementPositiongetPlanePosition () const
 Get position data for planes.
 
const PlasticSheetGeometrygetPlasticSheetGeometry () const
 Get plastic sheet geometry data.
 
const SegmentSupportGeometrygetSegmentSupportGeometry () const
 Get segment support geometry data.
 
const SegmentSupportPositiongetSegmentSupportPosition (int plane, int support) const
 Get position data for segment support structure. More...
 
const StripGeometrygetStripGeometry () const
 Get strip geometry data.
 
const ElementPositiongetStripPosition (int strip) const
 Get position data for strips. More...
 
const ShieldGeometrygetShieldGeometry () const
 Get shield layer details geometry data.
 

Protected Member Functions

 ClassDef (Belle2::EKLMGeometry, 6)
 Class version.
 

Protected Attributes

const EKLMElementNumbersm_ElementNumbers
 Element numbers.
 
bool m_BeamBackgroundStudy = false
 ROOT streamer. More...
 
int m_NSections
 Number of sections.
 
int m_NLayers
 Number of layers in one section.
 
int * m_NDetectorLayers
 Number of detector layers.
 
int m_NSectors
 Number of sectors in one layer.
 
int m_NPlanes
 Number of planes in one sector.
 
int m_NSegments
 Number of segments in one plane.
 
int m_NSegmentSupportElementsSector
 Number of segment support elements in one sector.
 
int m_NStrips
 Number of strips in one plane.
 
double m_SolenoidZ
 Solenoid center Z coordinate.
 
EndcapStructureGeometry m_EndcapStructureGeometry
 Section structure geometry data.
 
ElementPosition m_SectionPosition
 Position data for sections.
 
ElementPosition m_LayerPosition
 Position data for layers.
 
double m_LayerShiftZ
 Z distance between two layers.
 
ElementPosition m_SectorPosition
 Position data for sectors.
 
ElementPosition m_SectorSupportPosition
 Position data for sector support structure.
 
SectorSupportGeometry m_SectorSupportGeometry
 Sector support geometry data.
 
ElementPosition m_PlanePosition
 Position data for planes.
 
PlasticSheetGeometry m_PlasticSheetGeometry
 Plastic sheet geometry data.
 
SegmentSupportGeometry m_SegmentSupportGeometry
 Segment support geometry data.
 
SegmentSupportPositionm_SegmentSupportPosition
 Position data for segment support structure.
 
StripGeometry m_StripGeometry
 Strip geometry data.
 
ElementPositionm_StripPosition
 Position data for strips.
 
ShieldGeometry m_ShieldGeometry
 Shield layer details geometry data.
 

Detailed Description

Class to store EKLM geometry data in the database.

Definition at line 29 of file EKLMGeometry.h.

Member Function Documentation

◆ checkDetectorLayer()

void checkDetectorLayer ( int  section,
int  layer 
) const

Check if detector layer number is correct (fatal error if not).

Section number must be checked separately.

Parameters
[in]sectionSection number.
[in]layerLayer number.

Definition at line 312 of file EKLMGeometry.cc.

313 {
314  /* cppcheck-suppress variableScope */
315  const char* sectionName[2] = {"backward", "forward"};
316  if (layer < 0 || layer > m_NDetectorLayers[section - 1])
317  B2FATAL("Number of layer must be less from 1 to the number of "
318  "detector layers in the " << sectionName[section - 1] << " section ("
319  << m_NDetectorLayers[section - 1] << ").");
320 }
int * m_NDetectorLayers
Number of detector layers.

◆ checkDetectorLayerNumber()

void checkDetectorLayerNumber ( int  section,
int  layer 
) const

Check if number of detector layers is correct (fatal error if not).

Section number must be checked separately.

Parameters
[in]sectionSection number.
[in]layerLayer number.

Definition at line 301 of file EKLMGeometry.cc.

◆ checkSegmentSupport()

void checkSegmentSupport ( int  support) const

Check if segment support number is correct (fatal error if not).

Parameters
[in]supportSegment support element number.

Definition at line 322 of file EKLMGeometry.cc.

◆ checkStripSegment()

void checkStripSegment ( int  strip) const

Check if number of strip in a segment is correct (fatal error if not).

Parameters
[in]stripStrip number.

Definition at line 329 of file EKLMGeometry.cc.

◆ getNDetectorLayers()

int getNDetectorLayers ( int  section) const

Get number of detector layers.

Parameters
[in]sectionSection number (1 - backward, 2 - forward).

Definition at line 293 of file EKLMGeometry.cc.

◆ getSegmentSupportPosition()

const EKLMGeometry::SegmentSupportPosition * getSegmentSupportPosition ( int  plane,
int  support 
) const

Get position data for segment support structure.

Parameters
[in]planePlane number.
[in]supportSegment support element number.

Definition at line 339 of file EKLMGeometry.cc.

◆ getStripPosition()

const EKLMGeometry::ElementPosition * getStripPosition ( int  strip) const

Get position data for strips.

Parameters
[in]stripStrip number.

Definition at line 348 of file EKLMGeometry.cc.

Member Data Documentation

◆ m_BeamBackgroundStudy

bool m_BeamBackgroundStudy = false
protected

ROOT streamer.

Whether to perform beam-background study.

Definition at line 1896 of file EKLMGeometry.h.


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