Belle II Software development
CDCGeometry::EndPlate Class Reference

Endplate geometry parameters. More...

#include <CDCGeometry.h>

Inheritance diagram for CDCGeometry::EndPlate:

Public Member Functions

 EndPlate ()
 Constructor.
 
 EndPlate (int i)
 Constructor.
 
 ~EndPlate ()
 Destructor.
 
void appendNew (const std::string &name, int ilay, double rmin, double rmax, double zfwd, double zbwd)
 Add new endplate layer.
 
int getNEndPlateLayers () const
 Get the number of endplate layers.
 
int getId () const
 Get ID.
 
EndPlateLayer getEndPlateLayer (int i) const
 Get i-th endplate layer.
 
std::vector< EndPlateLayergetEndPlateLayers () const
 Get the list of endplate layers.
 

Private Member Functions

 ClassDef (EndPlate, 1)
 Makes objects storable.
 

Private Attributes

int m_id
 Layer ID.
 
std::vector< EndPlateLayerm_endPlateLayers
 Endplate layers.
 

Detailed Description

Endplate geometry parameters.

Definition at line 1351 of file CDCGeometry.h.

Constructor & Destructor Documentation

◆ EndPlate() [1/2]

EndPlate ( )
inline

Constructor.

Definition at line 1357 of file CDCGeometry.h.

1357{}

◆ EndPlate() [2/2]

EndPlate ( int  i)
inlineexplicit

Constructor.

Definition at line 1362 of file CDCGeometry.h.

1362: m_id(i) {};

◆ ~EndPlate()

~EndPlate ( )
inline

Destructor.

Definition at line 1367 of file CDCGeometry.h.

1367{}

Member Function Documentation

◆ appendNew()

void appendNew ( const std::string &  name,
int  ilay,
double  rmin,
double  rmax,
double  zfwd,
double  zbwd 
)
inline

Add new endplate layer.

Definition at line 1372 of file CDCGeometry.h.

1374 {
1375 EndPlateLayer eplayer(name, ilay, rmin, rmax, zfwd, zbwd);
1376 m_endPlateLayers.push_back(eplayer);
1377 }
std::vector< EndPlateLayer > m_endPlateLayers
Endplate layers.
Definition: CDCGeometry.h:1399

◆ getEndPlateLayer()

EndPlateLayer getEndPlateLayer ( int  i) const
inline

Get i-th endplate layer.

Definition at line 1392 of file CDCGeometry.h.

1392{return m_endPlateLayers.at(i);}

◆ getEndPlateLayers()

std::vector< EndPlateLayer > getEndPlateLayers ( ) const
inline

Get the list of endplate layers.

Definition at line 1396 of file CDCGeometry.h.

1396{return m_endPlateLayers;}

◆ getId()

int getId ( ) const
inline

Get ID.

Definition at line 1387 of file CDCGeometry.h.

1387{return m_id;}

◆ getNEndPlateLayers()

int getNEndPlateLayers ( ) const
inline

Get the number of endplate layers.

Definition at line 1382 of file CDCGeometry.h.

1382{return m_endPlateLayers.size();}

Member Data Documentation

◆ m_endPlateLayers

std::vector<EndPlateLayer> m_endPlateLayers
private

Endplate layers.

Definition at line 1399 of file CDCGeometry.h.

◆ m_id

int m_id
private

Layer ID.

Definition at line 1398 of file CDCGeometry.h.


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