Belle II Software development
ARICHAerogelMap Class Reference

Map of the Aerogel placement. More...

#include <ARICHAerogelMap.h>

Inheritance diagram for ARICHAerogelMap:

Public Types

enum  { c_layers = 2 }
 Various constants. More...
 

Public Member Functions

 ARICHAerogelMap ()
 Default constructor.
 
 ARICHAerogelMap (const std::string &id, int ring, int column, unsigned int *layer, TTimeStamp timeStamp, const std::string &comment)
 Constructor.
 
 ~ARICHAerogelMap ()
 Destructor.
 
std::string getAerogelSN () const
 Return Aerogel serial number.
 
void setAerogelSN (const std::string &agelid)
 Set Aerogel serial number.
 
int getAerogelRingID () const
 Return Aerogel Ring Identifier.
 
void setAerogelRingID (int ring)
 Set Aerogel Ring Identifier.
 
int getAerogelColumnID () const
 Return Aerogel Column Identifier.
 
void setAerogelColumnID (int column)
 Set Aerogel Column Identifier.
 
unsigned int getAerogelLayer (unsigned i) const
 Return Aerogel Layer Identifier.
 
void setAerogelLayer (unsigned int i, unsigned int layer)
 Set aerogel info of layer i.
 
TTimeStamp getAerogelTimeStamp () const
 Return Aerogel installation date.
 
void setTimeStamp (TTimeStamp timeStamp)
 Set Aerogel installation date.
 
std::string getAerogelMapComment () const
 Return comment.
 
void setAerogelMapComment (const std::string &comment)
 Set comment.
 

Private Member Functions

 ClassDef (ARICHAerogelMap, 2)
 ClassDef.
 

Private Attributes

std::string m_id
 Aerogel Identifier.
 
int m_ring
 Aerogel Ring Identifier.
 
int m_column
 Aerogel Column identifier.
 
unsigned int m_layer [c_layers]
 Aerogel Layers.
 
TTimeStamp m_timeStamp
 Installation Date.
 
std::string m_comment
 optional comment
 

Detailed Description

Map of the Aerogel placement.

Definition at line 22 of file ARICHAerogelMap.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Various constants.

Enumerator
c_layers 

number of layers

Definition at line 27 of file ARICHAerogelMap.h.

27 {c_layers = 2,
28 };
@ c_layers
number of layers

Constructor & Destructor Documentation

◆ ARICHAerogelMap() [1/2]

ARICHAerogelMap ( )
inline

Default constructor.

Definition at line 33 of file ARICHAerogelMap.h.

33 : m_id(""), m_ring(0), m_column(0), m_timeStamp(0, 0, 0, kTRUE, 0), m_comment("")
34 {
35 for (unsigned ii = 0; ii < c_layers; ii++) m_layer[ii] = 0;
36 };
std::string m_comment
optional comment
TTimeStamp m_timeStamp
Installation Date.
int m_column
Aerogel Column identifier.
std::string m_id
Aerogel Identifier.
int m_ring
Aerogel Ring Identifier.
unsigned int m_layer[c_layers]
Aerogel Layers.

◆ ARICHAerogelMap() [2/2]

ARICHAerogelMap ( const std::string &  id,
int  ring,
int  column,
unsigned int *  layer,
TTimeStamp  timeStamp,
const std::string &  comment 
)
inline

Constructor.

Definition at line 41 of file ARICHAerogelMap.h.

42 : m_id(id),
43 m_ring(ring), m_column(column), m_timeStamp(timeStamp), m_comment(comment)
44 {
45 for (unsigned ii = 0; ii < c_layers; ii++) m_layer[ii] = layer[ii];
46 }

◆ ~ARICHAerogelMap()

~ARICHAerogelMap ( )
inline

Destructor.

Definition at line 52 of file ARICHAerogelMap.h.

52{};

Member Function Documentation

◆ getAerogelColumnID()

