Skip to content

Commit

Permalink
Reading of branch 1 TRU data fixed (hw addresses 2048-2176 correspond…
Browse files Browse the repository at this point in the history
…s to branch 1, 0 <= z < 28).
  • Loading branch information
policheh committed Nov 9, 2015
1 parent d249d0b commit eb78f9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PHOS/PHOSbase/AliPHOSTRURawReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ void AliPHOSTRURawReader::ReadFromStream(AliCaloRawStreamV3* rawStream)

const UShort_t * const signal = rawStream->GetSignals(); // stream of 10-bit words, buffered as 16-bit words
const Int_t signalLength = rawStream->GetBunchLength(); // The length of the signal in time steps
const Int_t channelIndex = rawStream->GetColumn(); // For some reason the index of the readout channel is given by GetColumn function
const Int_t index = rawStream->GetColumn(); // For some reason the index of the readout channel is given by GetColumn function

Int_t channelIndex = index;

if (channelIndex >= 2048)
channelIndex-=2048; // branch 1: 0 <= z < 28

fActive = kTRUE; // Set the TRU active

Expand Down

0 comments on commit eb78f9b

Please sign in to comment.