#ifndef HRPCHIT_H
#define HRPCHIT_H
#include "TObject.h"
class HRpcHit : public TObject {
protected:
Float_t tof;
Float_t charge;
Float_t xmod;
Float_t ymod;
Float_t zmod;
Float_t xsec;
Float_t ysec;
Float_t zsec;
Float_t sigma_x;
Float_t sigma_y;
Float_t sigma_z;
Float_t sigma_tof;
Short_t address;
Short_t logBit;
public:
HRpcHit(void);
~HRpcHit(void);
void clear(void);
Float_t getTof() { return tof; }
Float_t getCharge() { return charge; }
Float_t getXMod() { return xmod; }
Float_t getYMod() { return ymod; }
Float_t getZMod() { return zmod; }
Float_t getXRMS() { return sigma_x; }
Float_t getYRMS() { return sigma_y; }
Float_t getZRMS() { return sigma_z; }
Float_t getTOFRMS() { return sigma_tof; }
Float_t getXSec() { return xsec; }
Float_t getYSec() { return ysec; }
Float_t getZSec() { return zsec; }
Int_t getNLocationIndex() { return 3; }
inline Int_t getLocationIndex(Int_t i);
Int_t getSector() const { return (address>>10) & 7; }
Int_t getColumn() const { return (address>>7) & 7; }
Int_t getCell() const { return address & 127; }
inline void setAddress(Int_t sec,Int_t col,Int_t cell);
void setAddress(Short_t add) { address = add; }
void setXSec(Float_t axsec) { xsec = axsec;}
void setYSec(Float_t aysec) { ysec = aysec;}
void setZSec(Float_t azsec) { zsec = azsec;}
void setLogBit(Short_t lBit) { logBit = lBit; }
inline void setHit(Float_t atof, Float_t acharge, Float_t axmod, Float_t aymod, Float_t azmod);
inline void setRMS(Float_t asigma_tof, Float_t asigma_x, Float_t asigma_y, Float_t asigma_z);
ClassDef(HRpcHit,2)
};
inline void HRpcHit::setHit(Float_t atof, Float_t acharge, Float_t axmod, Float_t aymod, Float_t azmod) {
tof = atof;
charge = acharge;
xmod = axmod;
ymod = aymod;
zmod = azmod;
}
inline void HRpcHit::setRMS(Float_t asigma_tof, Float_t asigma_x, Float_t asigma_y, Float_t asigma_z) {
sigma_tof = asigma_tof;
sigma_x = asigma_x;
sigma_y = asigma_y;
sigma_z = asigma_z;
}
inline void HRpcHit::setAddress(Int_t sec,Int_t col,Int_t cell) {
address = (sec<<10) + (col<<7) + cell;
}
inline Int_t HRpcHit::getLocationIndex(Int_t i) {
switch (i) {
case 0 : return getSector(); break;
case 1 : return getColumn(); break;
case 2 : return getCell(); break;
}
return -1;
}
#endif /* !HRPCHIT_H */
Last change: Sat May 22 13:11:17 2010
Last generated: 2010-05-22 13:11
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.