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

#include <PndLmdGeo.h>

Inheritance diagram for PndLmdGeo:
PndSdsGeo

Public Member Functions

 PndLmdGeo ()
 
 ~PndLmdGeo ()
 
const char * getModuleName (Int_t m)
 
const char * getEleName (Int_t m)
 
 ClassDef (PndLmdGeo, 1)
 
const char * getKeepinName (Int_t i, Int_t j)
 
Int_t getModNumInMod (const TString &name) const
 

Protected Member Functions

 ClassDef (PndSdsGeo, 1)
 

Protected Attributes

char fModName [20]
 
char fEleName [20]
 
char fKeepinName [20]
 

Detailed Description

Definition at line 16 of file PndLmdGeo.h.

Constructor & Destructor Documentation

PndLmdGeo::PndLmdGeo ( )
PndLmdGeo::~PndLmdGeo ( )

Definition at line 21 of file PndLmdGeo.cxx.

21 {}

Member Function Documentation

PndSdsGeo::ClassDef ( PndSdsGeo  ,
 
)
protectedinherited
PndLmdGeo::ClassDef ( PndLmdGeo  ,
 
)
const char * PndLmdGeo::getEleName ( Int_t  m)

Definition at line 36 of file PndLmdGeo.cxx.

References PndSdsGeo::fEleName.

36  {
37  // PndSdsGeo::getEleName(m);
38  // Returns the element name of Lmd number m
39  if (m < 9)
40  sprintf(fEleName, "lmd0%i", m + 1);
41  else
42  sprintf(fEleName, "lmd%i", m + 1);
43 
44  return fEleName;
45 }
__m128 m
Definition: P4_F32vec4.h:28
char fEleName[20]
Definition: PndSdsGeo.h:17
const char * PndSdsGeo::getKeepinName ( Int_t  i,
Int_t  j 
)
inherited

Definition at line 47 of file PndSdsGeo.cxx.

References PndSdsGeo::fKeepinName.

48 {
49  sprintf(fKeepinName,"SDSKeepin0%i",i+1);
50  return fKeepinName;
51 }
Int_t i
Definition: run_full.C:25
char fKeepinName[20]
Definition: PndSdsGeo.h:18
Int_t PndSdsGeo::getModNumInMod ( const TString name) const
inlineinherited

returns the module index from module name

Definition at line 25 of file PndSdsGeo.h.

25  {
27  return (Int_t)(name[3]-'0')-1;
28 }
TString name
const char * PndLmdGeo::getModuleName ( Int_t  m)

Definition at line 23 of file PndLmdGeo.cxx.

References PndSdsGeo::fModName.

23  {
24  // PndSdsGeo::getModuleName(m);
25  if (m < 0) {
26  std::cout << "-E- CbmGeoSts::getModuleName:: Module number " << m
27  << " not known!" << std::endl;
28  return "";
29  }
30  if (m < 9)
31  sprintf(fModName, "lmdTrapStrip0%i", m + 1);
32  else
33  sprintf(fModName, "lmdTrapStrip%i", m + 1);
34  return fModName;
35 }
__m128 m
Definition: P4_F32vec4.h:28
char fModName[20]
Definition: PndSdsGeo.h:16

Member Data Documentation

char PndSdsGeo::fEleName[20]
protectedinherited

Definition at line 17 of file PndSdsGeo.h.

Referenced by PndSdsGeo::getEleName(), and getEleName().

char PndSdsGeo::fKeepinName[20]
protectedinherited

Definition at line 18 of file PndSdsGeo.h.

Referenced by PndSdsGeo::getKeepinName().

char PndSdsGeo::fModName[20]
protectedinherited

Definition at line 16 of file PndSdsGeo.h.

Referenced by PndSdsGeo::getModuleName(), and getModuleName().


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