23#ifndef RestCore_TRestDetectorReadoutChannel
24#define RestCore_TRestDetectorReadoutChannel
26#include <TRestMetadata.h>
30#include "TRestDetectorReadoutPixel.h"
53 inline std::string
GetName()
const {
return fName; }
56 inline std::string
GetType()
const {
return fType; }
61 std::string GetChannelName()
const {
return fName; }
62 std::string GetChannelType()
const {
return fType; }
64 void SetChannelName(
const std::string& name) { fName = name; }
65 void SetChannelType(
const std::string& type) { fType = type; }
88 void SetName(
const std::string& name) { fName = name; }
91 void SetType(
const std::string& type) { fType = type; }
93 Int_t
isInside(Double_t x, Double_t y);
95 void Print(
int DetailLevel = 0);
std::vector< TRestDetectorReadoutPixel > fReadoutPixel
TRestDetectorReadoutChannel()
TRestDetectorReadoutChannel default constructor.
void Initialize()
Initializes the channel members.
std::string GetType() const
Returns the channel type.
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 SetName(const std::string &name)
Sets the channel name.
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.
void SetType(const std::string &type)
Sets the channel type.
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.
std::string GetName() const
Returns the channel name.
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.