#ifndef HTOFCLUSTERSIM_H
#define HTOFCLUSTERSIM_H
#include "htofcluster.h"
#include "htofhitsim.h"
#define MAXPARTICIPANTS 3
class HTofClusterSim : public HTofCluster {
protected:
Int_t nParticipants;
Int_t nTrack1[MAXPARTICIPANTS];
Int_t nTrack2[MAXPARTICIPANTS];
public:
HTofClusterSim(void);
HTofClusterSim(HTofHitSim *hit);
HTofClusterSim(HTofHitSim *hit, Int_t cls, Float_t clpa, Float_t clpl);
~HTofClusterSim(void);
void clear(void);
void incNParticipants() {nParticipants++;}
void setNParticipants(Int_t n) {nParticipants = n;}
Int_t getNParticipants() {return nParticipants;}
inline void setNTrack1(Int_t n) {if (nParticipants<=MAXPARTICIPANTS) nTrack1[nParticipants-1]=n;}
inline void setNTrack2(Int_t n) {if (nParticipants<=MAXPARTICIPANTS) nTrack2[nParticipants-1]=n;}
inline Int_t getNTrack1(Int_t i=0){
if(i>=0 && i<nParticipants) return nTrack1[i];
else return -1;
}
inline Int_t getNTrack2(Int_t i=0){
if(i>=0 && i<nParticipants) return nTrack2[i];
else return -1;
}
ClassDef(HTofClusterSim,1)
};
#endif /* HTOFCLUSTERSIM_H */
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.