int getAerogelColumnID ( ) const
inline

Return Aerogel Column Identifier.

Returns
Aerogel Column

Definition at line 80 of file ARICHAerogelMap.h.

80{return m_column;}

◆ getAerogelLayer()

unsigned int getAerogelLayer ( unsigned  i) const
inline

Return Aerogel Layer Identifier.

Returns
Aerogel Layer

Definition at line 92 of file ARICHAerogelMap.h.

92{ if (i < c_layers) { return m_layer[i]; } return 0; }

◆ getAerogelMapComment()

std::string getAerogelMapComment ( ) const
inline

Return comment.

Returns
comment

Definition at line 115 of file ARICHAerogelMap.h.

115{return m_comment; }

◆ getAerogelRingID()

int getAerogelRingID ( ) const
inline

Return Aerogel Ring Identifier.

Returns
Aerogel Ring

Definition at line 68 of file ARICHAerogelMap.h.

68{return m_ring;}

◆ getAerogelSN()

std::string getAerogelSN ( ) const
inline

Return Aerogel serial number.

Returns
Aerogel serial number

Definition at line 57 of file ARICHAerogelMap.h.

57{return m_id; }

◆ getAerogelTimeStamp()

TTimeStamp getAerogelTimeStamp ( ) const
inline

Return Aerogel installation date.

Returns
Aerogel installation date

Definition at line 105 of file ARICHAerogelMap.h.

105{return m_timeStamp; }

◆ setAerogelColumnID()

void setAerogelColumnID ( int  column)
inline

Set Aerogel Column Identifier.

Parameters
columnColumn Identifier

Definition at line 86 of file ARICHAerogelMap.h.

86{m_column = column;}

◆ setAerogelLayer()

void setAerogelLayer ( unsigned int  i,
unsigned int  layer 
)

Set aerogel info of layer i.

Parameters
iaerogel layer
layeraerogel layer info

Definition at line 16 of file ARICHAerogelMap.cc.

17{
18 if (i < c_layers) m_layer[i] = layer;
19}

◆ setAerogelMapComment()

void setAerogelMapComment ( const std::string &  comment)
inline

Set comment.

Parameters
comment

Definition at line 120 of file ARICHAerogelMap.h.

120{m_comment = comment; }

◆ setAerogelRingID()

void setAerogelRingID ( int  ring)
inline

Set Aerogel Ring Identifier.

Parameters
ringRing Identifier

Definition at line 74 of file ARICHAerogelMap.h.

74{m_ring = ring;}

◆ setAerogelSN()

void setAerogelSN ( const std::string &  agelid)
inline

Set Aerogel serial number.

Parameters
agelidAerogel serial number

Definition at line 62 of file ARICHAerogelMap.h.

62{m_id = agelid; }

◆ setTimeStamp()

void setTimeStamp ( TTimeStamp  timeStamp)
inline

Set Aerogel installation date.

Parameters
timeStampAerogel installation date

Definition at line 110 of file ARICHAerogelMap.h.

110{m_timeStamp = timeStamp; }

Member Data Documentation

◆ m_column

int m_column
private

Aerogel Column identifier.

Definition at line 126 of file ARICHAerogelMap.h.

◆ m_comment

std::string m_comment
private

optional comment

Definition at line 129 of file ARICHAerogelMap.h.

◆ m_id

std::string m_id
private

Aerogel Identifier.

Definition at line 124 of file ARICHAerogelMap.h.

◆ m_layer

unsigned int m_layer[c_layers]
private

Aerogel Layers.

Definition at line 127 of file ARICHAerogelMap.h.

◆ m_ring

int m_ring
private

Aerogel Ring Identifier.

Definition at line 125 of file ARICHAerogelMap.h.

◆ m_timeStamp

TTimeStamp m_timeStamp
private

Installation Date.

Definition at line 128 of file ARICHAerogelMap.h.


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