Skip to content

Commit

Permalink
Merge pull request #86 from shishlo/master
Browse files Browse the repository at this point in the history
Bunch Ring Wrapper nodes added to ENTRANCE and EXIT instead of BODY
  • Loading branch information
azukov authored Jan 3, 2024
2 parents b9e84c3 + d9af1cc commit dcceb7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions py/orbit/teapot/teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ def _addChildren(self):
"""
TEAPOT_Lattice.initialize(self)
for node in self.getNodes():
bunchwrapper = BunchWrapTEAPOT("Bunch Wrap")
bunchwrapper.getParamsDict()["ring_length"] = self.getLength()
node.addChildNode(bunchwrapper, AccNode.BODY)
length = node.getLength()
if(length > 0.):
bunchwrapper = BunchWrapTEAPOT(node.getName()+":Bunch_Wrap:Exit")
bunchwrapper.getParamsDict()["ring_length"] = self.getLength()
node.addChildNode(bunchwrapper, AccNode.EXIT)
#---- adding turn counter node at the end of lattice
turn_counter = TurnCounterTEAPOT()
self.getNodes().append(turn_counter)
Expand Down

0 comments on commit dcceb7a

Please sign in to comment.