GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » NUSTAR » NUSTAR PRESPEC » problem with a processor (software-wise)
Re: problem with a processor (software-wise) [message #17155 is a reply to message #17153] Mon, 11 August 2014 14:07 Go to previous messageGo to previous message
miree is currently offline  miree
Messages: 71
Registered: June 2014
continuous participant
From: *ikp.physik.tu-darmstadt.de
Hi Tayfun,

A comment to your statement: "I want a put a condition on an array". This can mean many different things:

A few examples: It can mean that the condition is fulfilled if
1) all of the array entries fulfill a condition.
2) at least one of the array entries to fulfill a condition
3) at least half of the entries are inside a gate.
4) the size of the array is larger than 5
....

Some of these cases can be achieved by combinations of existing processors.
In order to achieve 2), you could do the following:
Use an UTILS.ArrayFilter that picks out all array entries that fulfill a condition.
Determine the size of the filtered array with the processor UTILS.ArraySize.
Make a condition with UTILS.ConditionWindow1D and make the gate go from 1 to 1000 (a large value).

Michael
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FINGER ToF detector
Next Topic: LYCCA - w-DSSSD Time Gated
Goto Forum:
  


Current Time: Tue Dec 03 16:36:14 CET 2024

Total time taken to generate the page: 0.00856 seconds