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

#include <PndSdsGeo.h>

Inheritance diagram for PndSdsGeo:
PndLmdGeo

Public Member Functions

 PndSdsGeo ()
 
 ~PndSdsGeo ()
 
const char * getModuleName (Int_t m)
 
const char * getEleName (Int_t m)
 
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 6 of file PndSdsGeo.h.

Constructor & Destructor Documentation

PndSdsGeo::PndSdsGeo ( )

Definition at line 16 of file PndSdsGeo.cxx.

17 {
18  // Constructor
19  fName="sds";
20  maxSectors=99;
21  maxModules=99;
22  //maxKeepinVolumes=99;
23 }
PndSdsGeo::~PndSdsGeo ( )
inline

Definition at line 10 of file PndSdsGeo.h.

10 {}

Member Function Documentation

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

Definition at line 37 of file PndSdsGeo.cxx.

References fEleName.

38 {
39  // Returns the element name of PndSds number m
40  if (m < 9)
41  sprintf(fEleName,"sds0%i",m+1);
42  else sprintf(fEleName,"sds%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 
)

Definition at line 47 of file PndSdsGeo.cxx.

References 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
inline

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 * PndSdsGeo::getModuleName ( Int_t  m)

Definition at line 25 of file PndSdsGeo.cxx.

References fModName.

26 {
27  if ( m < 0 ) {
28  std::cout <<"-E- CbmGeoSts::getModuleName:: Module number "
29  << m << " not known!" << std::endl;
30  return "";
31  }
32  if ( m < 9 ) sprintf(fModName,"sdsstation0%i",m+1);
33  else sprintf(fModName,"sdsstation%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]
protected

Definition at line 17 of file PndSdsGeo.h.

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

char PndSdsGeo::fKeepinName[20]
protected

Definition at line 18 of file PndSdsGeo.h.

Referenced by getKeepinName().

char PndSdsGeo::fModName[20]
protected

Definition at line 16 of file PndSdsGeo.h.

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


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