ROOT logo
#ifndef HGEOMTOF_H
#define HGEOMTOF_H

#include "hgeomset.h"
#include "TString.h"

class  HGeomTof : public HGeomSet {
protected:
  Char_t modName[6];    // name of module
  Char_t eleName[4];    // substring for elements in module
public:
  HGeomTof();
  ~HGeomTof() {}
  const Char_t* getModuleName(Int_t);
  const Char_t* getEleName(Int_t);
  inline Int_t getSecNumInMod(const TString&);
  inline Int_t getModNumInMod(const TString&);
  ClassDef(HGeomTof,0) // Class for geometry of TOF
};

#endif  /* !HGEOMTOF_H */

inline Int_t HGeomTof::getSecNumInMod(const TString& name) {
  // returns the sector index retrieved from TxxFx
  return (Int_t)(name[4]-'0')-1;
}

inline Int_t HGeomTof::getModNumInMod(const TString& name) {
  // returns the module index retrieved from TxxFx
  return (Int_t)(name[1]-'0')*10+(Int_t)(name[2]-'0')-1;
}
 hgeomtof.h:1
 hgeomtof.h:2
 hgeomtof.h:3
 hgeomtof.h:4
 hgeomtof.h:5
 hgeomtof.h:6
 hgeomtof.h:7
 hgeomtof.h:8
 hgeomtof.h:9
 hgeomtof.h:10
 hgeomtof.h:11
 hgeomtof.h:12
 hgeomtof.h:13
 hgeomtof.h:14
 hgeomtof.h:15
 hgeomtof.h:16
 hgeomtof.h:17
 hgeomtof.h:18
 hgeomtof.h:19
 hgeomtof.h:20
 hgeomtof.h:21
 hgeomtof.h:22
 hgeomtof.h:23
 hgeomtof.h:24
 hgeomtof.h:25
 hgeomtof.h:26
 hgeomtof.h:27
 hgeomtof.h:28
 hgeomtof.h:29
 hgeomtof.h:30
 hgeomtof.h:31