source: trunk/WuerzburgSoft/Thomas/mphys/MParticle.h@ 1349

Last change on this file since 1349 was 1349, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MParticle
2#define MARS_MParticle
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MParticle : public MParContainer
9{
10public:
11 typedef enum { kEGamma, kEElectron, kEPositron } ParticleType_t;
12
13private:
14 const ParticleType_t fPType;
15
16protected:
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
22public:
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.