]>
Commit | Line | Data |
---|---|---|
0ca57c2f | 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) 1998 Caltech, UCSB | |
10 | // | |
11 | // Module: EvtGen/EvtGenericDalitz.hh | |
12 | // | |
13 | // Description: Model to describe a generic dalitz decay | |
14 | // | |
15 | // Modification history: | |
16 | // | |
17 | // DCC 16 December, 2011 Module created | |
18 | // | |
19 | //------------------------------------------------------------------------ | |
20 | ||
21 | #ifndef EVTDALITZDECAYINFO_HH | |
22 | #define EVTDALITZDECAYINFO_HH | |
23 | ||
24 | #include "EvtGenBase/EvtComplex.hh" | |
25 | #include "EvtGenBase/EvtId.hh" | |
26 | #include "EvtGenBase/EvtDalitzReso.hh" | |
27 | #include <vector> | |
28 | ||
29 | class EvtDalitzDecayInfo { | |
30 | public: | |
31 | ||
32 | EvtDalitzDecayInfo(EvtId d1, EvtId d2, EvtId d3) | |
33 | : _d1(d1), _d2(d2), _d3(d3), _probMax(0.) {} | |
34 | ~EvtDalitzDecayInfo() {} | |
35 | ||
36 | void addResonance(EvtComplex amp, EvtDalitzReso res) {_resonances.push_back(std::pair<EvtComplex, EvtDalitzReso>(amp,res));} | |
37 | void addResonance(std::pair<EvtComplex,EvtDalitzReso> res) {_resonances.push_back(res);} | |
38 | void setProbMax(double probMax) {_probMax = probMax;} | |
39 | ||
40 | const std::vector< std::pair<EvtComplex, EvtDalitzReso> >& getResonances() const {return _resonances;} | |
41 | double getProbMax() const {return _probMax;} | |
42 | ||
43 | inline const EvtId& daughter1() const {return _d1;} | |
44 | inline const EvtId& daughter2() const {return _d2;} | |
45 | inline const EvtId& daughter3() const {return _d3;} | |
46 | ||
47 | private: | |
48 | ||
49 | EvtId _d1, _d2, _d3; | |
50 | std::vector<std::pair<EvtComplex, EvtDalitzReso> > _resonances; | |
51 | double _probMax; | |
52 | ||
53 | }; | |
54 | ||
55 | #endif |