////////////////////////////////////////////////////////////////////////////// // // $Id: $ // //*-- Author : RICH team member //*-- Revised : Martin Jurkovic 2010 // //_HADES_CLASS_DESCRIPTION ////////////////////////////////////////////////////////////////////////////// // // HRichFrame // // ////////////////////////////////////////////////////////////////////////////// #ifndef HRICHFRAME_H #define HRICHFRAME_H #include "TArrayF.h" #include "TObjArray.h" #include "hparcond.h" class HParamList; class HParHadAsciiFileIo; class HRichFrameCorner; class HRichFrame : public HParCond { private: Int_t fCornerNr; // Frame corner number Float_t fPadsWiresDistance; // Distance between the wire and the padplane TObjArray fFrameArr; // Array of frame corners TArrayF fFrameCorners; // private: void clear(); void calculateFlagArea(); public: HRichFrame(); virtual ~HRichFrame(); void printParams(); void putParams(HParamList* l); Bool_t getParams(HParamList* l); Int_t isOut(Float_t x, Float_t y); Int_t addCorner(HRichFrameCorner*); /////////////////////////////////////////////////////////////////// // GETTERS HRichFrameCorner* getCorner(Int_t n); Int_t getCornerNr(); Float_t getPadsWiresDist(); /////////////////////////////////////////////////////////////////// // SETTERS Int_t setCorner(HRichFrameCorner* pCorner, Int_t n); void setCornerNr(Int_t n); void setPadsWiresDist(Float_t dist); ClassDef(HRichFrame, 1) }; /////////////////////////////////////////////////////////////////// // GETTERS inline Int_t HRichFrame::getCornerNr() { return fCornerNr; } inline Float_t HRichFrame::getPadsWiresDist() { return fPadsWiresDistance; } /////////////////////////////////////////////////////////////////// // SETTERS inline void HRichFrame::setCornerNr(Int_t n) { fCornerNr = n; } inline void HRichFrame::setPadsWiresDist(Float_t dist) { fPadsWiresDistance = dist; } #endif // HRICHFRAME_H