StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gammaavm.h
1 //
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 //
21 //
22 // File and Version Information:
23 // $Rev:: $: revision of last commit
24 // $Author: jwebb $: author of last commit
25 // $Date: 2012/11/27 22:27:32 $: date of last commit
26 //
27 // Description:
28 //
29 //
30 //
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 
50 {
51 
52  public:
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  void vmpt(double W,double Y,double &E,double &px,double &py, double &pz,int &tcheck);
62  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);
63  bool fourBodyDecay(starlightConstants::particleTypeEnum& ipid, const double E, const double W, const double* p, lorentzVector* decayMoms, int& iFbadevent);
64  double getMass();
65  double getWidth();
66  virtual double getTheta(starlightConstants::particleTypeEnum ipid);
67  double getSpin();
68  double _VMbslope;
69  virtual double getDaughterMass(starlightConstants::particleTypeEnum &ipid);
70  double pseudoRapidity(double px, double py, double pz);
71 
72  private:
73  starlightConstants::particleTypeEnum _VMpidtest;
74  int _VMnumw;
75  int _VMnumy;
76  int _VMinterferencemode;
77  int _VMCoherence;
78  double _VMCoherenceFactor;
79  double _VMgamma_em;
80  double _VMNPT;
81  double _VMWmax;
82  double _VMWmin;
83  double _VMYmax;
84  double _VMYmin;
85  double _mass;
86  double _width;
87  double _VMptmax;
88  double _VMdpt;
89  nBodyPhaseSpaceGen* _phaseSpaceGen;
90 
91 };
92 
93 
95 {
96  public:
98  virtual ~Gammaanarrowvm();
99 };
100 
101 
103 {
104  public:
105  Gammaawidevm(inputParameters& input, beamBeamSystem& bbsystem);
106  virtual ~Gammaawidevm();
107 };
108 
109 
110 #endif // GAMMAAVM_H