Line | |
---|
1 | #ifndef MARS_MParticle
|
---|
2 | #define MARS_MParticle
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MParticle : public MParContainer
|
---|
9 | {
|
---|
10 | public:
|
---|
11 | typedef enum { kEGamma, kEElectron, kEPositron } ParticleType_t;
|
---|
12 |
|
---|
13 | private:
|
---|
14 | const ParticleType_t fPType;
|
---|
15 |
|
---|
16 | protected:
|
---|
17 | Double_t fEnergy; // [GeV] Energy
|
---|
18 | Double_t fBeta; // [1] beta
|
---|
19 | Double_t fAngle; // [rad] Angle
|
---|
20 | Double_t fZ; // [1] Red shift
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MParticle(ParticleType_t t, const char *name=NULL, const char *title=NULL);
|
---|
24 | // ~MParticle();
|
---|
25 |
|
---|
26 | // void Fill(const MParContainer *inp);
|
---|
27 |
|
---|
28 | // void Draw(Option_t *opt=NULL);
|
---|
29 |
|
---|
30 | void SetEnergy(Double_t e) { fEnergy = e; }
|
---|
31 | void SetAngle(Double_t a) { fAngle = a; }
|
---|
32 | void SetBeta(Double_t b) { fBeta = b; }
|
---|
33 | void SetZ(Double_t z) { fZ = z; }
|
---|
34 |
|
---|
35 | Double_t GetEnergy() const { return fEnergy; }
|
---|
36 | Double_t GetAngle() const { return fAngle; }
|
---|
37 | Double_t GetZ() const { return fZ; }
|
---|
38 |
|
---|
39 | ClassDef(MParticle, 1) // Container which holds hostograms for the Hillas parameters
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.