Pluto v6.3.0
Loading...
Searching...
No Matches
PScatterCrossSection.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 14.8.2012
3// Revised:
4
5#ifndef _PSCATTERCROSSSECTION_H_
6#define _PSCATTERCROSSSECTION_H_
7
8
9#include "TF1.h"
10#include "TF2.h"
12#include "PProjector.h"
13#include "PF2.h"
14
15
17
18 public:
20 PScatterCrossSection(const Char_t *id, const Char_t *de);
21 PDistribution *Clone(const char *delme=NULL) const;
22
23 Bool_t Init(void);
24 Bool_t Prepare(void);
25
26 Bool_t AddEquation(char *command);
27 Bool_t AddHistogram(TH2 *histo, char *command);
28 Bool_t AddHistogram(TH1 *histo, char *command);
29
30 using TF1::SetRange;
31 void SetRange(Double_t mymin, Double_t mymax) {
32 TF1::SetRange(qmin, qmax);
33 qmax = mymax;
34 qmin = mymin;
35 };
36
37 void SetNpx(Int_t my_npx);
38 void SetNpy(Int_t my_npy);
39
40 PF2 *GetFunction(void) {return pf2;};
41
42 protected:
43
44 double SamplePolarAngle(double);
45
46 Double_t qmin,qmax;
47 Double_t costheta, q;
48
50
52 Double_t *vf;
53 Bool_t MakeVars(void);
54
55 Int_t npx, npy;
56
57 ClassDef(PScatterCrossSection, 0) //Cross section model for the reaction a+b -> c+d
58
59};
60
61#endif
62
63
Definition PF2.h:12
void SetNpx(Int_t my_npx)
void SetRange(Double_t mymin, Double_t mymax)
void SetNpy(Int_t my_npy)
Bool_t AddHistogram(TH2 *histo, char *command)
PDistribution * Clone(const char *delme=NULL) const
mydecay AddEquation("_f = 1; if ([rho0]->Pt() > 0.4) _f = 0.5;")
TH1F * histo