//-*-mode:c++-*- // // $Id: BrDCHitPosition.h,v 1.3 2001/08/05 11:40:54 cholm Exp $ // /////////////////////////////////////////////////////////////////////// // // // BrDCHitPosition // // // // BRAHMS Hit class // // // // Author : Kris Hagel (hagel@comp.tamu.edu) // // Created : 13-Mar-1998 // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// #ifndef BRAT_BrDCHitPosition #define BRAT_BrDCHitPosition #ifndef WIN32 #ifndef __IOSTREAM__ #include #endif #else #include #endif #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef BRAT_BrDcDig #include "BrDcDig.h" #endif class BrDcDigInfo { public: friend class BrDCHitPosition; BrDcDig *GetDigDC() {return fDigDC;} Int_t GetUsed() {return fUsed;} void SetDigDC(BrDcDig *dig) {fDigDC = dig;} void IncUsed() {fUsed++;} private: BrDcDigInfo() {fDigDC = 0; fUsed = 0;} BrDcDig *fDigDC; Int_t fUsed; }; class BrDCHitPosition: public TObject { public: BrDCHitPosition(); virtual ~BrDCHitPosition() { }; Int_t GetTdc() { return fTdc;} Int_t GetNwire() { return fNwire;} Float_t GetXwire() { return fXwire;} Float_t GetXdrift() { return fXdrift;} Float_t GetSign() { return fSign;} Float_t GetUhit() { return fUhit;} BrDcDig* GetDigDC() { return fDigDCInfo.GetDigDC();} BrDcDigInfo* GetDigDCInfo() { return &fDigDCInfo;} void SetTdc(Int_t it) { fTdc = it; } void SetNwire(Int_t iw) { fNwire = iw; } void SetXwire(Float_t x) { fXwire = x; } void SetXdrift(Float_t x) { fXdrift = x; } void SetSign(Float_t x) { fSign = x; } void SetUhit(Float_t x) { fUhit = x; } void SetDigDC(BrDcDig *hit) { fDigDCInfo.SetDigDC(hit); } private: Int_t fTdc; Int_t fNwire; Float_t fXwire; Float_t fXdrift; Float_t fSign; Float_t fUhit; BrDcDigInfo fDigDCInfo; //! // From SONATA++ /* float xwire; float xdrift; float sign; float uhit; digHIT* dighit; gHITS* ghits; int hitcmb;*/ public: friend ostream& operator<< (ostream& os,BrDCHitPosition* hitpos); ClassDef(BrDCHitPosition,2) // BRAHMS DC hit data class }; #endif // $Log: BrDCHitPosition.h,v $ // Revision 1.3 2001/08/05 11:40:54 cholm // Took what I beleive to be Pawels latest changes (see the corresponding // email to brahms-dev-l) and commited that. Also cleaned up the class. // Most importantly, I incremented the class version. // // Revision 1.2 2001/06/22 17:36:02 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.7 2001/01/19 17:55:59 staszel // Changes having to do with development of BrDCTrackingModule // // Revision 1.6 2000/10/25 17:58:03 hagel // Further development of BrDCTrackingModule // // Revision 1.5 2000/09/29 02:15:57 hagel // Changes having to do with development of BrDCTrackingModule // // Revision 1.4 2000/07/20 01:26:04 videbaek // remove phobos id from comment // // Revision 1.3 1999/01/21 23:23:22 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 //