CERN script in C++