Project

General

Profile

Actions

Sim-Development #1300

closed

Introduce a zero-field magnetic field map

Added by Volker Friese about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/02/2019
Due date:
08/05/2019
% Done:

100%

Estimated time:
Spent time:

Description

For setups without magnetic field (e.g., mCBM), a field map must currently be loaded, although it is then scaled by a factor of 0. It would be good to avoid that by having a zero field class returning zero on each call. Thus, loading of an unnessecary field map could be avoided.

Actions #1

Updated by Florian Uhlig about 3 years ago

Isn't it be possible to use the CbmFieldConst with a field value of 0.? This should be even faster than using a map.

Actions #2

Updated by Volker Friese almost 3 years ago

Yes, that is a possibility to go without field map. However, CbmFieldConst performs a range check (field volume) on each call. That can in principle be avoided, either with a new field class or by appropriately modifying CbmFieldConst.

Actions #3

Updated by Volker Friese almost 3 years ago

  • Due date set to 08/05/2019
  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

CbmFieldConst (or an arbitrary field class) can now be used from CbmTransport (CbmTransport::SetField()). If this is used, no field map will be instantiated.

This should solve the issue for the time being. The field classes need some revision, but that must go hand in hand with FairRoot.

Actions

Also available in: Atom PDF