#ifndef HRICHCALSIM_H
#define HRICHCALSIM_H

#include "hrichcal.h"

class HRichCalSim : public HRichCal {
protected:
    Int_t nTrack1;   // index of track nb. for first hit
    Int_t nTrack2;   // index of track nb. for last hit
    Float_t fEnergy;  // energy of the photon coupling to the pad, in case of direct hits is -1
public:
    HRichCalSim(void) : nTrack1(0), nTrack2(0) , fEnergy(0) {}
    ~HRichCalSim(void) {}
    void clear();
    inline void setNTrack1(const Int_t n) {nTrack1=n;} // set trk nb of hit 1
    inline void setNTrack2(const Int_t n) {nTrack2=n;} // set trk nb of hit 2
    inline void setEnergy(Float_t ene) {fEnergy = ene;}     //
    inline Int_t getNTrack1(void) const {return nTrack1;} //get trk nb of hit 1
    inline Int_t getNTrack2(void) const {return nTrack2;} //get trk nb of hit 2
    inline Float_t getEnergy() const {return fEnergy;} 
    void addEnergy(Float_t ene) {fEnergy+= ene; }
    void addHit() {nTrack1++;}
   

ClassDef(HRichCalSim,1) // RICH simulated cal data object
};


#endif /* !HRICHCALSIM_H */

Last change: Sat May 22 13:08:15 2010
Last generated: 2010-05-22 13:08

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.