GooFit  v2.1.3
SpinFactors.h
Go to the documentation of this file.
1 /*
2 04/05/2016 Christoph Hasse
3 DISCLAIMER:
4 
5 This code is not sufficently tested yet and still under heavy development!
6 See *.cu file for more details
7 */
8 
9 #pragma once
10 
12 
13 namespace GooFit {
14 
15 typedef fptype (*spin_function_ptr)(fptype *, unsigned int *);
16 
17 enum class SF_4Body {
33  ONE
34 };
35 
36 class SpinFactor : public GooPdf {
37  friend class DPPdf;
38 
39  private:
40  SF_4Body _SF;
41  unsigned int _P0;
42  unsigned int _P1;
43  unsigned int _P2;
44  unsigned int _P3;
45 
46  public:
47  SpinFactor(std::string name, SF_4Body SF, unsigned int P0, unsigned int P1, unsigned int P2, unsigned int P3);
48  void setConstantIndex(unsigned int idx) { host_indices[parameters + 1] = idx; }
49  bool operator==(const SpinFactor &S) const {
50  return (S.getName() == getName() and S._SF == _SF and S._P0 == _P0 and S._P1 == _P1 and S._P2 == _P2
51  and S._P3 == _P3);
52  }
53 };
54 } // namespace GooFit
double fptype
unsigned int host_indices[maxParams]
Definition: PdfBase.cpp:31
fptype(* spin_function_ptr)(fptype *, unsigned int *)
Definition: SpinFactors.h:15
bool operator==(const SpinFactor &S) const
Definition: SpinFactors.h:49
void setConstantIndex(unsigned int idx)
Definition: SpinFactors.h:48
__host__ std::string getName() const
Definition: PdfBase.h:93