gov fnal controls applications Store Physics Architecture Preliminary

  • Slides: 11
Download presentation
gov. fnal. controls. applications. Store. Physics Architecture: Preliminary View Elliott Mc. Crory 10 January

gov. fnal. controls. applications. Store. Physics Architecture: Preliminary View Elliott Mc. Crory 10 January 2005

Motivation § Separate calculations from data acquisition § Use more object-oriented techniques Ø “Interface”

Motivation § Separate calculations from data acquisition § Use more object-oriented techniques Ø “Interface” / Polymorphism Ø Should improve robustness and maintainability § Store “state information” cleanly Ø Interface Accelerator. State • Accelerator, Store, Case, Set § Make a real Container Ø Interface Bunch. Data § http: //mccrory. fnal. gov/doc/ 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 2

Architecture Overview (1) 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 3

Architecture Overview (1) 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 3

Architecture Overview (2) 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 4

Architecture Overview (2) 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 4

Noteworthy Classes § Accelerator ØContains Special Relativity methods ØContains a Particle ØClass Tevatron §

Noteworthy Classes § Accelerator ØContains Special Relativity methods ØContains a Particle ØClass Tevatron § Tevatron. Calculations ØRetained calculations from osdaphysics. Acceleration. State § Interfaces ØAccelerator. State ØBunch. Data 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 5

Accelerator. State Implementers § Interface Bunch. Data. . . § Bunch. Data. Hash ØFormerly

Accelerator. State Implementers § Interface Bunch. Data. . . § Bunch. Data. Hash ØFormerly Known As OSDAVariable 36 Bunch Ø 36 -bunch container that comes from an OSDA variable § Emittance. Data. Collection ØFKA: Abstract. Emittance ØA container/hash for Bunch. Data objects that are connected with osda. Variable’s 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 6

Interface Bunch. Data Implemeters § extends Accelerator. State § Abstract Bunch. Data. Base ØHelper

Interface Bunch. Data Implemeters § extends Accelerator. State § Abstract Bunch. Data. Base ØHelper class; should not be used Ø“Iterator” inner class § Bunch. Data 36 ØGeneric 36 -bunch container ØSubclass: Emittance. Data • All data must be positive and “not too big” § Bunch. Data 1, Bunch. Data. I 36, . . . 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 7

Bunch. Data Key Elements § Default contents Ø Double. Na. N • But you

Bunch. Data Key Elements § Default contents Ø Double. Na. N • But you can select a different default § Method is. Valid(int index) Ø Default behavior: check for Double. Na. N & infinite Ø Can also check against limits • E. g. , in an “emittance, ” the number has to be positive and “not too big” § Traverse with Iterator Ø Uses is. Valid() § Calculate Average or Sum automatically § Provides “trace back” on where modifications have been made § Generalized sorting of Bunch. Data objects Ø Returns inner class: implements Comparator 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 8

Iterator Example public Bunch. Data some. Method(Bunch. Data sig. Xs, Bunch. Data sig. Ts)

Iterator Example public Bunch. Data some. Method(Bunch. Data sig. Xs, Bunch. Data sig. Ts) { Class c = sig. Xs. get. Class(); Bunch. Data ret. Val = (Bunch. Data) c. new. Instance(); ret. Val. set. Date(sig. Xs. get. Date()); Iterator it = (Iterator) sig. Xs. get. Iterator(); while ( it. has. Next() ) { Pair p = (Pair) it. next(); int n. Bunch = p. index; if ( sig. Ts. is. Valid(nb) ) { double sigx = p. value; double dt = sig. Ts. index(nb); ret. Val. set. Index(nb, some. Func(sigx, dt)); } } 1/21/2022 return ret. Val; } Elliott Mc. Crory; Store. Physics Architecture 9

Random Observations § A lot of overlap among old classes • OSDAVariable 36 Bunch

Random Observations § A lot of overlap among old classes • OSDAVariable 36 Bunch • Abstract. Emittance – And Emittance • Acceleration. States Ø How to I isolate and make generic all these overlapping functionalities? • This conundrum is where I am at, now § Data acquisition • Done through osda. Variable or D 44 stuff • Woven within many classes Ø Want to segregate DA from Analysis 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 10

Plan of Attack § § Get assistance from CD? Get Te. VEmitt. Various. java

Plan of Attack § § Get assistance from CD? Get Te. VEmitt. Various. java to work Have Timofey check it with Super Table Rough Time Estimate: Ø 7 Weeks • no “overhead” or “contingency” 1/21/2022 Elliott Mc. Crory; Store. Physics Architecture 11