Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualMCDecayer.h
Go to the documentation of this file.
1// @(#)root/eg:$Id$
2// Author: Andreas Morsch 13/04/2002
3
4/*************************************************************************
5 * Copyright (C) 2006, Rene Brun and Fons Rademakers. *
6 * Copyright (C) 1998-1999, ALICE Experiment at CERN. *
7 * All rights reserved. *
8 * *
9 * For the licensing terms see $ROOTSYS/LICENSE. *
10 * For the list of contributors see $ROOTSYS/README/CREDITS. *
11 *************************************************************************/
12
13#ifndef ROOT_TVirtualMCDecayer
14#define ROOT_TVirtualMCDecayer
15
16// Abstract base class for particle decays.
17// Clients are the transport code and the primary particle generators
18
19#include "TObject.h"
20class TClonesArray;
21class TLorentzVector;
22
23class TVirtualMCDecayer : public TObject {
24public:
25//
27 ~TVirtualMCDecayer() override{;}
28
29 /// Initialize the decayer
30 virtual void Init() =0;
31
32 /// Decay a particle of type IDPART (PDG code) and momentum P.
33 virtual void Decay(Int_t idpart, TLorentzVector* p) =0;
34
35 /// Get the decay products into the passed PARTICLES TClonesArray of
36 /// TParticles
37 virtual Int_t ImportParticles(TClonesArray *particles) =0;
38
39 /// Force a particular decay type
40 virtual void SetForceDecay(Int_t type) =0;
41
42 /// Force a particle decay mode
43 virtual void ForceDecay() =0;
44
45 /// Get the partial branching ratio for a particle of type IPART (a
46 /// PDG code).
48
49 /// Get the life-time of a particle of type KF (a PDG code).
50 virtual Float_t GetLifetime(Int_t kf) =0;
51
52 /// Read in particle data from an ASCII file.
53 /// The file name must previously have been set using the member function
54 /// SetDecayTableFile.
55 virtual void ReadDecayTable() =0;
56
57 ClassDefOverride(TVirtualMCDecayer,1) // Particle Decayer Base Class
58};
59
60#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
An array of clone (identical) objects.
Mother of all ROOT objects.
Definition TObject.h:41
Abstract base class for particle decays.
virtual Float_t GetPartialBranchingRatio(Int_t ipart)=0
Get the partial branching ratio for a particle of type IPART (a PDG code).
virtual void Init()=0
Initialize the decayer.
virtual Int_t ImportParticles(TClonesArray *particles)=0
Get the decay products into the passed PARTICLES TClonesArray of TParticles.
virtual void Decay(Int_t idpart, TLorentzVector *p)=0
Decay a particle of type IDPART (PDG code) and momentum P.
virtual void ReadDecayTable()=0
Read in particle data from an ASCII file.
~TVirtualMCDecayer() override
virtual void SetForceDecay(Int_t type)=0
Force a particular decay type.
virtual Float_t GetLifetime(Int_t kf)=0
Get the life-time of a particle of type KF (a PDG code).
virtual void ForceDecay()=0
Force a particle decay mode.