// ESAF : Euso Simulation and Analysis Framework // $Id: OAPxBunch.hh,v 1.5 2005/05/03 21:05:01 thea Exp $ // A.Thea created Apr, 18 2004 #ifndef __OAPXBUNCH_HH_ #define __OAPXBUNCH_HH_ #include "TObject.h" #include "OAPxHit.hh" #include "TVector3.h" #include "TClonesArray.h" class OAPxBunch : public TObject { public: // ctor OAPxBunch(); OAPxBunch(Int_t n); // dtor virtual ~OAPxBunch(); // clean pixel content void Clear( Option_t* = "" ); // add a direction to pixel uid void AddHit(Float_t th, Float_t phi, Float_t wl, Int_t uid); void AddHit(const TVector3&, Float_t wl, Int_t uid); void AddHit(const OAPxHit& h); //getters inline OAPxHit* GetHit(Int_t i) {return (OAPxHit*)(*fHits)[i];} inline Int_t GetNumHits() const {return fNumHits;}; inline Int_t GetNumChannels() const {return fNumChannels;}; private: TClonesArray *fHits; //->array of hits Int_t fNumHits; // number of hits stored Int_t fNumChannels; // number of channels static TClonesArray* fgHits; ClassDef(OAPxBunch,1); }; #endif /* __OAPXBUNCH_HH_ */