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

#ifndef _PPIOMEGAANGULARDISTRIBUTION_H_
#define _PPIOMEGAANGULARDISTRIBUTION_H_

#define PI_OMEGA_piNNw    1
#define PI_OMEGA_piPPpiw  2
#define PI_OMEGA_piPDw    3

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


class PPiOmegaAngularDistribution : public PAngularDistribution {
  
 public:
    PPiOmegaAngularDistribution();
    PPiOmegaAngularDistribution(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
    
    double SamplePolarAngle(double);

    void   SetVersion(int i) {
	version = i;
    };

 private:
  
    double e_cm;
    int version;
    void getPiN_wN_param();
    // parameters for pi+N->N+w
    double PiN_w_h, PiN_w_y[5], PiN_w_slope[4], PiN_w_area[4];

    ClassDef(PPiOmegaAngularDistribution, 0)  //Angular distributions in pi+p -> omega + X
};

#endif


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