Construction and tests of an in-beam PET-like demonstrator for hadrontherapy beam ballistic control