Warning in <TVector3::PseudoRapidity>: transvers momentum = 0! return +/- 10e10
warnings? I have a code which saves to a TTree some TLorentzVector, which might be initialized to (x,y,z,y)=(0,0,0,0) or have a meaningful content, but this warning slows everything down. Is there any way to suppress them without suppressing all ROOT messages below “Warning”?
Warning in <TVector3::PseudoRapidity>: transvers momentum = 0! return +/- 10e10
warnings? I have a code which saves to a TTree some TLorentzVector, which might be initialized to (x,y,z,y)=(0,0,0,0) or have a meaningful content, but this warning slows everything down. Is there any way to suppress them without suppressing all ROOT messages below “Warning”?
[/quote]
Hi,
I agree the warning does not make sense for a null vector. I will remove then for that case. Also it makes more sense to return eta=0 when both pt and z are zero.
Would this be enough for you ? Otherwise you must suppress all ROOT warnings
[quote=“moneta”]Hi,
I agree the warning does not make sense for a null vector. I will remove then for that case. Also it makes more sense to return eta=0 when both pt and z are zero.
Would this be enough for you ? Otherwise you must suppress all ROOT warnings
[/quote]