Pluto v6.3.0
Loading...
Searching...
No Matches
PDalitzDistribution.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 3.7.2006
3// Revised:
4
5#ifndef _PDALITZDISTRIBUTION_H_
6#define _PDALITZDISTRIBUTION_H_
7
8#include "TF1.h"
9#include "TF2.h"
10#include "PDistribution.h"
11#include "PProjector.h"
12
13
15
16 public:
18 PDalitzDistribution(const Char_t *id, const Char_t *de);
19 PDistribution* Clone(const char *delme=NULL) const;
20
21 Bool_t Init(void);
22 Bool_t Prepare(void);
23 Bool_t Finalize(void);
24 Bool_t IsNotRejected(void);
25 Bool_t CheckAbort(void);
26
27 void SetSlopes(Double_t myslope1, Double_t myslope2) {slope1=myslope1;slope2=myslope2;};
28 Bool_t AddEquation(const char *command);
29 Bool_t AddHistogram(TH2 *histo, const char *command = "");
30 Bool_t Do(char *command) {
31 return AddEquation(command);
32 };
33 Bool_t Do(TH2 *histo, const char *command = "") {
34 return AddHistogram(histo, command);
35 };
36
37 void SetMax(Double_t mymax) {
38 max = mymax;
39 };
40
41 private:
42 PParticle *side_particle[2]; //2 additional particles
43 PParticle *primary;
44 PParticle *parent;
45
46 PParticle *vprimary, *vs1, *vs2;
47 Double_t *vf;
48
49 Double_t slope1, slope2,max;
50 PProjector *projector;
51
52 void MakeVars(void);
53
54 ClassDef(PDalitzDistribution, 0) //Dalitz plane decay slopes for a->b+c+d
55};
56
57#endif
58
59
Bool_t Prepare(void)
PDalitzDistribution(const Char_t *id, const Char_t *de)
PDistribution * Clone(const char *delme=NULL) const
void SetSlopes(Double_t myslope1, Double_t myslope2)
Bool_t Do(char *command)
Bool_t Finalize(void)
Bool_t AddEquation(const char *command)
Bool_t IsNotRejected(void)
Bool_t CheckAbort(void)
Bool_t Do(TH2 *histo, const char *command="")
Bool_t Init(void)
void SetMax(Double_t mymax)
Bool_t AddHistogram(TH2 *histo, const char *command="")
mydecay AddEquation("_f = 1; if ([rho0]->Pt() > 0.4) _f = 0.5;")
TH1F * histo