Pluto v6.3.0
Loading...
Searching...
No Matches
PInclusiveModel.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 27.9.2006
3// Revised:
4
5#ifndef _PINCLUSIVEMODEL_H_
6#define _PINCLUSIVEMODEL_H_
7
8#define INCLUSIVE_MAX_DAUGHTERS 3
9
10#include "TF1.h"
11#include "TF2.h"
12#include "PChannelModel.h"
13
15
16 public:
17
19 PInclusiveModel(const Char_t *id, const Char_t *de, Int_t key);
20 PDistribution* Clone(const char*delme=NULL) const;
21
22 Bool_t Init(void);
24
26 Double_t GetWeight(void);
27
28 Bool_t SampleMass(void);
29 int GetDepth(int i=0);
30
31 void SetSampleFunction(TF1 *f) {sample=f;};
32 void SetSampleFunction(Double_t f) {sample_d=f;};
33
34 private:
35 PParticle *parent, *daughters[INCLUSIVE_MAX_DAUGHTERS], *primary;
36 PChannelModel *daughter_models[INCLUSIVE_MAX_DAUGHTERS];
37 int daughter_pos;
38 TF1 *sample;
39 Double_t sample_d;
40 Double_t weight;
41
42 void Setup();
43
44 ClassDef(PInclusiveModel, 0) //Model for mass sampling for X in a->b+c+X
45};
46
47
48
49#endif
#define INCLUSIVE_MAX_DAUGHTERS
TFile * f
Definition analyze_g12C.C:8
virtual Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL)
virtual Double_t GetWeight(Double_t *mass, Int_t *didx=NULL)
PDistribution * Clone(const char *delme=NULL) const
void SetSampleFunction(TF1 *f)
int GetDepth(int i=0)
Bool_t Init(void)
PInclusiveModel(const Char_t *id, const Char_t *de, Int_t key)
Double_t GetWeight(void)
void SetSampleFunction(Double_t f)
Bool_t SampleMass(void)