#ifndef BRAT_BrCombinedHit #define BRAT_BrCombinedHit // $Id: BrCombinedHit.h,v 1.2 2001/06/22 17:36:00 cholm Exp $ // // $Log: BrCombinedHit.h,v $ // Revision 1.2 2001/06/22 17:36:00 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.6 1999/01/21 23:23:27 hagel // 1. Changed convention for checking includes. Current convention is: // BRAT_Br...... eg BRAT_BrModule ala ROOT. // 2. Added CVS logs to .h files that didn't have them. // 3. Moved checking of include definition to first line for easier reading // 4. Put checks before all includes in the include files as per BRAT specifications // 5. Added BrGeantHeader to Geant Makefile // 6. All changes have been checked to compile on NT ala Cygnus // // Revision 1.5 1999/01/15 16:37:03 videbaek // Working version of MRS tracking of mtp1,mtp2 and new general track // classes. Changes also added to BrModuleMatchTrack for this reason. // // /////////////////////////////////////////////////////////////////////// // // // BrCombinedHit // // // // BRAHMS Hit class // // // // Author : Kris Hagel (hagel@comp.tamu.edu) // // Created : 9/Mar/1998 // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// #include "iostream.h" // Root Classes #ifndef ROOT_TObject #include "TObject.h" #endif // Brahms Classes class BrTpcCluster; class BrCombinedHit: public TObject { public: BrCombinedHit(); virtual ~BrCombinedHit(); virtual Int_t GetID() {return fID;} virtual Float_t *GetPos() {return fPos;} virtual Float_t *GetDpos() {return fDpos;} virtual Int_t GetImod() {return fImod;} virtual Int_t GetNhit() {return fNhit;} virtual Int_t GetStat() {return fStat;} virtual Int_t GetType() {return fType;} virtual Int_t GetPlace() {return fPlace;} virtual void SetID(Int_t i) {fID = i;} virtual void SetPos(Float_t *pos) {for(Int_t i=0;i<3;i++) fPos[i] = pos[i];} virtual void SetDpos(Float_t *dpos) {for(Int_t i=0;i<2;i++) fDpos[i] = dpos[i];} virtual void SetImod(Int_t i) {fImod = i;} virtual void SetNhit(Int_t i) {fNhit = i;} virtual void SetStat(Int_t i) {fStat = i;} virtual void SetType(Int_t i) {fType = i;} virtual void SetStatBit(Int_t i) {fStat |= i;} virtual void SetPlace(Int_t i) {fPlace = i;} 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 fNhit; // Int_t fStat; // Int_t fType; // Int_t fPlace; // Test to see where it was created; public: friend ostream& operator<< (ostream& os,BrCombinedHit* hitcmb); ClassDef(BrCombinedHit,1) // BRAHMS hit data class }; #endif