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

#ifndef _PETAPIPIDILEPTONMASS_H_
#define _PETAPIPIDILEPTONMASS_H_

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

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

    Bool_t Init(void);

    using PDistribution::GetWeight;
    using PDistribution::SampleMass;
    Bool_t SampleMass(Double_t *mass, Int_t *didx=NULL);
    Double_t GetWeight(Double_t *mass, Int_t *didx=NULL);

    Double_t GetMassWeight(Double_t mass) const;

    Double_t Eval(Double_t x, Double_t y, Double_t z, Double_t t) const;

 protected:
  
    PParticle *parent, *pip, *pim, *ep, *em;
    Double_t  m_pi, mass_ee, mass_e;

    PChannelModel *vmd_formfactor_model;     //form factor object
  
    ClassDef(PEtaPiPiDileptonMass, 0)  // Decay eta -> pi+ pi- dilepton (mass sampling)
};

#endif


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