#ifndef HTOFHIT_H
#define HTOFHIT_H
#include "TObject.h"
class HTofHit : public TObject {
private:
Int_t index;
Float_t tof;
Float_t xpos;
Float_t xposAdc;
Float_t edep;
Float_t lAmp;
Float_t rAmp;
Float_t xlab;
Float_t ylab;
Float_t zlab;
Float_t dist;
Float_t theta;
Float_t phi;
Char_t sector, module, cell;
Int_t flagAdc;
public:
HTofHit(void) : index(-1),tof(0.0F), xpos(0.0F) {}
~HTofHit(void) {}
Int_t getIndex(void) {return index;}
Char_t getSector(void) {return sector;}
Char_t getModule(void) {return module;}
Char_t getCell(void) {return cell;}
Float_t getTof(void) {return tof;}
Float_t getXpos(void) {return xpos;}
Float_t getXposAdc(void) {return xposAdc;}
Float_t getEdep(void) {return edep;}
Float_t getLeftAmp(void) {return lAmp;}
Float_t getRightAmp(void) {return rAmp;}
void getXYZLab(Float_t &x, Float_t &y, Float_t &z) { x = xlab; y = ylab; z = zlab; }
void getDistance(Float_t &d) { d = dist; }
void getTheta(Float_t &th) { th = theta; }
void getPhi(Float_t &ph) { ph = phi; }
Int_t getAdcFlag(void) {return flagAdc; }
void setIndex(Int_t idx) { index=idx;}
void setSector(Char_t s) { sector=s;}
void setModule(Char_t m) { module=m;}
void setCell(Char_t c) { cell=c;}
void setTof(Float_t atof) {tof=atof;}
void setXpos(Float_t axpos) {xpos=axpos;}
void setXposAdc(Float_t axposAdc) {xposAdc=axposAdc;}
void setEdep(Float_t aedep) {edep=aedep;}
void setLeftAmp(Float_t alAmp) {lAmp=alAmp;}
void setRightAmp(Float_t arAmp) {rAmp=arAmp;}
void setXYZLab(Float_t x, Float_t y, Float_t z) { xlab = x; ylab = y; zlab = z; }
void setDistance(Float_t d) { dist = d; }
void setTheta(Float_t th) { theta = th; }
void setPhi(Float_t ph) { phi = ph; }
void setAdcFlag(Int_t af) {flagAdc = af; }
void setValues(Float_t atof,Float_t axpos) {tof=atof;xpos=axpos;}
Int_t operator< (const HTofHit &hit) { return tof<hit.tof && xpos<hit.xpos;}
Int_t operator>(const HTofHit &hit) {return tof>hit.tof && xpos>hit.xpos;}
Int_t operator!=(const HTofHit &hit) { return tof!=hit.tof || xpos!=hit.xpos;}
HTofHit &operator=(const HTofHit &a) {
tof=a.tof; xpos=a.xpos;
return *this;
}
ClassDef(HTofHit,2)
};
#endif /* !HTOFHIT_H */
Last change: Sat May 22 13:16:12 2010
Last generated: 2010-05-22 13:16
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.