23#ifndef RestCore_TRestDetectorReadoutChannel
24#define RestCore_TRestDetectorReadoutChannel
26#include <TRestMetadata.h>
30#include "TRestDetectorReadoutPixel.h"
32enum TRestDetectorReadoutChannelType {
73 void SetType(TRestDetectorReadoutChannelType type) {
77 TRestDetectorReadoutChannelType GetType() {
79 return Channel_NoType;
91 Int_t
isInside(Double_t x, Double_t y);
93 void Print(
int DetailLevel = 0);
std::vector< TRestDetectorReadoutPixel > fReadoutPixel
TRestDetectorReadoutChannel()
TRestDetectorReadoutChannel default constructor.
void Initialize()
Initializes the channel members.
Int_t GetChannelId() const
Returns the corresponding channel id.
Short_t fChannelId
It stores the corresponding physical readout channel.
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.
void AddPixel(const TRestDetectorReadoutPixel &pixel)
Adds a new pixel to 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.
void SetDaqID(Int_t id)
Sets the daq channel number id.
void SetChannelID(Int_t id)
Sets the readout channel number id.
TRestDetectorReadoutPixel * GetPixel(int n)
Returns a pointer to the pixel n by index.
A class to store the readout pixel definition used in TRestDetectorReadoutChannel.