MINT2
GSSpinFactor.cpp
Go to the documentation of this file.
1 
2 #include "Mint/GSSpinFactor.h"
4 
5 #include <iostream>
6 
7 using namespace std;
8 
10  bool dbThis=false;
11  if(dbThis) cout << "GSSpinFactor called" << endl;
12 
13  if(_nonResonant){
14  return nonResVal();
15  }
16 
17  if(! ( fsPS[0] && fsPS[1] && fsPS[2])) parseTree(evt.eventPattern());
18 
19  if(0 == R){
20  cout << "ERROR in GSSpinFactor::getVal(): 0 == R"
21  << endl;
22  throw "such things shouldn't happen";
23  }
24 
25  double m2AC = (p(0, evt) + p(1, evt)).M2();
26  double m2BC = (p(0, evt) + p(2, evt)).M2();
27 
28  return (m2AC - m2BC)/(GeV*GeV);
29 
30 }
31 //
virtual double getVal(IDalitzEvent &evt)
Definition: GSSpinFactor.cpp:9
virtual const DalitzEventPattern & eventPattern() const =0
static const double GeV