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

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