#include "htofclustersim.h"
ClassImp(HTofClusterSim)
HTofClusterSim::HTofClusterSim(void) {
clear();
}
HTofClusterSim::~HTofClusterSim(void) {;}
void HTofClusterSim::clear(void) {
nParticipants = 0;
for(Int_t i=0;i<MAXPARTICIPANTS;i++) {
nTrack1[i] = -1;
nTrack2[i] = -1;
}
}
HTofClusterSim::HTofClusterSim(HTofHitSim *hit){
setTof(hit->getTof());
setXpos(hit->getXpos());
setXposAdc(hit->getXposAdc());
setEdep(hit->getEdep());
setLeftAmp(hit->getLeftAmp());
setRightAmp(hit->getRightAmp());
Float_t xl,yl,zl,d,ph,th;
hit->getXYZLab(xl,yl,zl);
setXYZLab(xl,yl,zl);
hit->getDistance(d);
setDistance(d);
hit->getPhi(ph);
setPhi(ph);
hit->getTheta(th);
setTheta(th);
setSector(hit->getSector());
setModule(hit->getModule());
setCell(hit->getCell());
setAdcFlag(hit->getAdcFlag());
setNParticipants(1);
setNTrack1(hit->getNTrack1());
setNTrack2(hit->getNTrack2());
setClusterSize(1);
setClusterProbAll(1.0);
setClusterProbLep(1.0);
}
HTofClusterSim::HTofClusterSim(HTofHitSim *hit, Int_t cls, Float_t clpa, Float_t clpl){
setTof(hit->getTof());
setXpos(hit->getXpos());
setXposAdc(hit->getXposAdc());
setEdep(hit->getEdep());
setLeftAmp(hit->getLeftAmp());
setRightAmp(hit->getRightAmp());
Float_t xl,yl,zl,d,ph,th;
hit->getXYZLab(xl,yl,zl);
setXYZLab(xl,yl,zl);
hit->getDistance(d);
setDistance(d);
hit->getPhi(ph);
setPhi(ph);
hit->getTheta(th);
setTheta(th);
setSector(hit->getSector());
setModule(hit->getModule());
setCell(hit->getCell());
setAdcFlag(hit->getAdcFlag());
setNParticipants(1);
setNTrack1(hit->getNTrack1());
setNTrack2(hit->getNTrack2());
setClusterSize(cls);
setClusterProbAll(clpa);
setClusterProbLep(clpl);
}
Last change: Sat May 22 13:15:57 2010
Last generated: 2010-05-22 13:15
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.