ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
montecarlo
eg
inc
TDecayChannel.h
Go to the documentation of this file.
1
// @(#)root/eg:$Id$
2
// Author: P.Murat 15/02/2001
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
//-----------------------------------------------------------------------------
13
// Feb 15 2001 P.Murat: description of the decay channel
14
// --------------------
15
// - matrix element for the decay is not defined yet
16
//-----------------------------------------------------------------------------
17
#ifndef ROOT_TDecayChannel
18
#define ROOT_TDecayChannel
19
20
#ifndef ROOT_TObject
21
#include "
TObject.h
"
22
#endif
23
#ifndef ROOT_TArrayI
24
#include "
TArrayI.h
"
25
#endif
26
27
28
class
TDecayChannel
:
public
TObject
{
29
protected
:
30
Int_t
fNumber
;
// channel number
31
Int_t
fMatrixElementCode
;
// matrix element for this decay mode
32
Double_t
fBranchingRatio
;
// branching ratio ( < 1)
33
TArrayI
fDaughters
;
// PDG codes of the daughters
34
public
:
35
// ****** constructors and destructor
36
TDecayChannel
();
37
TDecayChannel
(
Int_t
Number
,
38
Int_t
MatrixElementCode
,
39
Double_t
BranchingRatio
,
40
Int_t
NDaughters
,
41
Int_t
*
DaughterPdgCode
);
42
43
virtual
~TDecayChannel
();
44
// ****** accessors
45
46
Int_t
Number
() {
return
fNumber
; }
47
Int_t
MatrixElementCode
() {
return
fMatrixElementCode
; }
48
Int_t
NDaughters
() {
return
fDaughters.
fN
; }
49
Double_t
BranchingRatio
() {
return
fBranchingRatio
; }
50
Int_t
DaughterPdgCode
(
Int_t
i) {
return
fDaughters.
fArray
[i]; }
51
52
ClassDef
(
TDecayChannel
,1)
// Class describing a particle decay channel
53
};
54
55
#endif
TDecayChannel::NDaughters
Int_t NDaughters()
Definition:
TDecayChannel.h:48
TDecayChannel
Definition:
TDecayChannel.h:28
TDecayChannel::fDaughters
TArrayI fDaughters
Definition:
TDecayChannel.h:33
TDecayChannel::fMatrixElementCode
Int_t fMatrixElementCode
Definition:
TDecayChannel.h:31
Int_t
int Int_t
Definition:
RtypesCore.h:41
TArrayI
Array of integers (32 bits per element).
Definition:
TArrayI.h:29
TDecayChannel::fBranchingRatio
Double_t fBranchingRatio
Definition:
TDecayChannel.h:32
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TDecayChannel::DaughterPdgCode
Int_t DaughterPdgCode(Int_t i)
Definition:
TDecayChannel.h:50
TDecayChannel::MatrixElementCode
Int_t MatrixElementCode()
Definition:
TDecayChannel.h:47
TArray::fN
Int_t fN
Definition:
TArray.h:40
TDecayChannel::Number
Int_t Number()
Definition:
TDecayChannel.h:46
TDecayChannel::TDecayChannel
TDecayChannel()
Double_t
double Double_t
Definition:
RtypesCore.h:55
TArrayI::fArray
Int_t * fArray
Definition:
TArrayI.h:32
TDecayChannel::~TDecayChannel
virtual ~TDecayChannel()
Definition:
TDecayChannel.cxx:47
TDecayChannel::fNumber
Int_t fNumber
Definition:
TDecayChannel.h:30
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58
TObject.h
TDecayChannel::BranchingRatio
Double_t BranchingRatio()
Definition:
TDecayChannel.h:49
TArrayI.h