FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
PndGeoStt Class Reference

#include <PndGeoStt.h>

Inheritance diagram for PndGeoStt:

Public Member Functions

 PndGeoStt ()
 
 ~PndGeoStt ()
 
const char * getModuleName (Int_t)
 
const char * getEleName (Int_t)
 
Int_t getModNumInMod (const TString &)
 

Protected Attributes

char modName [20]
 
char eleName [20]
 

Detailed Description

Definition at line 6 of file PndGeoStt.h.

Constructor & Destructor Documentation

PndGeoStt::PndGeoStt ( )
PndGeoStt::~PndGeoStt ( )
inline

Definition at line 13 of file PndGeoStt.h.

13 {}

Member Function Documentation

const char * PndGeoStt::getEleName ( Int_t  m)

Definition at line 34 of file PndGeoStt.cxx.

References eleName.

35 {
36  // Returns the element name of sts number m
37  // sprintf(eleName,"s%i",m+1);
38  if ( m < 9 ) sprintf(eleName,"stt0%i",m+1);
39  else sprintf(eleName,"stt%i",m+1);
40  return eleName;
41 }
__m128 m
Definition: P4_F32vec4.h:28
char eleName[20]
Definition: PndGeoStt.h:10
Int_t PndGeoStt::getModNumInMod ( const TString name)
inline

Definition at line 22 of file PndGeoStt.h.

22  {
23  // returns the module index from module name
24 
25 
26  return (Int_t)(name[3]-'0')-1;
27 }
TString name
const char * PndGeoStt::getModuleName ( Int_t  m)

Definition at line 24 of file PndGeoStt.cxx.

References modName.

25 {
26  // Returns the module name of stt number m
27  // sprintf(modName,"stt%i",m+1);
28  if ( m < 9 ) sprintf(modName,"stt0%i",m+1);
29  else sprintf(modName,"stt%i",m+1);
30 
31  return modName;
32 }
__m128 m
Definition: P4_F32vec4.h:28
char modName[20]
Definition: PndGeoStt.h:9

Member Data Documentation

char PndGeoStt::eleName[20]
protected

Definition at line 10 of file PndGeoStt.h.

Referenced by getEleName().

char PndGeoStt::modName[20]
protected

Definition at line 9 of file PndGeoStt.h.

Referenced by getModuleName().


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