Hi @pcanal thank you, unfortunately t I wrote:
TString heneoss3leadstring = TString::Format("(Calo_EnDep[%d] + Calo_EnDep[%d] + Calo_EnDep[%d] + Calo_EnDep[%d] + Calo_EnDep[%d] + Calo_EnDep[%d] + Calo_EnDep[%d] )* ( (cut3sub && cut3sub2) ? 1 : 0 )>> htemp(16000., 0., 16000.)", b,c,c2,d,e,f,g);
t->Draw(heneoss3leadstring, cut && cut3sub && cut3sub2 && cuteneb && cut4sub && cut5sub && cut6sub && cut7sub);
but I get error