Pluto v6.3.0
Loading...
Searching...
No Matches
PMassSampling.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 5.6.2007
3// Revised:
4
5#ifndef _PMASSAMPLING_H_
6#define _PMASSAMPLING_H_
7
8
9
10#include "TF1.h"
11#include "TF2.h"
12#include "PHadronModel.h"
13
14
16
17 public:
19 PMassSampling(const Char_t *id, const Char_t *de, Int_t key);
20 PDistribution* Clone(const char *delme=NULL) const;
21
23 Double_t GetWeight(Double_t *mass, Int_t *didx=NULL);
24
26 Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL);
27
28 void SetSamplingFunction(TF1 * f) {shape1=f;};
29
30 private:
31
32 TF1 *shape1; //mass sampling shape as a function of resonance mass (=x)
33
34 ClassDef(PMassSampling, 0) // General purpose mass sampling model
35};
36
37#endif
38
39
TFile * f
Definition analyze_g12C.C:8
virtual Bool_t SampleMass(void)
virtual Double_t GetWeight(void)
Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL)
PMassSampling(const Char_t *id, const Char_t *de, Int_t key)
PDistribution * Clone(const char *delme=NULL) const
void SetSamplingFunction(TF1 *f)
Double_t GetWeight(Double_t *mass, Int_t *didx=NULL)
Double_t mass