44#include "TRestDetectorReadoutChannel.h"
79 if (DetailLevel >= 0) {
80 RESTMetadata <<
"++++ Channel : " <<
GetChannelId() <<
" Daq channel : " <<
GetDaqID() << RESTendl;
83 if (GetType() == Channel_NoType)
85 else if (GetType() == Channel_Pixel)
87 else if (GetType() == Channel_X)
89 else if (GetType() == Channel_Y)
91 else if (GetType() == Channel_U)
93 else if (GetType() == Channel_V)
95 else if (GetType() == Channel_W)
98 RESTMetadata <<
" Total pixels : " <<
GetNumberOfPixels() <<
" Channel type : " << typestr
100 RESTMetadata <<
"+++++++++++++++++++++++++++++++++++++++++++++++++" << RESTendl;
102 if (DetailLevel - 1 >= 0)
std::vector< TRestDetectorReadoutPixel > fReadoutPixel
TRestDetectorReadoutChannel()
TRestDetectorReadoutChannel default constructor.
void Initialize()
Initializes the channel members.
Int_t GetChannelId() const
Returns the corresponding channel id.
Int_t GetDaqID() const
Returns the corresponding daq channel id.
void Print(int DetailLevel=0)
Prints the details of the readout channel including pixel coordinates.
Int_t GetNumberOfPixels()
Returns the total number of pixels inside the readout channel.
Int_t isInside(Double_t x, Double_t y)
Determines if (x,y) referenced to module coordinates is inside the channel.
virtual ~TRestDetectorReadoutChannel()
TRestDetectorReadoutChannel default destructor.