In fact, is there any real reason to have any TMaps at all? Why not
just a TObjArray of hits (with hit ID, Sum(E) and TObjArray of
energy-particle pairs)?
Richard
Joanne Bogart wrote:
>
> >From Richard (heavily edited):
>
> > I guess we'd better address the speedup suggestions pronto:
>
> > 1. put compare functions into the TMap keys
> > 2. index McPart (rather than use pointers)
> > 3. write separate branches for each subsystem.
>
> Agreed. To this list I'd like to add
>
> 4. Get rid of TMap in class MCvsE; replace with TObjArray (of energy-particle
> pairs).
>
> The number of particles depositing energy in a single calorimeter tower
> will mostly be small. For a (usually) short list, sequential access
> should be good enough.
>
> Joanne
--
Richard Dubois
SLD, Stanford Linear Accelerator Center
[log in to unmask]
http://www.slac.stanford.edu/~richard/
650-926-3824
650-926-2923 (FAX)
|