#include "hgeomrpchit.h"
#include "hgeomrpc.h"
#include "hgeomnode.h"
#include "TString.h"
ClassImp(HGeomRpcHit)
HGeomRpcHit::HGeomRpcHit(HGeomRpc* p) : HGeomHit(p) {
}
Int_t HGeomRpcHit::getIdType() {
if (!currentNode) return 0;
const Char_t* volumeName=currentNode->GetName();
if (volumeName[0]=='E'&&volumeName[1]=='B'&&volumeName[2]=='O'&&volumeName[3]=='X') {
return 500-1;
}
Int_t l1=(Int_t)(volumeName[2]-'0');
Int_t l2=(Int_t)(volumeName[3]-'0');
if (l2>=17) l2=l2-7;
return 500 + 35*(l1-1) + (l2-1);
}
Last change: Sat May 22 12:56:35 2010
Last generated: 2010-05-22 12:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.