// Author: I. Froehlich
// Written: 22.10.2010

#ifndef _PFIXEDPRODUCTION_H_
#define _PFIXEDPRODUCTION_H_

#include "PChannelModel.h"
#include "PDynamicData.h"
#include "PKinematics.h"

class PFixedProduction : public PChannelModel  {
  
 public:
    PFixedProduction();
    PFixedProduction(const Char_t *id, const Char_t *de, Int_t key);
    PDistribution *Clone(const char*delme=NULL) const;

    Bool_t   Init(void);
    Bool_t   SampleMass(void);
    Bool_t   SampleMass(Double_t *mass, Int_t *didx=NULL);

    Bool_t   SampleMomentum(void);

    int      GetDepth(int i=0);

 protected:

    PParticle *parent, *daughter;
    int    parent_id,   d_id;          //PIDs
    double parent_mass, dmass;         //Static Masses

    ClassDef(PFixedProduction, 0)  // Production of a+b -> X
};

#endif


 PFixedProduction.h:1
 PFixedProduction.h:2
 PFixedProduction.h:3
 PFixedProduction.h:4
 PFixedProduction.h:5
 PFixedProduction.h:6
 PFixedProduction.h:7
 PFixedProduction.h:8
 PFixedProduction.h:9
 PFixedProduction.h:10
 PFixedProduction.h:11
 PFixedProduction.h:12
 PFixedProduction.h:13
 PFixedProduction.h:14
 PFixedProduction.h:15
 PFixedProduction.h:16
 PFixedProduction.h:17
 PFixedProduction.h:18
 PFixedProduction.h:19
 PFixedProduction.h:20
 PFixedProduction.h:21
 PFixedProduction.h:22
 PFixedProduction.h:23
 PFixedProduction.h:24
 PFixedProduction.h:25
 PFixedProduction.h:26
 PFixedProduction.h:27
 PFixedProduction.h:28
 PFixedProduction.h:29
 PFixedProduction.h:30
 PFixedProduction.h:31
 PFixedProduction.h:32
 PFixedProduction.h:33
 PFixedProduction.h:34
 PFixedProduction.h:35
 PFixedProduction.h:36
 PFixedProduction.h:37