#ifndef HSTARTCAL_H
#define HSTARTCAL_H
#include "TObject.h"
#include "hstartraw.h"
class HStartCal : public TObject {
protected:
Float_t time;
Float_t timeR;
Float_t timeL;
Float_t timeM;
Float_t fTof;
Float_t fPos;
Int_t nType;
Int_t nMult[6];
Int_t module;
Int_t strip;
public:
HStartCal(void) { clear(); }
~HStartCal(void) {;}
void setTime(const Float_t t) { time=t; }
void setTimeR(const Float_t t) { timeR=t; }
void setTimeL(const Float_t t) { timeL=t; }
void setTimeM(const Float_t t) { timeM=t; }
void setType(const Int_t n) { nType=n; }
void setTof(const Float_t t) { fTof=t; }
void setPos(const Float_t p) { fPos=p; }
void setMult(Int_t nMod, const Int_t m) { nMult[nMod] = m;}
void setModule(const Int_t n) { module=n; }
void setStrip(const Int_t n) { strip=n; }
void setAddress(const Int_t m,const Int_t s) {
module=m;
strip=s;
}
void fill(const Float_t t, const Int_t m,const Int_t s) {
time=t;
module=m;
strip=s;
}
void fill(const Float_t t, const Int_t m,const Int_t s, Int_t n);
Float_t getTime(void) const { return time; }
Float_t getTimeR(void) const { return timeR; }
Float_t getTimeL(void) const { return timeL; }
Float_t getTimeM(void) const { return timeM; }
Float_t getTof(void) const { return fTof; }
Float_t getPos(void) const { return fPos; }
Int_t getType(void) const { return nType; }
Int_t getMult(Int_t n) const { return nMult[n]; }
Int_t getModule(void)const { return module;}
Int_t getStrip(void) const { return strip; }
void getAddress(Int_t& m,Int_t& s) {
m=module;
s=strip;
}
void clear(void) {
time=-1000;
module=-1;
strip=-1;
timeR=-1000;
timeL=-1000;
timeM=-1000;
fTof = -1000;
fPos = -1000;
for(Int_t i=0;i<6;i++){
nMult[i] = 0;
}
}
ClassDef(HStartCal,2)
};
#endif /* ! HSTARTCAL_H */
Last change: Sat May 22 13:14:34 2010
Last generated: 2010-05-22 13:14
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.