1 ///////////////////////////////////////////////////////////////////////////
5 // This file is part of starlight.
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.
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.
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/>.
20 ///////////////////////////////////////////////////////////////////////////
22 // File and Version Information:
23 // $Rev:: $: revision of last commit
24 // $Author:: $: author of last commit
25 // $Date:: $: date of last commit
31 ///////////////////////////////////////////////////////////////////////////
40 #include "starlightconstants.h"
41 #include "readinluminosity.h"
42 #include "beambeamsystem.h"
43 #include "randomgenerator.h"
44 #include "eventchannel.h"
46 #include "nBodyPhaseSpaceGen.h"
49 class Gammaavectormeson : public eventChannel
53 Gammaavectormeson(beamBeamSystem& bbsystem);
54 virtual ~Gammaavectormeson();
55 starlightConstants::event produceEvent(int &ievent);
57 upcEvent produceEvent();
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);
67 virtual double getTheta(starlightConstants::particleTypeEnum ipid);
70 virtual double getDaughterMass(starlightConstants::particleTypeEnum &ipid);
71 double pseudoRapidity(double px, double py, double pz);
74 starlightConstants::particleTypeEnum _VMpidtest;
77 int _VMinterferencemode;
80 double _VMCoherenceFactor;
91 nBodyPhaseSpaceGen* _phaseSpaceGen;
95 class Gammaanarrowvm : public Gammaavectormeson
98 Gammaanarrowvm(beamBeamSystem& bbsystem);
99 virtual ~Gammaanarrowvm();
102 class Gammaawidevm : public Gammaavectormeson
105 Gammaawidevm(beamBeamSystem& bbsystem);
106 virtual ~Gammaawidevm();
109 class Gammaaincoherentvm : public Gammaavectormeson
112 Gammaaincoherentvm(beamBeamSystem& bbsystem);
113 virtual ~Gammaaincoherentvm();