[Clas12_software] geometry service running on claradm

Mac Mestayer mestayer at jlab.org
Wed Apr 3 11:02:09 EDT 2013


Hello Johann;

I don't see why we cannot associate the character
string "sector1" and the array element, sector(0), with
the same set of information; or better yet name the
array something like sectorarray(i;i=0,5) so no one
will confuse sectorarray(3) with sector3.

 				- Mac

"mestayer at jlab.org", (757)-269-7252

On Tue, 2 Apr 2013, Johann Goetz wrote:

> Hi Mac,
> Maybe we can deliberate on this on Thursday. But here are my thoughts:
> either way (indexing from 0 or 1), its going to be ambiguous unless we use
> the ordinals 1st, 2nd, etc. -- Since we are not using fortran, a real
> solution for CLAS12 would be to rename the sectors to "sector zero",
> "sector one", ... "sector five" but I don't see this happening. Also, this
> is not a "convenience" thing but a deliberate decision to match the
> interface with the underlying data structure.
>
> Johann <http://sites.google.com/site/theodoregoetz/>
>
>
> On Tue, Apr 2, 2013 at 2:29 PM, Mac Mestayer <mestayer at jlab.org> wrote:
>
>> Hello Johann;
>>
>> I understand that indices run from 0, but what about names?
>> We have been referring to them as sectors 1 to 6 for 20+
>> years; is there some way to separate a name character
>> string (e.g. "sector3") from an index, "2"?  - Mac
>>
>>
>> "mestayer at jlab.org", (757)-269-7252
>>
>>
>



More information about the Clas12_software mailing list