>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
|