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

#ifndef _PDELTAANGULARDISTRIBUTION_H_
#define _PDELTAANGULARDISTRIBUTION_H_

#include "TF1.h"
#include "TF2.h"
#include "PAngularDistribution.h"

class PDeltaAngularDistribution : public PAngularDistribution  {
  
 public:
    PDeltaAngularDistribution();
    PDeltaAngularDistribution(const Char_t *id, const Char_t *de);
    
    PDistribution *Clone(const char *delme=NULL) const;

    Bool_t Init(void);
    Bool_t Prepare(void);
    Bool_t IsNotRejected(void);
    
    void Print(const Option_t *delme=NULL) const;  //Debug info
    
    void SetTerm(int i) {
	use_term=i;
    };

    double SamplePolarAngle(double);

 private:
    double ds_dt(double cos_th_cm);

    void getNN_DeltaN_param();
    // parameters for N+N->N+Delta
    double lambda2, prefac, mres;

    int anisotropy;  
    
    int use_term;

    ClassDef(PDeltaAngularDistribution,0) //Angular distributions is the NN->N Delta reaction
};

#endif


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