The Bc meson is a doubly heavy quark–antiquark bound state and carries flavors explicitly, which provides a fruitful laboratory for testing potential models and understanding the weak decay mechanisms for heavy flavors. In view of the prospects in Bc physics at the hadronic colliders such as Tevatron and LHC, Bc physics is attracting more and more attention. It has been shown that a high luminosity e+e− collider running around the Z0-peak is also helpful for studying the properties of Bc meson and has its own advantages. For this purpose, we write down an event generator for simulating Bc meson production through e+e− annihilation according to relevant publications. We name it BEEC, in which the color-singlet S-wave and P-wave (cb̄)-quarkonium states together with the color-octet S-wave (cb̄)-quarkonium states can be generated. BEEC can also be adopted to generate the similar charmonium and bottomonium states via the semi-exclusive channels e++e−→|(QQ̄)[n]〉+Q+Q̄ with Q=b and c respectively. To increase the simulation efficiency, we simplify the amplitude as compact as possible by using the improved trace technology. BEEC is a Fortran program written in a PYTHIA-compatible format and is written in a modular structure, one may apply it to various situations or experimental environments conveniently by using the GNU C compiler make. A method to improve the efficiency of generating unweighted events within PYTHIA environment is proposed. Moreover, BEEC will generate a standard Les Houches Event data file that contains useful information of the meson and its accompanying partons, which can be conveniently imported into PYTHIA to do further hadronization and decay simulation. Program summaryProgram title: BEECCatalogue identifier: AEQC_v1_0Program summary URL:http://cpc.cs.qub.ac.uk/summaries/AEQC_v1_0.htmlProgram obtainable from: CPC Program Library, Queen’s University, Belfast, N. IrelandLicensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.htmlNo. of lines in distributed program, including test data, etc.: 114868No. of bytes in distributed program, including test data, etc.: 963939Distribution format: tar.gzProgramming language: FORTRAN 77/90.Computer: Any computer with Fortran compiler, the program is tested with GNU Fortran compiler and Intel Fortran compiler.Operating system: UNIX, Linux and Windows.RAM: About 2.0 MB.Classification: 11.2.Nature of problem:Production of charmonium, (cb̄)-quarkonium and bottomonium via e+e− annihilation channel around the Z0 peak.Solution method:The production of heavy (QQ̄′)-quarkonium (Q,Q′=b,c) via e+e− annihilation are estimated by using the improved trace technology. The (QQ̄′)-quarkonium in color-singlet 1S-wave state, 1P-wave state, and the color-octet 1S-wave states have been studied within the framework of non-relativistic QCD. The code with option can generate weighted and unweighted events conveniently, in particular, the unweighted events are generated by using an improved hit-and-miss approach so as to improve the generating efficiency.Restrictions:The generator is aimed at the production of double heavy quarkonium through e+e− annihilation at the Z0 peak. The considered processes are those that are associated with two heavy quark jets, which could provide sizable quarkonium events around the Z0 peak.Running time:It depends on which option one chooses to match PYTHIA when generating the heavy quarkonium events. Typically, for the production of the S-wave quarkonium states, if setting IDPP=2 (unweighted events), then it takes about 2 h on a 2.9 GHz AMD Athlon (tm) II×4 635 Processor machine to generate 105 events; if setting IDPP=3 (weighted events), it takes only ∼16 min to generate 105 events. For the production of the P-wave quarkonium states, the time will be almost one hundred times longer than the case of the S-wave quarkonium.