]>
Commit | Line | Data |
---|---|---|
da32329d AM |
1 | /////////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // Copyright 2010 | |
4 | // | |
5 | // This file is part of starlight. | |
6 | // | |
7 | // starlight is free software: you can redistribute it and/or modify | |
8 | // it under the terms of the GNU General Public License as published by | |
9 | // the Free Software Foundation, either version 3 of the License, or | |
10 | // (at your option) any later version. | |
11 | // | |
12 | // starlight is distributed in the hope that it will be useful, | |
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | // GNU General Public License for more details. | |
16 | // | |
17 | // You should have received a copy of the GNU General Public License | |
18 | // along with starlight. If not, see <http://www.gnu.org/licenses/>. | |
19 | // | |
20 | /////////////////////////////////////////////////////////////////////////// | |
21 | // | |
22 | // File and Version Information: | |
75ce6a3a | 23 | // $Rev:: 192 $: revision of last commit |
24 | // $Author:: jnystrand $: author of last commit | |
25 | // $Date:: 2014-12-01 20:39:25 +0100 #$: date of last commit | |
da32329d AM |
26 | // |
27 | // Description: | |
28 | // | |
29 | // | |
30 | // | |
31 | /////////////////////////////////////////////////////////////////////////// | |
32 | ||
33 | ||
34 | #ifndef GAMMAAVM_H | |
35 | #define GAMMAAVM_H | |
36 | ||
37 | ||
38 | #include <vector> | |
39 | ||
40 | #include "starlightconstants.h" | |
41 | #include "readinluminosity.h" | |
42 | #include "beambeamsystem.h" | |
43 | #include "randomgenerator.h" | |
44 | #include "eventchannel.h" | |
45 | #include "upcevent.h" | |
46 | #include "nBodyPhaseSpaceGen.h" | |
47 | ||
48 | ||
49 | class Gammaavectormeson : public eventChannel | |
50 | { | |
51 | ||
52 | public: | |
53 | Gammaavectormeson(beamBeamSystem& bbsystem); | |
54 | virtual ~Gammaavectormeson(); | |
55 | starlightConstants::event produceEvent(int &ievent); | |
56 | ||
57 | upcEvent produceEvent(); | |
58 | ||
59 | void pickwy(double &W, double &Y); | |
60 | void momenta(double W,double Y,double &E,double &px,double &py,double &pz,int &tcheck); | |
61 | double pTgamma(double E); | |
62 | void vmpt(double W,double Y,double &E,double &px,double &py, double &pz,int &tcheck); | |
63 | void twoBodyDecay(starlightConstants::particleTypeEnum &ipid,double E,double W,double px0,double py0,double pz0,double &px1,double &py1,double&pz1,double &px2,double &py2,double &pz2,int &iFbadevent); | |
64 | bool fourBodyDecay(starlightConstants::particleTypeEnum& ipid, const double E, const double W, const double* p, lorentzVector* decayMoms, int& iFbadevent); | |
65 | double getMass(); | |
66 | double getWidth(); | |
67 | virtual double getTheta(starlightConstants::particleTypeEnum ipid); | |
68 | double getSpin(); | |
69 | double _VMbslope; | |
70 | virtual double getDaughterMass(starlightConstants::particleTypeEnum &ipid); | |
71 | double pseudoRapidity(double px, double py, double pz); | |
72 | ||
73 | private: | |
74 | starlightConstants::particleTypeEnum _VMpidtest; | |
75 | int _VMnumw; | |
76 | int _VMnumy; | |
77 | int _VMinterferencemode; | |
78 | int _VMCoherence; | |
79 | int _ProductionMode; | |
75ce6a3a | 80 | int _TargetBeam; |
81 | int N1; | |
82 | int N2; | |
da32329d AM |
83 | double _VMCoherenceFactor; |
84 | double _VMgamma_em; | |
85 | double _VMNPT; | |
86 | double _VMWmax; | |
87 | double _VMWmin; | |
88 | double _VMYmax; | |
89 | double _VMYmin; | |
90 | double _mass; | |
91 | double _width; | |
92 | double _VMptmax; | |
93 | double _VMdpt; | |
94 | nBodyPhaseSpaceGen* _phaseSpaceGen; | |
95 | ||
96 | }; | |
97 | ||
98 | class Gammaanarrowvm : public Gammaavectormeson | |
99 | { | |
100 | public: | |
101 | Gammaanarrowvm(beamBeamSystem& bbsystem); | |
102 | virtual ~Gammaanarrowvm(); | |
103 | }; | |
104 | ||
105 | class Gammaawidevm : public Gammaavectormeson | |
106 | { | |
107 | public: | |
108 | Gammaawidevm(beamBeamSystem& bbsystem); | |
109 | virtual ~Gammaawidevm(); | |
110 | }; | |
111 | ||
112 | class Gammaaincoherentvm : public Gammaavectormeson | |
113 | { | |
114 | public: | |
115 | Gammaaincoherentvm(beamBeamSystem& bbsystem); | |
116 | virtual ~Gammaaincoherentvm(); | |
117 | }; | |
118 | ||
119 | #endif // GAMMAAVM_H |