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

#include <PndGeoFts.h>

Inheritance diagram for PndGeoFts:

Public Member Functions

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

Protected Attributes

char modName [40]
 
char eleName [40]
 

Detailed Description

Definition at line 6 of file PndGeoFts.h.

Constructor & Destructor Documentation

PndGeoFts::PndGeoFts ( )

Definition at line 13 of file PndGeoFts.cxx.

14 {
15  // Constructor
16  fName="fts";
17  maxSectors=0;
18  maxModules=40;
19 }
PndGeoFts::~PndGeoFts ( )
inline

Definition at line 13 of file PndGeoFts.h.

13 {}

Member Function Documentation

const char * PndGeoFts::getEleName ( Int_t  m)

Definition at line 32 of file PndGeoFts.cxx.

References eleName.

33 {
34  // Returns the element name of fts number m
35 
36  if ( m < 9 ) sprintf(eleName,"fts0%i",m+1);
37  else sprintf(eleName,"fts%i",m+1);
38  //std::cout << "ELENAME: " << eleName << std::endl;
39 
40  return eleName;
41 
42 }
__m128 m
Definition: P4_F32vec4.h:28
char eleName[40]
Definition: PndGeoFts.h:10
Int_t PndGeoFts::getModNumInMod ( const TString name)
inline

Definition at line 20 of file PndGeoFts.h.

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

Definition at line 21 of file PndGeoFts.cxx.

References modName.

22 {
23  // Returns the module name of fts number m
24 
25  if ( m < 9 ) sprintf(modName,"fts0%i",m+1);
26  else sprintf(modName,"fts%i",m+1);
27  //std::cout << "MODNAME: " << modName << std::endl;
28 
29  return modName;
30 }
__m128 m
Definition: P4_F32vec4.h:28
char modName[40]
Definition: PndGeoFts.h:9

Member Data Documentation

char PndGeoFts::eleName[40]
protected

Definition at line 10 of file PndGeoFts.h.

Referenced by getEleName().

char PndGeoFts::modName[40]
protected

Definition at line 9 of file PndGeoFts.h.

Referenced by getModuleName().


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