87#include "TRestCombinedMask.h"
134 for (
const auto mask : fMasks) {
152 for (
const auto mask : fMasks) {
153 Int_t
id = mask->GetRegion(x, y);
160 RESTDebug <<
"TRestCombinedMask::GetRegion. Mask type: " << mask->GetType() <<
" region : " <<
id
162 if (
id == 0)
return 0;
164 region =
id + region * mask->GetMaxRegions();
178 while (msk !=
nullptr) {
195 for (
const auto mask : fMasks) {
196 RESTMetadata <<
" == MASK " << cont <<
" == " <<
RESTendl;
217 RESTMetadata <<
" - Number of masks : " << fMasks.size() <<
RESTendl;
A class used to define and generate a combined structure mask.
void PrintMaskMembers() override
Prints on screen the information about the metadata members from this class excluding common metadata...
TRestCombinedMask()
Default constructor.
void PrintMask() override
Prints on screen the information about the metadata members from this class, including common pattern...
void InitFromConfigFile() override
Implements class initialization through RML.
Int_t GetRegion(Double_t &x, Double_t &y) override
It returns a number identifying the region where the particle with coordinates (x,...
void PrintMetadata() override
Prints on screen the complete information about the metadata members from this class.
~TRestCombinedMask()
Default destructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
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.
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestPatternMask.
Double_t fMaskRadius
The maximum mask radius in mm (if 0 it will be infinite)
@ REST_Info
+show most of the information for each steps