Skip to content
Snippets Groups Projects

STS Digitizer: CbmStsDigitize and CbmStsParModule

Merged Mehulkumar Shiroya requested to merge m.shiroya/cbmroot:STS_Digitize into master

Files

@@ -102,6 +102,28 @@ void CbmStsParModule::SetAsic(uint32_t asicNr, const CbmStsParAsic& asicPar)
// -------------------------------------------------------------------------
//--------------- Function to get the side of the module (Sensor) ----------
Int_t CbmStsParModule::GetModuleSide(uint32_t channel) const
{
assert(channel < fNofChannels);
// Calculate side: 0 for channels in the front side, 1 for channels in the back side of the sensor
return channel < (fNofChannels / 2) ? 0 : 1;
}
// -------------------------------------------------------------------------
//--------------- Function to get the Asic Index for each side of the module ----------
uint32_t CbmStsParModule::GetAsicIndex(uint32_t channel) const
{
// Ensure the channel is within valid range
assert(channel < fNofChannels);
// Return the ASIC index: channel number divided by ASIC channel size
return channel / fNofAsicChannels;
}
// ----- String output -------------------------------------------------
string CbmStsParModule::ToString() const
{
Loading