// -*- mode:c++ -*- // $Id: BrDetectorHit.h,v 1.2 2001/06/22 17:36:04 cholm Exp $ #ifndef BRAT_BrDetectorHit #define BRAT_BrDetectorHit // // // /////////////////////////////////////////////////////////////////////// // // // BrDetectorHit // // // // BRAHMS Detector Hit Class // // // // Author : F.Videbaek // // Created : 26/Feb/1999 // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// #include // Root Classes #ifndef ROOT_TObject #include "TObject.h" #endif // Brahms Classes #ifndef BRAT_BrTpcCluster #include "BrTpcCluster.h" #endif class BrDetectorHit: public TObject { public: BrDetectorHit(); virtual ~BrDetectorHit(); virtual Int_t GetID() const {return fID;} virtual const Float_t *const GetPos() const {return fPos;} virtual const Float_t *const GetDpos() const {return fDpos;} virtual Int_t GetImod() const {return fImod;} virtual Int_t GetRow() const {return fImod;} virtual Int_t GetUsed() const {return fUsed;} virtual Int_t GetStat() const {return fStat;} virtual void SetID(Int_t i) {fID = i;} virtual void SetPos(const Float_t *const pos) {for(Int_t i=0;i<3;i++) fPos[i] = pos[i];} virtual void SetDpos(const Float_t *const dpos) {for(Int_t i=0;i<2;i++) fDpos[i] = dpos[i];} virtual void SetImod(Int_t i) {fImod = i;} virtual void SetRow(Int_t i) {fImod = i;} virtual void SetUsed(Int_t i) {fUsed = i;} virtual void SetStat(Int_t i) {fStat = i;} virtual void IncrementUsed() {fUsed++;} virtual void DecrementUsed() {fUsed--;} private: Int_t fID; // Unique Id Float_t fPos[3]; // Hit position in local coordinates Float_t fDpos[2]; // Estimated uncertainty on (x,y) position Int_t fImod; // Rownumber for TPC; Module+row for DC.. Int_t fUsed; //! Number of times Hit is used (in tracking..) Int_t fStat; // Indicates quality of HIT public: friend ostream& operator<< (ostream& os, BrDetectorHit* hitp); ClassDef(BrDetectorHit,1) // BRAHMS Tracking Detector hit data class }; #endif // $Log: BrDetectorHit.h,v $ // Revision 1.2 2001/06/22 17:36:04 cholm // Change names so that every data class has the same format so that // we have that down from the very beginning, so that we will not have to // worry about that later on. The affected classes are: // // // BrRdoBB -> BrBbRdo // BrRdoZDC -> BrZdcRdo // BrTPCCluster -> BrTpcCluster // BrTPCClusterTable -> BrTpcClusterTable // // Revision 1.1.1.1 2001/06/21 14:55:02 hagel // Initial revision of brat2 // // Revision 1.3 2001/01/30 10:31:30 pchristi // Added const to methods in BrDetectorHit and some utility methods to // BrLocalTrack. // // Revision 1.2 1999/12/23 15:58:55 videbaek // Enhanched use of ClonesArrays for temporary data. i.e. tracks hits // so they become accessible to the outside. // // Revision 1.1 1999/03/07 22:37:38 videbaek // Added DetectorHit and BrLocalTrackingModule as a more general way to // deal with local tracks and hits. Initial insertion. Not fully debugged. //