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

#ifndef _PETAPIPIDILEPTON_H_
#define _PETAPIPIDILEPTON_H_

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

class PEtaPiPiDilepton : public PChannelModel  {
  
 public:
    PEtaPiPiDilepton();
    PEtaPiPiDilepton(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 PChannelModel::GetWeight;

    Double_t GetWeight(Double_t *mass, Int_t *didx=NULL);
    Double_t GetWeight(void);

    using PDistribution::SampleMass;
    using PChannelModel::SampleMass;
    Bool_t SampleMass(void);


    Bool_t IsNotRejected(void);

 protected:
  
    PParticle *parent, *pip, *pim, *ep, *em;
    Double_t  m_pi, mass_ee, mass_e, mass_eta;
    Double_t weight_max;               //Maximum
  
    ClassDef(PEtaPiPiDilepton, 0)  // pipi correlation in eta -> pi+ pi- dilepton
};

#endif


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