Maria ntuple code