MINT2
SymmLorentzMatrix.cpp
Go to the documentation of this file.
2 
3 #include <iostream>
4 #include "TLorentzVector.h"
5 
6 using namespace std;
7 
9 
11  if(0 == __gmunu) makeGmunu();
12  return * __gmunu;
13 }
14 
15 
17  __gmunu = new SymmLorentzMatrix();
18  __gmunu->X().SetXYZT(-1,0,0,0);
19  __gmunu->Y().SetXYZT(0,-1,0,0);
20  __gmunu->Z().SetXYZT(0,0,-1,0);
21  __gmunu->T().SetXYZT(0,0,0, 1);
22 }
23 
24 /*
25 void SymmLorentzMatrix::makeGmunu(){
26  __gmunu = new SymmLorentzMatrix();
27  __gmunu->X().SetXYZT(1,0,0,0);
28  __gmunu->Y().SetXYZT(0,1,0,0);
29  __gmunu->Z().SetXYZT(0,0,1,0);
30  __gmunu->T().SetXYZT(0,0,0,1);
31 }
32 */
33 
35  SymmLorentzMatrix returnVal(rhs);
36  returnVal *= lhs;
37  return returnVal;
38 }
40  SymmLorentzMatrix returnVal(rhs);
41  returnVal /= lhs;
42  return returnVal;
43 }
SymmLorentzMatrix operator/(double lhs, const SymmLorentzMatrix &rhs)
static SymmLorentzMatrix * __gmunu
SymmLorentzMatrix operator *(double lhs, const SymmLorentzMatrix &rhs)
static void makeGmunu()
static const SymmLorentzMatrix & gmunu()