// Author: I. Froehlich
// Written: 27.9.2006
// Revised: 

#ifndef _PSCATTERDISTRIBUTION_H_
#define _PSCATTERDISTRIBUTION_H_



#include "TF1.h"
#include "TF2.h"
#include "PDistribution.h"


class PScatterDistribution : public PDistribution  {
  
 public:

    PScatterDistribution();
    PScatterDistribution(const Char_t *id, const Char_t *de);
    PDistribution *Clone(const char *delme=NULL) const;

    Bool_t Init(void);

    Bool_t IsNotRejected(void);

    void SetAngleFunction(TF1 *f) {
	angles1 = f;
    };
    void SetAngleFunction(TF2 *f) {
	angles2 = f;
    };


 private:
  
    TF1       *angles1;
    TF2       *angles2;
    PParticle *primary;
    PParticle *parent;
    PParticle *beam;
    PParticle *target;
    PParticle *mass_reference;

    ClassDef(PScatterDistribution, 0)
};

#endif


 PScatterDistribution.h:1
 PScatterDistribution.h:2
 PScatterDistribution.h:3
 PScatterDistribution.h:4
 PScatterDistribution.h:5
 PScatterDistribution.h:6
 PScatterDistribution.h:7
 PScatterDistribution.h:8
 PScatterDistribution.h:9
 PScatterDistribution.h:10
 PScatterDistribution.h:11
 PScatterDistribution.h:12
 PScatterDistribution.h:13
 PScatterDistribution.h:14
 PScatterDistribution.h:15
 PScatterDistribution.h:16
 PScatterDistribution.h:17
 PScatterDistribution.h:18
 PScatterDistribution.h:19
 PScatterDistribution.h:20
 PScatterDistribution.h:21
 PScatterDistribution.h:22
 PScatterDistribution.h:23
 PScatterDistribution.h:24
 PScatterDistribution.h:25
 PScatterDistribution.h:26
 PScatterDistribution.h:27
 PScatterDistribution.h:28
 PScatterDistribution.h:29
 PScatterDistribution.h:30
 PScatterDistribution.h:31
 PScatterDistribution.h:32
 PScatterDistribution.h:33
 PScatterDistribution.h:34
 PScatterDistribution.h:35
 PScatterDistribution.h:36
 PScatterDistribution.h:37
 PScatterDistribution.h:38
 PScatterDistribution.h:39
 PScatterDistribution.h:40
 PScatterDistribution.h:41
 PScatterDistribution.h:42
 PScatterDistribution.h:43
 PScatterDistribution.h:44
 PScatterDistribution.h:45
 PScatterDistribution.h:46
 PScatterDistribution.h:47
 PScatterDistribution.h:48
 PScatterDistribution.h:49
 PScatterDistribution.h:50