REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Private Member Functions | Private Attributes
TRestDetectorReadoutChannel Class Reference

Detailed Description

A class to store the readout channel definition used in TRestDetectorReadoutModule. It allows to integrate any number of independent readout pixels.

This class stores the readout pixel geometrical description, origin position, orientation, and size. A readout pixel is the most elementary component of a readout used to construct a readout channel.


RESTsoft - Software for Rare Event Searches with TPCs

History of developments:

2015-aug: First concept. Javier Galan

Author
Javier Galan

Definition at line 34 of file TRestDetectorReadoutChannel.h.

#include <TRestDetectorReadoutChannel.h>

Public Member Functions

void AddPixel (const TRestDetectorReadoutPixel &pixel)
 Adds a new pixel to the readout channel.
 
Int_t GetChannelId () const
 Returns the corresponding channel id.
 
std::string GetChannelName () const
 
std::string GetChannelType () const
 
Int_t GetDaqID () const
 Returns the corresponding daq channel id.
 
std::string GetName () const
 Returns the channel name.
 
Int_t GetNumberOfPixels ()
 Returns the total number of pixels inside the readout channel.
 
TRestDetectorReadoutPixelGetPixel (int n)
 Returns a pointer to the pixel n by index.
 
std::string GetType () const
 Returns the channel type.
 
Int_t isInside (Double_t x, Double_t y)
 Determines if (x,y) referenced to module coordinates is inside the channel.
 
TRestDetectorReadoutPixeloperator[] (int n)
 
void Print (int DetailLevel=0)
 Prints the details of the readout channel including pixel coordinates.
 
void SetChannelID (Int_t id)
 Sets the readout channel number id.
 
void SetChannelName (const std::string &name)
 
void SetChannelType (const std::string &type)
 
void SetDaqID (Int_t id)
 Sets the daq channel number id.
 
void SetName (const std::string &name)
 Sets the channel name.
 
void SetType (const std::string &type)
 Sets the channel type.
 
 TRestDetectorReadoutChannel ()
 TRestDetectorReadoutChannel default constructor.
 
virtual ~TRestDetectorReadoutChannel ()
 TRestDetectorReadoutChannel default destructor.
 

Private Member Functions

void Initialize ()
 Initializes the channel members.
 

Private Attributes

Short_t fChannelId = -1
 It stores the corresponding physical readout channel.
 
Int_t fDaqID
 
std::string fName
 
std::vector< TRestDetectorReadoutPixelfReadoutPixel
 
std::string fType
 

Field Documentation

◆ fDaqID

Int_t TRestDetectorReadoutChannel::fDaqID
private

Defines the corresponding daq channel id. See decoding details at TRestDetectorReadout.

Definition at line 36 of file TRestDetectorReadoutChannel.h.

◆ fReadoutPixel

std::vector<TRestDetectorReadoutPixel> TRestDetectorReadoutChannel::fReadoutPixel
private

A std::vector storing the different TRestDetectorReadoutPixel definitions.

Definition at line 38 of file TRestDetectorReadoutChannel.h.


The documentation for this class was generated from the following files: