///////////////////////////////////////////////////////////////////////////
//
// 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
+// $Rev:: 184 $: revision of last commit
+// $Author:: jnystrand $: author of last commit
+// $Date:: 2014-09-12 00:59:43 +0200 #$: date of last commit
//
// Description:
// Nystrand 220710
//Now we will calculate the crosssection
twoLeptonCrossSection();
//If it is a tauon, calculate its tables
- if(inputParametersInstance.prodParticleId()==starlightConstants::TAUON) calculateTable();
+ if(inputParametersInstance.prodParticleId()==starlightConstants::TAUONDECAY) calculateTable();
}
_remainwd = remainw;
//calculate the w value
w = _Warray[ivalw]+(_Warray[ivalw+1]-_Warray[ivalw])*remainw;
-
}
}
double mdec=0.,E1=0.,E2=0.;
double pmag, anglelep[20001];
// double ytest=0.,dndtheta;
- double phi,theta(0),xtest,Ecm;
+ double phi,theta,xtest,Ecm;
double betax,betay,betaz;
double hirestheta,hirestest,hiresw; //added from JN->needed precision
- // set the mass of the daughter particles
-
mdec = getMass();
if(W < 2*mdec)
{
E2 = sqrt(mdec*mdec+px2*px2+py2*py2+pz2*pz2);
// decay tau to electrons
// note that after this routine px1, etc., refer to the electrons
- if(_GGlepInputpidtest == starlightConstants::TAUON)
+ if(_GGlepInputpidtest == starlightConstants::TAUONDECAY)
tauDecay(px1,py1,pz1,E1,px2,py2,pz2,E2);
// Lorentz transform into the lab frame
// change particle id from that of parent to that of daughters
// change taoun id into electron id, already switched particles in tau decay
- if(_GGlepInputpidtest == starlightConstants::TAUON)
+ if(_GGlepInputpidtest == starlightConstants::TAUONDECAY)
ipid = starlightConstants::ELECTRON;
// electrons remain electrons; muons remain muons
- if ((_GGlepInputpidtest == starlightConstants::ELECTRON) || (_GGlepInputpidtest == starlightConstants::MUON))
+ if ( (_GGlepInputpidtest == starlightConstants::ELECTRON) || (_GGlepInputpidtest == starlightConstants::MUON) ||
+ (_GGlepInputpidtest == starlightConstants::TAUON) )
ipid = _GGlepInputpidtest;
}
}
}
}
+ else if(!_ptCutEnabled && !_etaCutEnabled)
+ _nmbAccepted++;
}while((_ptCutEnabled || _etaCutEnabled) && !accepted);
//twoBodyDecay(ipid,pairE,comenergy,pairmomx,pairmomy,pairmomz,px1,py1,pz1,px2,py2,pz2,iFbadevent);
case starlightConstants::TAUON:
leptonmass=starlightConstants::tauMass;
break;
+ case starlightConstants::TAUONDECAY:
+ leptonmass=starlightConstants::tauMass;
+ break;
default:
cout<<"Not a recognized lepton, Gammagammaleptonpair::getmass(), mass = 0."<<endl;
}