fmssim
|
00001 #ifndef _FMS_TRIGGER_PATCHXY_H_ 00002 #define _FMS_TRIGGER_PATCHXY_H_ 00003 00004 // 00005 // PatchXY.h 00006 // 00007 // Created by TB on 9/16/11. 00008 // Copyright 2011 BNL. All rights reserved. 00009 // 00010 00011 #include "Region.h" 00012 00013 class TVector3; 00014 00015 namespace fms { 00016 00017 namespace trigger { 00018 00022 class PatchXY : public Region { 00023 00024 public: 00025 00026 PatchXY(Double_t xMin = 0., Double_t yMin = 0., 00027 Double_t xMax = 0., Double_t yMax = 0.); 00028 00029 virtual ~PatchXY(); 00030 00031 virtual void SetId(Int_t); 00032 00033 virtual Int_t GetId() const; 00034 00035 virtual Bool_t Contains(const TVector3&) const; 00036 00037 virtual Double_t GetThreshold() const; 00038 00039 virtual void SetThreshold(Double_t); 00040 00041 virtual void Draw(Option_t* = ""); 00042 00046 virtual Double_t XMin() const; 00047 00051 virtual Double_t XMax() const; 00052 00056 virtual Double_t YMin() const; 00057 00061 virtual Double_t YMax() const; 00062 00063 virtual void SetXMin(Double_t); 00064 00065 virtual void SetXMax(Double_t); 00066 00067 virtual void SetYMin(Double_t); 00068 00069 virtual void SetYMax(Double_t); 00070 00071 protected: 00072 00073 Int_t mId; 00074 00075 Double_t mXMin; 00076 Double_t mXMax; 00077 Double_t mYMin; 00078 Double_t mYMax; 00079 00080 Double_t mThreshold; 00081 00082 ClassDef(fms::trigger::PatchXY, 1) 00083 }; 00084 00085 inline void PatchXY::SetId(Int_t i) { mId = i; } 00086 00087 inline Int_t PatchXY::GetId() const { return mId; } 00088 00089 inline Double_t PatchXY::GetThreshold() const { return mThreshold; } 00090 00091 inline void PatchXY::SetThreshold(Double_t t) { mThreshold = t; } 00092 00093 inline Double_t PatchXY::XMin() const { return mXMin; } 00094 00095 inline Double_t PatchXY::XMax() const { return mXMax; } 00096 00097 inline Double_t PatchXY::YMin() const { return mYMin; } 00098 00099 inline Double_t PatchXY::YMax() const { return mYMax; } 00100 00101 inline void PatchXY::SetXMin(Double_t x) { mXMin = x; } 00102 00103 inline void PatchXY::SetXMax(Double_t x) { mXMax = x; } 00104 00105 inline void PatchXY::SetYMin(Double_t y) { mYMin = y; } 00106 00107 inline void PatchXY::SetYMax(Double_t y) { mYMax = y; } 00108 00109 } // namespace trigger 00110 00111 } // namespace fms 00112 00113 #endif