Skip to content
Snippets Groups Projects
Commit 508bb940 authored by Alexandru Bercuci's avatar Alexandru Bercuci
Browse files

update for Fasp FEE

parent 3a57534e
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment