Pluto v6.3.0
Loading...
Searching...
No Matches
PBreitWigner.h
Go to the documentation of this file.
1// Author: Kagarlis
2// Written: 23.5.2007
3// Revised: I. Froehlich (from PData)
4
5#ifndef _PBREITWIGNER_H_
6#define _PBREITWIGNER_H_
7
8#include "TF1.h"
9#include "TF2.h"
10#include "PHadronModel.h"
11
12class PBreitWigner : public PHadronModel {
13
14 public:
16 PBreitWigner(const Char_t *id, const Char_t *de, Int_t key);
17 PDistribution* Clone(const char *delme=NULL) const;
18
20 virtual Double_t GetWeight(Double_t *mass, Int_t *didx=NULL);
22 Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL);
23
25 //overwrites the partial model from the data base
26 width_model = m;
27 };
28
29 protected:
30
31 Double_t mr; // Resonance pole mass
33
34 ClassDef(PBreitWigner,0) // Breit Wigner with mass-dependent width
35};
36
37#endif
38
39
Double_t mr
virtual Double_t GetWeight(Double_t *mass, Int_t *didx=NULL)
Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL)
PBreitWigner(const Char_t *id, const Char_t *de, Int_t key)
PChannelModel * width_model
PDistribution * Clone(const char *delme=NULL) const
void SetWidthModel(PChannelModel *m)
virtual Bool_t SampleMass(void)
virtual Double_t GetWeight(void)
Double_t mass