TLorentzVector particle(100, 0, 0, 100); // create a particle with momentum in x-y plane TVector3 boostVector(1, 1, 0); // define a boost vector pointing in the x-y plane particle.Boost(boostVector); // boost the particle's momentum in the direction of the boost vector
TLorentzVector particle1(100, 0, 0, 100); // create two particles with momentum in x-y plane TLorentzVector particle2(50, 50, 0, 70); TLorentzVector total = particle1 + particle2; // calculate total 4-momentum before boosting TVector3 boostVector(1, 1, 0); // define a boost vector pointing in the x-y plane total.Boost(-boostVector); // boost the total momentum in the opposite direction of the boost vector Double_t invMass = total.M(); // calculate invariant mass after boostingIn both examples, the TLorentzVector BoostVector is used to modify the momentum of a particle or a total momentum vector by a specified boost vector. This class is included in the ROOT framework package library.