(more) avoiding explicit constant proxy declarations
- Add python right-hand operator overloads. This should make it possible to write e.g
MT = op.sqrt( 2. * met.pt * lepton.p4.Pt() * (1. - op.cos(op.Phi_mpi_pi(met.phi - lepton.p4.Phi()))) )
instead ofMT = op.sqrt( op.c_float(2.) * met.pt * lepton.p4.Pt() * (op.c_float(1.) - op.cos(op.Phi_mpi_pi(met.phi - lepton.p4.Phi()))) )
. - Make sure
OR
andAND
handle boolean constants correctly.
Edited by Sebastien Wertz