Skip to content
Snippets Groups Projects

Add Trd2d to the data reconstruction

Merged Alexandru Bercuci requested to merge a.bercuci/cbmroot:unified_trdDigi into master
1 file
+ 12
8
Compare changes
  • Side-by-side
  • Inline
@@ -189,15 +189,19 @@ void CbmTrdParSetAsic::putParams(FairParamList* l)
Int_t nchannels(((CbmTrdParAsic*) iModuleIt.second)->GetNchannels());
CbmTrdParFasp* fasp = (CbmTrdParFasp*) iModuleIt.second;
for (Int_t ich(0); ich < nchannels; ich += 2) {
for (Int_t ipair(0); ipair < 2; ipair++) {
for (Int_t ich(0); ich < nchannels; ich++) {
// for (Int_t ipair(0); ipair < 2; ipair++) {
Int_t faspAddress = fasp->GetChannelAddress(ich);
const CbmTrdParFaspChannel* ch = fasp->GetChannel(faspAddress, ipair);
asicInfo[offset + 1 + ich + ipair] = faspAddress;
asicInfo[offset + 1 + (1 * NFASPCH) + ich + ipair] = ch->GetPileUpTime();
asicInfo[offset + 1 + (2 * NFASPCH) + ich + ipair] = ch->GetThreshold();
asicInfo[offset + 1 + (3 * NFASPCH) + ich + ipair] = ch->GetMinDelaySignal();
}
asicInfo[offset + 1 + ich] = faspAddress;
const CbmTrdParFaspChannel* ch = fasp->GetChannel(ich);
if(!ch) {
LOG(info) << "Missing calib for Fasp[" << offset << "] pad " << faspAddress;
continue;
}
asicInfo[offset + 1 + (1 * NFASPCH) + ich] = ch->GetPileUpTime();
asicInfo[offset + 1 + (2 * NFASPCH) + ich] = ch->GetThreshold();
asicInfo[offset + 1 + (3 * NFASPCH) + ich] = ch->GetMinDelaySignal();
// }
}
iAsicNr++;
}
Loading