107 #include "TRestRadialStrippedMask.h"
109 #include "TRandom3.h"
166 Double_t d = TMath::Sqrt(x * x + y * y);
174 TVector2 point(x, y);
175 Double_t phi = point.Phi();
183 while (angle < 2 * TMath::Pi()) {
An abstract class used to encapsulate different mask pattern class definitions.
void SetType(const std::string &type)
It defines the mask type. To be called by the inherited class constructor.
Int_t fMaxRegions
The maximum number of regions allowed in each mask.
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestPatternMask.
virtual Int_t GetRegion(Double_t &x, Double_t &y)
To be implemented at the inherited class with the pattern and region identification logic.
void PrintCommonPatternMembers()
Prints on screen the information about the metadata members without header.
A class used to define a stripped mask pattern.
Double_t fStripsAngle
The periodity of the stripped structure in radians.
Double_t fInitialRadius
The spacers structure will be effective from this radius, in mm. Default is from 20 mm.
virtual Int_t GetRegion(Double_t &x, Double_t &y) override
It returns a number identifying the region where the particle with coordinates (x,...
void Initialize() override
Function to initialize input/output event members and define the section name.
Double_t fStripsThickness
The width of the stripped structure in mm.
Int_t fModulus
It defines the maximum number of cells/regions in each axis.
TRestRadialStrippedMask()
Default constructor.
void PrintMaskMembers() override
Prints on screen the information about the metadata members of TRestRingsMask, excluding common metad...
~TRestRadialStrippedMask()
Default destructor.
void PrintMask() override
Prints on screen the information about the metadata members of TRestRingsMask, including common patte...
void PrintMetadata() override
Prints on screen the complete information about the metadata members from this class.
Double_t fInternalRegionRadius
Radius of an internal circular region defined inside the fInitialRadius. If 0, there will be no regio...
@ REST_Info
+show most of the information for each steps