1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtCPUtil.hh
13 // Description:Class to hold CP physics utilities.
15 // Modification history:
17 // RYD March 24, 1998 Module created
19 //------------------------------------------------------------------------
24 #include "EvtGenBase/EvtComplex.hh"
25 #include "EvtGenBase/EvtPatches.hh"
33 static void fractB0CP(EvtComplex Af, EvtComplex Abarf,
34 double deltam, double beta, double &fract);
36 static void fractB0nonCP(EvtComplex Af, EvtComplex Abarf,
37 EvtComplex Afbar, EvtComplex Abarfbar,
38 double deltam, double beta, int flip,
41 static void OtherB(EvtParticle *p, double &t, EvtId &otherb);
43 static void OtherB(EvtParticle *p, double &t, EvtId &otherb, double probB0);
45 //id is the produced particle
46 //t returns the lifetime of the particle
47 //and mix will be 1 if it mixed otherwise 0
48 static void incoherentMix(const EvtId id, double &t, int &mix);