GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Data Analysis » UCESB multi-dimensional array (multi-dimensional array in UCESB)
UCESB multi-dimensional array [message #19275] Tue, 24 May 2016 17:39 Go to next message
MarcLabiche is currently offline  MarcLabiche
Messages: 7
Registered: March 2016
Location: UK
occasional visitor
From: *dl.ac.uk
Hi,

When I try to define an array of dimension higher than 2 in the file STaRTrack.spec that I'm trying to produce for the Si tracker, for example:

MEMBER(DATA12 adc[18][2][16][128] ZERO_SUPPRESS);

the compilation crashes with the message:
STaRTrack.spec:16: syntax error, unexpected '[', expecting ')'

It seems that only arrays of 1 and 2 dimensions can be defined.

Would it be possible to extend to 4-D array or could you please suggest an alternative ?

Cheers,
Marc


Marc Labiche
STFC Daresbury Lab.
+44 (0)1925603458
icon10.gif  Re: UCESB multi-dimensional array [message #19285 is a reply to message #19275] Wed, 25 May 2016 11:48 Go to previous messageGo to next message
Hans Törnqvist is currently offline  Hans Törnqvist
Messages: 1
Registered: February 2016
Location: Up in the clouds
occasional visitor
From: 140.181.12*
Hello Marc,

The spec file parser is coded in a way that going beyond 2 dimensions would require a lot of work, and I don't know the rationale behind this. For now, you can combine the first dimensions by e.g. adc[18 * 2 * 16][128]. Is it not possible to split this array into smaller module specs?
Re: UCESB multi-dimensional array [message #19287 is a reply to message #19285] Wed, 25 May 2016 12:08 Go to previous message
MarcLabiche is currently offline  MarcLabiche
Messages: 7
Registered: March 2016
Location: UK
occasional visitor
From: *dl.ac.uk
Hi Hans,
ok, thanks.
The mapping will be a bit "less clearer" but I'll try the proposed alternative.
Cheers,
Marc






Marc Labiche
STFC Daresbury Lab.
+44 (0)1925603458
Previous Topic: Ascii calib files
Next Topic: error undefined symbol TSpectrum
Goto Forum:
  


Current Time: Mon Dec 09 08:49:01 CET 2024

Total time taken to generate the page: 0.00703 seconds