ROOT logo
#ifndef HGEOMRPC_H
#define HGEOMRPC_H

#include "hgeomset.h"

class  HGeomRpc : public HGeomSet {
protected:
  Char_t modName[6];  // name of module
  Char_t eleName[2];  // substring for elements in module
public:
  HGeomRpc();
  ~HGeomRpc() {}
  const Char_t* getModuleName(Int_t) {return modName;}
  const Char_t* getEleName(Int_t) {return eleName;}
  Int_t getSecNumInMod(const TString&);
  ClassDef(HGeomRpc,0) // Class for RPC
};

inline Int_t HGeomRpc::getSecNumInMod(const TString& name) {
  // returns the sector index retrieved from EBOXx
  return (Int_t)(name[4]-'0')-1;
}
#endif  /* !HGEOMRPC_H */
 hgeomrpc.h:1
 hgeomrpc.h:2
 hgeomrpc.h:3
 hgeomrpc.h:4
 hgeomrpc.h:5
 hgeomrpc.h:6
 hgeomrpc.h:7
 hgeomrpc.h:8
 hgeomrpc.h:9
 hgeomrpc.h:10
 hgeomrpc.h:11
 hgeomrpc.h:12
 hgeomrpc.h:13
 hgeomrpc.h:14
 hgeomrpc.h:15
 hgeomrpc.h:16
 hgeomrpc.h:17
 hgeomrpc.h:18
 hgeomrpc.h:19
 hgeomrpc.h:20
 hgeomrpc.h:21
 hgeomrpc.h:22
 hgeomrpc.h:23