|
|
You can scale tunes found within the acc database manually using the scale utility, located at /acc/lib/scale.py.
|
|
|
|
|
|
For now, you'll have to edit the script by hand to do this. I'm working on a fancier way.
|
|
|
|
|
|
1. Go to the bottom of scale.py, you'll notice a stack of
|
|
|
|
|
|
```newtime.append(etree.Element('tune'...```
|
|
|
|
|
|
each of these defines the new tune scaling parameters for the specified sections.
|
|
|
|
|
|
2. Edit the sections you wish to scale to in the newtune.append stack. Make sure you specify the energy, energypernucleon*, chargestate and mass.
|
|
|
|
|
|
3. in your terminal,
|
|
|
|
|
|
```python scale.py ios-mws-hebt2-dragon_ref```
|
|
|
|
|
|
in the above example, the source tune file (located in /acc/isac/tune/) is ios-mws-hebt2-dragon_ref, and it will be scaled to whatever you've set the newtune.append() values.
|
|
|
|
|
|
4. the output is in output1.xml, which you can then use as a tunefile for xml2optr generation for transoptr simulations.
|
|
|
|
|
|
So, if you define an arbitrary tunefile by hand, place it in /acc/isac/tune, then you can freely scale it around manually.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*-note: define both energy/energypernucleon, as if the source tune has one and you specify the other, it won't work. That, or just make sure you specify the proper energy label that's consistent with what's in the source tunefile. Will work on this, too. |
|
|
\ No newline at end of file |