MINT2
ZTspin1.h
Go to the documentation of this file.
1 #ifndef ZEMACH_SPIN_1_HH
2 #define ZEMACH_SPIN_1_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:13 GMT
5 
6 #include "TLorentzVector.h"
7 //#include <iostream>
8 
9 class ZTspin1 : public TLorentzVector{
10  public:
11  // in decay D -> AB: q = p(A) - p(B), p = p(A) + p(B)
12  ZTspin1(const TLorentzVector& q, const TLorentzVector& p, double mR)
13  : TLorentzVector(q - q.Dot(p)*p * (1./(mR*mR))){}
14 
15  double Contract(const TLorentzVector& rhs) const{
16  return this->Dot(rhs);
17  }
18 };
19 
20 #endif
21 //
double Contract(const TLorentzVector &rhs) const
Definition: ZTspin1.h:15
Definition: ZTspin1.h:9
ZTspin1(const TLorentzVector &q, const TLorentzVector &p, double mR)
Definition: ZTspin1.h:12