1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

6
1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05

Transcript of 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

Page 1: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

1

Optics/Analysis Update

Chris Rogers

MICE Software pc 28 April 05

Page 2: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

2

Analysis• Various changes

– Mostly on level of code clean up/algorithm improvement

• Cleaned up Analysis.cc– Added Analysis.hh

• Altered File I/O– Added AnalysisPlaneManager

• File I/O causes bottleneck– Changed algorithm to read in all AnalysisPlanes in one pass through file

• I/O goes as (number of planes) rather than (number of planes)2

• Fixed SPE algorithm– Now works for 2/4/6 dimensions

• Output format solidified– Two interface classes for event-by-event output and plane-by-plane output– Mechanical angular momentum added

• Added functionality to pull beta function into Analysis.cc– Use it to generate a covariance matrix– Currently interfaces through a text file, eventually should go direct from Optics

• To do:– Change method of generating weighting for Gaussian distn

– Clean up emittance calculation algorithm to dodge rounding errors

Page 3: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

3

Optics• Several new classes (not on cvs)

– Driven by Beamline design work, so I’m doing Optics first and then interfacing it into BeamTools later

• BetaFunction– Takes a field map, takes quadrupoles, also materials– Calculates the Beta Function

• Material– Calculates the change in pz, beta, alpha, emittance from passing through

some (thin) material

• Quadrupole– Calculates kappa for a quadrupole (May be a bit buggy)

• Need to do:– (i) Need a wrapper to generate field maps/read in datacards– (ii) Need a minimiser Should we use minuit?– I don’t know if we need anything else…

• Aim is to have this finished by Frascati– Plus BeamTools work plus some Analysis toys…

Page 4: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

4

Class Diagram

BetaFunction

Material Quadrupole

OpticsFieldManager

Fields/BeamTools

Minimiser

Output

done

donedone

Page 5: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

5

e.g. beta through MICE Channel

• Beta(z)

Page 6: 1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.

6

Summary

• Lots of changes

• Mostly lots of small changes

• Optics Package in preparation, but working backwards– Need to sort out BeamTools sometime