source: trunk/WuerzburgSoft/Thomas/mphys/MPhoton.h@ 1356

Last change on this file since 1356 was 1356, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1021 bytes
Line 
1#ifndef MARS_MPhoton
2#define MARS_MPhoton
3
4#ifndef MARS_MParticle
5#include "MParticle.h"
6#endif
7
8class MPhoton : public MParticle
9{
10public:
11 MPhoton(Double_t e=0, Double_t z=0) : MParticle(MParticle::kEGamma)
12 {
13 fEnergy = e;
14 fZ = z;
15 }
16
17 void operator=(MParticle &p) { MParticle::operator=(p); }
18
19 // ----------------------------------------------------------------
20
21 static Double_t Planck(Double_t *x, Double_t *k=NULL);
22 static Double_t Sigma_gg(Double_t *x, Double_t *k=NULL);
23 static Double_t Int1(Double_t *x, Double_t *k=NULL);
24 static Double_t Int2(Double_t *x, Double_t *k);
25 static Double_t InteractionLength(Double_t *x, Double_t *k=NULL);
26 static Double_t GetInteractionLength(Double_t energy, Double_t z=0);
27
28 Double_t GetInteractionLength() const;
29
30 // ----------------------------------------------------------------
31
32 static void DrawInteractionLength(Double_t z);
33 void DrawInteractionLength() const;
34
35 ClassDef(MPhoton, 1)
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.