Filtering macro for MC including task for ITS upgrade