StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EvtCGCoefSingle.hh
1 //--------------------------------------------------------------------------
2 //
3 // Environment:
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
7 //
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 2000 Caltech, UCSB
10 //
11 // Module: EvtGen/EvtCGCoefSingle.hh
12 //
13 // Description:Evaluation of Clebsch-Gordon coef for a fixed j1 and j2.
14 //
15 // Modification history:
16 //
17 // RYD August 12, 2000 Module created
18 //
19 //------------------------------------------------------------------------
20 
21 #ifndef EVTCGCOEFSINGLE_HH
22 #define EVTCGCOEFSINGLE_HH
23 
24 #include <vector>
25 
26 
28 
29 public:
30 
31  EvtCGCoefSingle(int j1, int j2) {init(j1,j2);}
32  ~EvtCGCoefSingle();
33 
34 
35  double coef(int J,int M,int j1,int j2,int m1,int m2);
36 
37 private:
38 
39  void init(int j1,int j2);
40  double& cg(int J,int M, int m1, int m2);
41 
42  int _j1;
43  int _j2;
44 
45  int _Jmax;
46  int _Jmin;
47 
48  std::vector<std::vector<std::vector<double> > > _table;
49 
50 };
51 
52 #endif
53 
54