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

Last change on this file since 1375 was 1364, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1008 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
12 MPhoton(Double_t e=0, Double_t z=0)
13 : MParticle(MParticle::kEGamma)
14 {
15 fEnergy = e;
16 fZ = z;
17 }
18
19 void operator=(MParticle &p) { MParticle::operator=(p); }
20
21 // ----------------------------------------------------------------
22
23 static Double_t Sigma_gg(Double_t *x, Double_t *k=NULL);
24 static Double_t Int1(Double_t *x, Double_t *k=NULL);
25 static Double_t Int2(Double_t *x, Double_t *k);
26 static Double_t InteractionLength(Double_t *x, Double_t *k=NULL);
27 static Double_t GetInteractionLength(Double_t energy, Double_t z=0);
28
29 Double_t GetInteractionLength() const;
30
31 // ----------------------------------------------------------------
32
33 static void DrawInteractionLength(Double_t z, Double_t from=1e4, Double_t to=1e11);
34 void DrawInteractionLength() const;
35
36 ClassDef(MPhoton, 1)
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.