00001 {
00002
00003
00004
00005 TLorentzVector v1(11.6,5.0,6.8,53.3);
00006 TLorentzVector v2(13.1,2.5,3.6,55.7);
00007 TLorentzVector v11,v22;
00008 TVector3 boost_v1,boost_v2;
00009
00010 boost_v1 = -v1.BoostVector();
00011 boost_v1.Print();
00012 v22 = v2;
00013 v22.Boost(boost_v1);
00014 cout<<"The three vector of v2 in v1 rest frame"<<endl;
00015 v22.Vect().Print();
00016 cout<<"The energy of this four-vector v2: "<<v22.T()<<endl;
00017
00018
00019
00020 boost_v2 = -v2.BoostVector();
00021 boost_v1 = -v1.BoostVector();
00022 v11 = v1;
00023 v11.Boost(boost_v2);
00024 cout<<"The three vector of v1 in v2 rest frame"<<endl;
00025 v11.Vect().Print();
00026 cout<<"The energy of this four-vector v1: "<<v11.T()<<endl;
00027
00028
00029
00030 }