///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// starlight is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with starlight. If not, see .
//
///////////////////////////////////////////////////////////////////////////
//
// File and Version Information:
// $Rev:: 164 $: revision of last commit
// $Author:: odjuvsla $: author of last commit
// $Date:: 2013-10-06 16:18:08 +0200 #$: date of last commit
//
// Description:
//
//
//
///////////////////////////////////////////////////////////////////////////
#ifndef GAMMAGAMMALEPTONPAIR_H
#define GAMMAGAMMALEPTONPAIR_H
#include
#include "starlightconstants.h"
#include "readinluminosity.h"
#include "starlightlimits.h"
#include "eventchannel.h"
class Gammagammaleptonpair : public eventChannel
{
public:
Gammagammaleptonpair(beamBeamSystem& bbsystem);
~Gammagammaleptonpair();
void twoLeptonCrossSection();
void calculateTable();
starlightConstants::event produceEvent(int &ievent);
upcEvent produceEvent();
private:
double _sigmax[starlightLimits::MAXWBINS][starlightLimits::MAXYBINS];//=new double[500][500]; //decreased from 1000*1000; too big! causes fault!
double _sigmaSum;
double _sigfint[starlightLimits::MAXWBINS];
double _sigofw[starlightLimits::MAXWBINS];
double _signormw;
double _wdelta; //Added 7/26/07 for passing sigmadelta to pickw
double _remainwd;// "
int _ivalwd; // "
double _dgammade[1000];
double _tautolangle[100];
double twoMuonCrossSection(double w);
void pickw(double &w);
void picky(double &y);
void pairMomentum(double w,double y,double &E,double &px,double &py,double&pz);
double pp_1(double E);
double pp_2(double E);
void twoBodyDecay(starlightConstants::particleTypeEnum &ipid,double E,double W,double px0,double py0,double pz0,double &px1,double &py1,double&pz1,double &px2,double &py2,/*double &py2,*/double &pz2,int &iFbadevent);
double thetalep(double W,double theta);
void tauDecay(double &px1,double &py1,double &pz1,double &E1,double &px2,double &py2,double &pz2,double &E2);
double getMass();
double getWidth();
double getSpin();
starlightConstants::particleTypeEnum _GGlepInputpidtest;
int _GGlepInputnumw;
int _GGlepInputnumy;
double _GGlepInputGamma_em;
};
#endif // GAMMAGAMMALEPTONPAIR_H