23#ifndef RestCore_TRestDetectorReadoutPixel
24#define RestCore_TRestDetectorReadoutPixel
104 Bool_t
IsInside(
const TVector2& pos);
A class to store the readout pixel definition used in TRestDetectorReadoutChannel.
TVector2 GetCenter() const
Returns the center TVector2 position of the pixel.
Double_t fPixelSizeY
The pixel y size.
Double_t fPixelOriginX
The pixel x-origin position, left-bottom corner.
Double_t GetOriginX() const
Returns the x-coordinate pixel origin.
Double_t fTolerance
It will be initialized with the module parameter "pixelTolerance".
void SetOrigin(const TVector2 &origin)
Sets the origin of the pixel using a TVector2.
Double_t GetSizeX() const
Returns the pixel size in X.
Bool_t IsInside(const TVector2 &pos)
Determines if a given TVector2 pos coordinates are found inside the pixel. The coordinates are refere...
Bool_t GetTriangle() const
Returns true if the pixel is a triangle.
void SetSize(const TVector2 &size)
Sets the size of the pixel using a TVector2.
TVector2 GetOrigin() const
Returns a TVector2 with the pixel origin.
TVector2 GetSize()
Returns a TVector2 with the pixel size.
void SetTriangle(Bool_t type)
Sets the type of the pixel.
Double_t GetOriginY() const
Returns the y-coordinate pixel origin.
void SetRotation(Double_t rot)
Sets the rotation angle of the pixel in degrees.
void Initialize()
Initializes the pixel members.
void Print() const
Prints on screen the pixel details, origin, size, rotation.
TVector2 GetVertex(int n) const
Returns the specified pixel vertex position.
TVector2 TransformToPixelCoordinates(const TVector2 &pixel) const
Transforms the coordinates given in a TVector2 to the internal pixel coordinate system....
virtual ~TRestDetectorReadoutPixel()
TRestDetectorReadoutPixel default destructor.
Double_t GetRotation() const
Returns the rotation angle in degrees.
void SetTolerance(Double_t tol)
Sets the value of the tolerance in mm. Used in IsInside method.
TRestDetectorReadoutPixel()
TRestDetectorReadoutPixel default constructor.
Double_t fPixelSizeX
The pixel x size.
Double_t fPixelOriginY
The pixel y-origin position, left-bottom corner.
Double_t GetSizeY() const
Returns the pixel size in Y.