forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TVirtualMCDecayer.h
60 lines (45 loc) · 2.15 KB
/
TVirtualMCDecayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// @(#)root/eg:$Id$
// Author: Andreas Morsch 13/04/2002
/*************************************************************************
* Copyright (C) 2006, Rene Brun and Fons Rademakers. *
* Copyright (C) 1998-1999, ALICE Experiment at CERN. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualMCDecayer
#define ROOT_TVirtualMCDecayer
// Abstract base class for particle decays.
// Clients are the transport code and the primary particle generators
#include "TObject.h"
class TClonesArray;
class TLorentzVector;
class TVirtualMCDecayer : public TObject {
public:
//
TVirtualMCDecayer() {;}
virtual ~TVirtualMCDecayer(){;}
/// Initialize the decayer
virtual void Init() =0;
/// Decay a particle of type IDPART (PDG code) and momentum P.
virtual void Decay(Int_t idpart, TLorentzVector* p) =0;
/// Get the decay products into the passed PARTICLES TClonesArray of
/// TParticles
virtual Int_t ImportParticles(TClonesArray *particles) =0;
/// Force a particular decay type
virtual void SetForceDecay(Int_t type) =0;
/// Force a particle decay mode
virtual void ForceDecay() =0;
/// Get the partial branching ratio for a particle of type IPART (a
/// PDG code).
virtual Float_t GetPartialBranchingRatio(Int_t ipart) =0;
/// Get the life-time of a particle of type KF (a PDG code).
virtual Float_t GetLifetime(Int_t kf) =0;
/// Read in particle data from an ASCII file.
/// The file name must previously have been set using the member function
/// SetDecayTableFile.
virtual void ReadDecayTable() =0;
ClassDef(TVirtualMCDecayer,1) // Particle Decayer Base Class
};
#endif