Pluto v6.3.0
Loading...
Searching...
No Matches
PGenBod.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written:2.6.2007
3// Revised:
4
5#ifndef _PGENBOD_H_
6#define _PGENBOD_H_
7
8
9
10#include "TF1.h"
11#include "TF2.h"
12#include "PChannelModel.h"
13
14#define MAX_GENBOD_NUM 10
15
16
17class PGenBod : public PChannelModel {
18
19 public:
21 PGenBod(const Char_t *id, const Char_t *de, Int_t key);
22
23 PDistribution *Clone(const char*delme=NULL) const;
24
25 Bool_t Init(void);
26 Bool_t SampleMomentum(void);
27
29 Double_t GetWeight();
30
32
33 void Print(const Option_t* delme=NULL) const; //Debug info
34
35 private:
36
37 PParticle *parent, *primary, *daughter[MAX_GENBOD_NUM];
38 int n_daughters;
39 Double_t local_weight,weight_max;
40
41 PChannelModel *correlator;
42
43 ClassDef(PGenBod, 0) //Pluto's adaption from the original genbod
44};
45
46#endif
47
48
#define VERSION_WEIGHTING
#define MAX_GENBOD_NUM
Definition PGenBod.h:14
virtual Double_t GetWeight(Double_t *mass, Int_t *didx=NULL)
void SetVersionFlag(Int_t f)
void UseWeights(void)
Definition PGenBod.h:31
Double_t GetWeight()
Bool_t SampleMomentum(void)
PDistribution * Clone(const char *delme=NULL) const
PGenBod(const Char_t *id, const Char_t *de, Int_t key)
void Print(const Option_t *delme=NULL) const
Bool_t Init(void)