//-*-mode:c++-*- #ifndef BRAT_BrDCPlane #define BRAT_BrDCPlane // $Id: BrDCPlane.h,v 1.1.1.1 2001/06/21 14:55:00 hagel Exp $ // /////////////////////////////////////////////////////////////////////// // // // BrDCPlane // // // // // // // /////////////////////////////////////////////////////////////////////// // Root Classes /* #ifndef ROOT_TNamed #include "TNamed.h" #endif */ #ifndef BRAT_BrPlane3D #include "BrPlane3D.h" #endif // BRAHMS Classes //class BrDCPlane : public TNamed { class BrDCPlane : public BrPlane3D { public: BrDCPlane(); BrDCPlane(Char_t *name,Char_t *title); BrDCPlane(Char_t *name,Char_t *title, Float_t wirdis, Float_t wirang,Float_t stagger); BrDCPlane(Char_t *name,Char_t *title, Float_t wirdis, Float_t wirang,Float_t stagger, const BrVector3D &p1, const BrVector3D &p2, const BrVector3D &p3); BrDCPlane(Char_t *name, Char_t *title, Float_t wirdis, Float_t wirang,Float_t stagger, const Double_t x1, const Double_t y1, const Double_t z1, const Double_t x2, const Double_t y2, const Double_t z2, const Double_t x3, const Double_t y3, const Double_t z3 ); BrDCPlane(Char_t *name, Char_t *title, Float_t wirdis, Float_t wirang,Float_t stagger,const Double_t z); virtual ~BrDCPlane(); void SetDefaultParams(); // Int_t GetNwire() {return fNwire;} Int_t GetNwire(); Float_t GetWirdis() {return fWirdis;} Float_t GetWirang() {return fWirang;} const Text_t *GetName() {return fName;} const Text_t *GetTitle() {return fTitle;} Double_t GetPlaneZ(Float_t x,Float_t y) {if (GetC() !=0) return -(x*GetA() + y*GetB() + GetD())/GetC(); else return 0;} Float_t GetWirePosition(const Int_t iwire); Int_t GetWireNumber(const Float_t xpos); Float_t GetStagger() {return fStagger;} Float_t GetTdcConv(const Int_t iwire); Float_t GetTdcOffset(const Int_t iwire); Float_t GetRealTime(const Int_t adc_time,const Int_t iwire); // void SetNwire(Int_t i) {fNwire = i;} void SetWirdis(Float_t x) {fWirdis = x;} void SetWirang(Float_t x) {fWirang = x;} void SetStagger(Float_t x) {fStagger = x;} void SetName(const Text_t *name); void SetTitle(const Text_t *title); void ListParameters(); private: Char_t fName[64]; Char_t fTitle[64]; // Int_t fNwire; Float_t fWirdis; Float_t fWirang; Float_t fStagger; // For the moment, use same TDC conversion factors for all wires. // This will change later. Float_t fTdcConv; Float_t fTdcOffset; public: ClassDef(BrDCPlane,1) // BRAHMS detector volume class }; #endif // $Log: BrDCPlane.h,v $ // Revision 1.1.1.1 2001/06/21 14:55:00 hagel // Initial revision of brat2 // // Revision 1.5 2000/09/29 02:15:57 hagel // Changes having to do with development of BrDCTrackingModule // // Revision 1.4 1999/04/07 21:11:19 hagel // Add support for BrDCPlane to specify stagger // // Revision 1.3 1999/03/16 21:04:11 hagel // 1. Make BrDCPlane inherit from BrPlane3D. BrDCPlane how has information about // where it is located. // 2. Change BrDigitizeDC and BrLocalTrackDC to make use of new BrDCPlane information. // 3. Move Decode(...) from BrDigitizeDC to BrLocalTrackDC. // 4. Change cut parameters to be member data with defaults rather than hardwired. // // Revision 1.2 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 //