Project

General

Profile

Feature #373

Configuration management

Added by Rogers, Chris over 12 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
common_py
Target version:
Start date:
10 March 2011
Due date:
% Done:

0%

Estimated time:
Workflow:

Description

Need to figure out a way to manage configuration - the issue is that initialisation of configuration is relatively slow, but at present needs to be done once per spill. Suggestions:

  • Optimise the configuration start/stop
  • Singleton (perhaps lazy initialisation)

Configuration here is a somewhat hazy term, but includes at least geometry and fields, may include "data cards" and geant4 geometry bindings also.


Related issues

Related to MAUS - Feature #179: docbooks?ClosedRogers, Chris06 November 2010

Actions
Related to MAUS - Feature #521: MAUSRun, MAUSProcessRejectedRogers, Chris23 June 2011

Actions
#1

Updated by Tunnell, Christopher over 12 years ago

How big is the data because that changes how it's done. If we just added the fields and geometry to the datacards then had a function that you could pass the datacards JSON and it returned an interpolated field, for example, would that work? I think if it's not bigger than a few MB then JSON can work (where a few MB is a number coming from CouchDB and MongoDB people when they say after that storing binary data because can become slow... at very least not human readable).

#2

Updated by Rogers, Chris over 12 years ago

The 3d field maps are big, the 2d field maps not so much.

Humm, thinking about it can I take the issue? I'm mucking about with the simulation infrastructure and this somehow sits in there at least until the detector stuff comes on...

#3

Updated by Tunnell, Christopher over 12 years ago

I think my pseudo datacards addresses this, right?

#4

Updated by Rogers, Chris over 12 years ago

Do they build field maps?

#5

Updated by Rogers, Chris over 12 years ago

  • Assignee changed from Tunnell, Christopher to Rogers, Chris
  • Target version changed from Future MAUS release to MAUS-v0.0.1

Need this for simulation stuff... so will pull forwards.

#6

Updated by Tunnell, Christopher over 12 years ago

How big are the field maps? And do we store them as binary with some helper function in C++ with a swig interface for python?

4 bytes is a float. First question: if we run into space issues, we can ask the question of how many mantissa and exponent bits we need in the floating point representation.

Second question: can we just use a 2D map with a slowly varying error field? My naive studies of magnet measurements and wall stuff (the wall stuff repeated stuff I think you did) suggests this may be the case.

If we have to do 3D, then this:

4 bytes * 3 (15 m / cm) pi (1m / cm)^2

which samples every cm is equal to 1 GB, which means if we are smart we can do it on a single machine. But not parallelize to many cores.

Brainstorming...

#7

Updated by Tunnell, Christopher over 12 years ago

  • Target version changed from MAUS-v0.0.1 to Future MAUS release
#8

Updated by Rogers, Chris about 11 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF