def RunCylinder(l,p,cylinderPositions):
    """
    Runs an mcnpx model of the cylinder of loading l, polymer p, with
    cylinder positions cylinderPositions.

    Keywords:
        l - loading of the films
        p - polymer
        cylinderPositions - the cylinder positons
    """
    # Creating input and output deck names
    posString = ''
    for pos in cylinderPositions:
        posString += '{:2.1f}-'.format(pos[0])
    posString = posString.rstrip('-')
    inp='Cyl_{}LiF_{}_{}.mcnp'.format(int(l*100),p,posString)
    name='OUTCyl_{}LiF_{}_{}.'.format(int(l*100),p,posString)
    print inp
    # Creating and running the model
    m  = CylinderRPM()
    m.createSurfaceGeo()
    m.setMaterial(l,p)
    m.createDetectorCylinder()
    m.createInputDeck(cylinderPositions,inp,name)
    m.runModel()