Warning, file /include/root/TPrimary.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #ifndef ROOT_TPrimary
0022 #define ROOT_TPrimary
0023
0024 #include "TNamed.h"
0025 #include "TAttLine.h"
0026 #include "TAtt3D.h"
0027 #include "X3DBuffer.h"
0028
0029 class TAttParticle;
0030
0031 class TPrimary : public TObject, public TAttLine, public TAtt3D {
0032
0033 protected:
0034 Int_t fPart;
0035 Int_t fFirstMother;
0036 Int_t fSecondMother;
0037 Int_t fGeneration;
0038 Double_t fPx;
0039 Double_t fPy;
0040 Double_t fPz;
0041 Double_t fEtot;
0042 Double_t fVx;
0043 Double_t fVy;
0044 Double_t fVz;
0045 Double_t fTime;
0046 Double_t fTimeEnd;
0047 TString fType;
0048
0049 public:
0050 TPrimary();
0051 TPrimary(Int_t part, Int_t first, Int_t second, Int_t gener,
0052 Double_t px, Double_t py, Double_t pz,
0053 Double_t etot, Double_t vx, Double_t vy, Double_t vz,
0054 Double_t time, Double_t timend, const char *type = "");
0055 ~TPrimary() override;
0056 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0057 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
0058 virtual const TAttParticle *GetParticle() const;
0059 const char *GetName() const override;
0060 const char *GetTitle() const override;
0061 virtual Int_t GetFirstMother() const { return fFirstMother; }
0062 virtual Int_t GetSecondMother() const { return fSecondMother; }
0063 virtual Int_t GetGeneration() const { return fGeneration; }
0064 virtual Double_t GetXMomentum() const { return fPx; }
0065 virtual Double_t GetYMomentum() const { return fPy; }
0066 virtual Double_t GetZMomentum() const { return fPz; }
0067 virtual Double_t GetTotalEnergy() const { return fEtot; }
0068 virtual Double_t GetXPosition() const { return fVx; }
0069 virtual Double_t GetYPosition() const { return fVy; }
0070 virtual Double_t GetZPosition() const { return fVz; }
0071 virtual Double_t GetTime() const { return fTime; }
0072 virtual Double_t GetTimeEnd() const { return fTimeEnd; }
0073 virtual const char *GetType() const { return fType.Data(); }
0074 void Paint(Option_t *option = "") override;
0075 void Print(Option_t *option = "") const override;
0076 void Sizeof3D() const override;
0077
0078 ClassDefOverride(TPrimary,1);
0079 };
0080
0081 #endif