Design and application of the reconstruction software for the BaBar calorimeter

Philip David Strother

Imperial College, November 1998

A thesis submitted for the degree of Doctor of Philosophy of the University of London, and Diploma of Imperial College 2

Abstract

+ The BaBar high energy physics experiment will be in operation at the PEP-II asymmetric e e− collider in Spring 1999. The primary purpose of the experiment is the investigation of CP violation in the neutral system. The electromagnetic calorimeter forms a central part of the experiment and new techniques are employed in data acquisition and reconstruction software to maximise the capability of this device. The use of a matched digital filter in the feature extraction in the front end electronics is presented. The performance of the filter in the presence of the expected high levels of soft photon background from the machine is evaluated. The high luminosity of the PEP-II machine and the demands on the precision of the calorimeter require reliable software that allows for increased physics capability. BaBar has selected C++ as its primary programming language and object oriented analysis and design as its coding paradigm. The application of this technology to the reconstruction software for the calorimeter is presented. The design of the systems for clustering, cluster division, track matching, particle identification and global calibration is discussed with emphasis on the provisions in the design for increased physics capability as levels of understanding of the detector increase.

The CP violating channel Bo J/Ko has been studied in the two lepton, two π0 final state. → s The contribution of this channel to the evaluation of the angle sin 2β of the unitarity triangle is compared to that from the charged pion final state. An error of 0.34 on this quantity is expected after 1 year of running at design luminosity. Contents

1 CP violation in the B meson system 15 1.1 Introduction ...... 15 1.2 General phenomenology of mixing of neutral mesons ...... 15

1.3 CP violation and mixing in the K meson system ...... 17 1.3.1 Direct CP violation ...... 20 1.4 CP violation and mixing in the B meson system ...... 22 1.4.1 Phenomenology ...... 22

1.4.2 CP violation in B decays ...... 22 1.4.2.1 Direct CP violation ...... 22 1.4.2.2 CP violation in mixing ...... 23 1.4.2.3 CP violation in the interference between decays . . . . . 24

1.4.3 Measuring aξCP (t)...... 25 1.5 Quark mixing and the CKM matrix ...... 26

1.5.1 The CKM description of CP violation ...... 26 1.6 CKM Status and Current Constraints ...... 32 1.7 Chapter Summary ...... 33

2 The BaBar experiment and the PEP-II storage ring 35 2.1 Introduction ...... 35 2.2 The PEP-II storage ring ...... 35 2.2.1 Introduction ...... 35 2.2.2 The Main Storage Ring ...... 36 2.2.3 The Injection System ...... 38 4

2.2.4 The Interaction Region ...... 39 2.2.5 Machine backgrounds ...... 41 2.2.5.1 Synchrotron radiation background ...... 41 2.2.5.2 Lost beam particle backgrounds ...... 41

2.3 The BABAR experiment ...... 42 2.3.1 The Silicon Vertex Tracker ...... 44 2.3.1.1 Overview ...... 44 2.3.1.2 Detector Layout ...... 44 2.3.1.3 Electronics and readout ...... 46 2.3.2 The Drift Chamber ...... 46 2.3.2.1 Mechanical design ...... 46 2.3.2.2 Electronics ...... 48 2.3.3 The DIRC ...... 49 2.3.3.1 Mechanical construction ...... 49 2.3.3.2 Readout ...... 50 2.3.4 The Electromagnetic Calorimeter ...... 51 2.3.5 The Instrumented Flux Return ...... 52 2.3.5.1 RPC construction and readout ...... 54 2.3.6 Trigger ...... 55 2.4 Chapter Summary ...... 56

3 Software for the Electromagnetic Calorimeter 57 3.1 Introduction ...... 57 3.2 C++ and object oriented design ...... 57 3.2.1 The Concept of an Object ...... 57 3.2.2 Abstraction ...... 58 3.2.3 Encapsulation ...... 59 3.2.4 Object Oriented Design ...... 59 5

3.2.5 Relevance to physics capability ...... 59

3.2.6 The BABAR Framework Software ...... 60 3.3 Simulation software ...... 61 3.3.1 The calorimeter electronics simulation ...... 61 3.3.2 Digital filtering ...... 64 3.3.2.1 Theory of the Matched Filter ...... 64 3.3.2.2 Digital filter performance ...... 67 3.4 Reconstruction software ...... 68 3.4.1 Basic reconstruction ...... 68 3.4.1.1 Clustering ...... 68 3.4.1.2 Bump splitting ...... 69 3.4.2 Track–cluster matching ...... 70 3.4.3 Particle identification ...... 71 3.4.4 Offline calibration ...... 74 3.4.4.1 Retrieval ...... 75 3.4.4.2 Storage ...... 76 3.4.4.3 Offline calibration: summary ...... 77 3.5 Chapter summary ...... 77

4 Neutral particles in the electromagnetic calorimeter 79 4.1 Introduction ...... 79 4.2 Reconstruction parameters ...... 81 4.2.1 Clustering parameters ...... 81 4.2.1.1 Digi and seed thresholds ...... 82 4.2.1.2 Seed and cluster thresholds ...... 84 4.2.2 The CLEO clustering algorithm ...... 84 4.2.3 Cluster splitting parameters ...... 88

4.3 π0 and photon identification ...... 90 6

4.3.1 Discriminating variables ...... 90 4.4 Chapter Summary ...... 95

5 Study of the channel B0 J/ψ K0 l+l π0π0 97 → S → − 5.1 Introduction ...... 97

5.2 Reconstructing the J/ψ ...... 98 5.2.1 Tracking requirements ...... 98

5.2.2 J/ψ reconstruction ...... 99

0 5.3 Reconstructing the KS ...... 100 5.4 Reconstructing the B0 ...... 104 5.5 Backgrounds ...... 105

0 5.5.1 Combinatorial backgrounds and J/ψ KL ...... 105 5.5.2 Physics backgrounds ...... 106 5.5.3 Machine backgrounds ...... 107

5.6 CP reach ...... 108 5.6.1 Measuring t ...... 108 5.6.2 Determination of the b quark flavour ...... 110 5.6.3 CP reach ...... 111 5.7 Chapter Summary ...... 111

6 Conclusions 113

A The Wigner–Weisskopf formalism 121

B Class diagrams 125 List of Figures

1-1 B meson decay rates as a function of lifetime for a CP asymmetry of Im(λ) = 0.75. If no CP violation were observed, the two decay rates would follow the exponential (solid line)...... 25 1-2 Unitarity triangles in the complex plane. Figure (a) depicts the triangle relating to possible CP violation in B physics. Figure (b) is the same triangle in the Wolfenstein parameterisation...... 29

1-3 Figure (a) depicts a typical process for B0 mixing. Figure (b) is a typical decay, 0 B J/ψ K0 ...... 30 → S 1-4 Allowed regions in the ρ, η plane from current measurements. The dotted lines represent the boundaries of the allowed regions by allowing all parameters to vary. The contours, centred with a dot, represent the 95% confidence limits region using

a given set of theoretical parameters. Limits from mBs are not included. . . . . 33

2-1 Synchrotron radiation deposits from the low energy beam (top) and high energy beam (bottom). The Q1 quadrupole, being off axis w..t the low energy beam, and the B1 separation dipoles are the principle sources of synchrotron radiation at the IP. The darker shading indicates regions of higher photon density...... 40

2-2 The BABAR detector. The 9.0 GeV beam travels left to right, the 3.1 GeV beam right to left. The interaction point is marked by the crosshairs. . . 43

2-3 The BABAR silicon vertex tracker. Cross sectional view in the r/φ plane. The beam pipe is shown in the centre...... 43

2-4 The BABAR silicon vertex tracker. Cross sectional view in the z plane. The inter- action point is marked, indicating the asymmetry of PEP-II. The structures to the right and left are the beam separating fixed dipole magnets...... 45

2-5 The BABAR drift chamber (z projection). The chamber is offset in z by 367mm to account for the asymmetry. The dimensions shown are in mm...... 47 2-6 Section of the cell layout for the drift chamber. Axial layers are labeled A, stereo layers U and V...... 48

2-7 The BABAR DIRC concept. Cerenkˇ ov radiation is internally reflected in the quartz bar, and emitted at the end of the bar preserving the Cerenkˇ ov angle...... 50 8

2-8 Cross sectional view of the electromagnetic calorimeter showing angular cover- age. The electron beam has the higher energy of the two...... 52 2-9 End view of the barrel section of the instrumented flux return, showing integration with the solenoid. The inner resistive plate chamber (iRPC) is not shown. . . . . 53

2-10 Cross section of the layout of a typical RPC used in BABAR’s instrumented flux return. 54

3-1 CR-RC-RC (CR-RC2) shaping circuit for the photodiode readout. The differen- tiation (CR) stage has a time constant of 0.8 µs and the integration (RC) stages have identical time constants of 0.25 µs. The input to this circuit is the amplified photodiode output. The output from this circuit is fed to the ADC circuit. . . . . 62 3-2 Energy deposit in the calorimeter at times ten nominal machine background, summed over all crystals...... 64 3-3 Individual crystal noise as function of machine background. The upper points represent a classical analogue readout with a shaping time of 2 µs such as that used in CLEO. The lower points represent a digitally filtered readout using a short shaping time. It can be seen that the noise from soft photon machine background dominates over electronics noise (known to be about 150keV)...... 66

3-4 Resolution for 320 MeV photons at times ten nominal background with classical feature extraction (left) and matched digital filter feature extraction (right). . . . . 67

4-1 Fraction of π0s whose daughter photons are sufficiently close to form only one cluster as a function of energy...... 80

4-2 Photon energy spectrum for generic B decays at BABAR (upper plot) and from the most energetic decay, B π0π0(lower plot). The sturcture in the lower plot is purely statistical. . . . .→...... 81

4-3 Efficiency for B0 reconstruction (solid line) and π0 reconstruction (dashed line) versus minimum detectable photon energy...... 82 4-4 Number of observed clusters above 20 MeV for ten times nominal machine back- ground, for sparsification cuts of 5 MeV (top) and 10 MeV (bottom), and various seed crystal and digi energy cuts. The points have been separated horizontally for clarity...... 83 4-5 Energy spectrum of clusters from ten times nominal background, using standard clustering parameters...... 83 4-6 Number of observed clusters at times ten nominal background...... 84 9

4-7 Comparison of the CLEO clustering algorithm’s resolution to the projected per- formance for the BABAR algorithm. Each set of four points corresponds to (left to right): CLEO algorithm taking all crystals (denoted ), CLEO algorithm with the number of crystals limited according to the algorithm4 described in the text (2), BaBar algorithm taking all crystals (3), and BaBar algorithm with a limited number of crystals (O). The top plot assumes no machine background, the middle nominal levels and the lower plot ten times nominal levels. 40 MeV photons have too poor a resolution at ten times nominal background to be described well by the function given in the text and are omitted from the above plot...... 86 4-8 Comparison of the CLEO clustering algorithm’s efficiency to the projected per- formance for the BABAR algorithm. Each set of four points corresponds to (left to right): CLEO algorithm taking all crystals ( ), CLEO algorithm with a limited number of crystals (2), BaBar algorithm taking4 all crystals (3), and BaBar al- gorithm with a limited number of crystals (O). The top plot assumes no machine background, the middle nominal levels and the lower plot ten times nominal levels. At nominal background, the 40 MeV photon resolution is such that too many machine background photons would be included in the efficiency calculation as described. The resolution (and therefore efficiency) cannot be determined at ten times nominal background for 40 MeV photons...... 87

4-9 Comparison of the CLEO and BABAR clustering algorithms’ mass resolution for 500 MeVπ0s...... 88 4-10 The comparison of the highest energy crystal in a shower to the highest of its neighbours for medium energy (320 MeV) photons. (Left–bottom) The ratio of the highest energy crystal to the highest of its neighbours. (Top) The inverse of this quantity. (Right) The number of photon clusters whose highest energy crystal/highest energy neighbour crystal ratio exceeds a given value...... 89 4-11 The comparison of the highest energy crystal in a shower to the average of its neighbours for medium energy (320 MeV) photons. (Left–bottom) The ratio of the highest energy crystal to the average of its neighbours. (Top) The inverse of this quantity. (Right) The number of photon clusters whose highest energy crystal/average energy of neighbours ratio exceeds a given value...... 90

4-12 Number of maxima observed in one cluster for 320 MeV photons as a function of the ratio between the candidate maximum and (left) the highest energy neighbour- ing crystal and (right) the average energy of neighbouring crystals...... 91 4-13 Lateral profile of photon clusters. The horizontal axis shows the lateral distance from the centroid in cm at the nominal shower maximum, and the vertical axis the fraction of the cluster energy contained outside that distance. Clockwise from top left are the profiles for 160 MeV, 320 MeV, 2.56 GeVand 1.28 GeVphotons. . . . 92 10

4-14 Distribution of the second moment of clusters in a 3 GeV π0 sample. A clear sep- aration of those π0s forming one cluster from those creating two (single photon) clusters is demonstrated by using the Monte-Carlo truth information...... 93

4-15 Average squared deviation (in GeV2) of the observed energy of crystals in a cluster from the electromagnetic prediction for 1.28 GeV photons (top) and 4 GeV π0s (bottom). Different, but not well separated, distributions are observed. . . . . 93 4-16 Second moment distributions for 2 GeV π0s. The fit function is described in the text. The peak position varies as 1/E2...... 94 ∼ 4-17 Efficiency of identification against probability of mis-identification for photons at various confidence levels for the observed energy deposit to be compatible with the photon hypothesis...... 94

4-18 Efficiency of identification against probability of mis-identification for π 0s at var- ious confidence levels for the observed energy deposit to be compatible with the π0 hypothesis...... 95

5-1 Tree (a) and penguin (b) diagrams for B0 J/ψ K0...... 97 → S 5-2 J/ψ efficiency as a function of upper and lower mass cut. The effects of accep- tance are excluded. In each case the other mass cut is held constant at the nominal value described in the text...... 99

5-3 J/ψ mass resolution. The fit is to the Novosibirsk function (see chapter 4) to account for the lower mass caused by electron bremsstrahlung. The width is 12.1 MeV...... 100 5-4 Mass and centre of mass momentum distribution for signal J/ψ candidates from 2000 simulated events...... 101

5-5 Fake J/ψ mass and momentum distributions from (left) continuum and (right) generic B meson decays. 10000 events were simulated...... 101 5-6 Two cluster invariant mass distribution for all cluster pairs (left) and for signal cluster pairs (right)...... 102

0 5-7 (Left) Distribution of the KS decay points as determined by the formation of the 0 0 0 best π mass for a cluster pair. The top plot is for π s coming from signal KS s, 0 the lower from fake KS candidates. The spikes at -2 and +5 in the lower plot are caused by those candidates for which a best mass could not be determined between these times. (Right) Distribution of the absolute difference between the two decay 0 points determined for each candidate. Again the top plot is for signal KS , and the 0 lower one for fake KS candidates. The small spike at 7.0 is due to those candidates whose best decay points were at the extremes of the range described above. . . . 103 11

0 5-8 Distribution of centre of mass momentum of (left) all KS candidates and (right) signal candidates...... 104

0 5-9 KS mass distribution calculated at the decay vertex for non-signal (left) and signal (right) combinations...... 105

5-10 Origin of the photons in fake B candidates in 2000 signal events. The number of 0 photons that originated from the signal KS and subsequently used to construct the 0 B candidate is shown. Those candidates with 4 such photons have the correct KS 0 but a fake J/ψ . Candidates with 0 such photons have the KS constructed entirely from photons from the other B meson decay in the event. It can be seen that the 0 large majority of events require at least one photon from the signal KS in order to fake a B candidate...... 106 5-11 The z resolution of the J/ψ vertex. The fit is to two Gaussians, the upper having a width of 45 µm, the lower 320 µm. The ratio of areas is 3.5:1 ...... 108 5-12 J/ψ vertex resolution in the y direction. A two Gaussian fit is used and the resulting widths are 45 and 221 µm with area ratios 20:3. This is considerably larger than the vertical beam size...... 109

5-13 Tag side vertex resolution. A two Gaussian fit yields widths of 108 µm and 316 µm, with an area ratio 1.1:1.0...... 110

B-1 The simplest representation of a class...... 125 B-2 Class relationships ...... 126 B-3 Class diagram for the particle ID framework for the calorimeter. It is discussed more fully in chapter 3...... 127 B-4 Class diagram for the offline, global calibration system. This diagram refers to the retrieval side of the system. It is discussed more fully in chapter 3...... 128 B-5 Class diagram for the offline, global calibration system. This diagram refers to the storage side of the system. It is discussed more fully in chapter 3...... 129 12 List of Tables

2-1 Parameters of the PEP-II asymmetric storage ring...... 36 2-2 Occupancy rates and radiation doses from lost beam particle backgrounds in the four innermost sections of the BABAR experiment...... 42 2-3 Description of the layers of the silicon vertex tracker...... 44 2-4 Description of the wafers constituting the silicon vertex tracker...... 45 2-5 Description of the drift chamber superlayers...... 47 2-6 Properties of crystal CsI(Tl) scintillator...... 51

2-7 Trigger efficiency for various physics channels to be studied with the BABAR detector. 55

0 + 0 0 5-1 Relative reconstruction efficiency for the channel B J/ψ KS l l−π π as a function of cluster energy cut at nominal machine background→ →...... 107 14

Acknowledgments

Firstly I would like to thank Professor Peter Dornan for inviting me to work in Imperial’s High Energy Physics group and my supervisor Jordan Nash for all his help and assistance, and for proving that it is possible for an American to understand the laws of cricket.

The BABAR experiment has been an exciting environment in which to work and I have had the pleasure of collaboration with a wide variety of people. I have been particularly fortunate in the colleagues with whom I have been working most closely. Bob Jacobsen, Ed Frank, Steve Gowdy, Helmut Marsiske, Paul Harrison and Pete Sanders have all unfailingly provided great insight, gentle correction and perhaps without them knowing, not a little inspiration, all delivered with a sense of humour. It has been a pleasure and an honour to work with them. Pete, Paul Dauncey, Alex Howard and Roly Martin get a huge thank you for reading, correcting and offering advice on this thesis. It’s been an “interesting” time. All remaining errors are therefore the fault of London Underground, who apologise for any inconvenience. High energy physics has been described (“condemned”??) as an international beer drinking conspiracy. I am indebted to those people (Dave, Pete, Roly, Steve, Colin) who introduced me to this concept and for their sterling efforts in perpetuation of this rumour. May the pumps never run dry. To all my friends at IC and SLAC that are too many to mention individually, thanks for some great moments. Particular mention though must be made of the NATO ASI crew (151o proof rum: “Don’t do that!”) and to my year colleagues here at IC—Jan, Jo and Suzy—for many a beer and coffee break, and for achieving the near impossible in making the terminal room a brighter place to work. Five years ago in Paris I caught the HEP bug. For this I blame and thank wholeheartedly Patrick Roudeau of LAL. First teachers do not come much better. Finally there are those without whose support the last three years would not have been possible. To those at St. Helen’s church, in particular Chris, Neil & Rachel and Nick & Rachael, for all the support, good food and patient advice—thanks: 2 Th 3:16. To my flatmates: Al, Rob and Lucy—thanks for the good company, for putting up with the eccentric hours and proving that it is possible for 3 final year PhD students and someone holding down two jobs to live together without bloodshed. To my Mum, sister Karen, Dad and recently added family: Sue, Andrew, Martin and Zoe—thank¨ you for all your unending support and encouragement: there are not really the words to express my gratitude. Finally to Giulia, for showing me that not only is there a life outside HEP but it is a beautiful one inhabited by the likes of Neruda, Chagall, Galeano, Haring, and not forgetting the occasional monster. Thank you for sharing it with me. 1

CP violation in the B meson system

1.1 Introduction

CP violation is one of the least well measured aspects of the . To date it has only been observed in one system, that of the neutral K mesons[1]. It is, however, one of the necessary conditions needed to explain the baryon asymmetry of the universe[2] and is an important aspect of the CKM picture of quark mixing[3] which first demonstrated the necessity of at least three quark generations in order that the observed CP violation be accommodated. In this chapter a description of generic neutral meson mixing will be given, which will then be applied to the K meson system in order to illustrate how mixing can give rise to CP violation, and also to show the other possible sources of this phenomenon. These will be explained in greater depth in section 1.4, where the B meson system is considered. Finally an introduction to the concept of quark mixing and the CKM picture of CP violation will be given.

1.2 General phenomenology of mixing of neutral mesons

One possible cause of the phenomenon of CP violation in the K meson and B meson system is the mixing of particle-antiparticle states that occurs in each system. The formalism is the same in both cases and so it is described here for a generic neutral meson P 0, which is capable of mixing with its antiparticle P 0. A full discussion may be found in [4]. For a generic state, , consisting of a combination of the two P states, one may write (t) = P 0(p, t) P 0( p, t) + C P 0( p, t) P 0(p, t) . (1.1) | i ⊗ | − i | − i ⊗ | i where C denotes the charge conjugation phase. The time evolution of the individual states P 0 and and P 0 is governed by the Wigner-Weisskopf result from elementary quantum mechanics, derived in appendix A. This states that for a generic state (t) decaying into stable states β | i | i from unstable states α | i (t) = φ (t) α + c (t) β , (1.2) | i α | i β | i α X Xβ the time dependence of φα(t) is given by

( i t) φα(t) = e − M φα(0). (1.3) c 16 CP VIOLATION IN THE B MESON SYSTEM

The mass matrix is a 2 2 matrix which has its origins in the Hamiltonian that governs the transition betweenMthe two states.× In general it is not Hermitian, but may be broken down into two Hermitian parts: c 1 M = ( + †) 2 M M = i( †). Mc− Mc 0 In general the flavour eigenstates P and P 0 willcnot bec eigenvectors of the mass matrix. Instead, the mass eigenstates will be linear combinations of these. In the case where the charge conjugation phase C = 1, the mass eigenstates may be written: − P 0 = p P 0 + q P 0 (1.4) | 1 i | i | i P 0 = p P 0 q P 0 (1.5) | 2 i | i − | i where P 0 = m i Γ1 P 0 = M P 0 M| 1 i 1 − 2 | 1 i 1| 1 i (1.6) 0 Γ2 0 0 P2 = m2 i 2  P2 = M2 P2 . Mc| i − | i | i and p, q are complex numbers normalised such that p 2 + q 2 = 1. The time dependence of the c | | | | flavour eigenstate P 0 is then given by

0 1 iM1t 0 iM2t 0 P (t) = (e− P + e− P ) | i 2p | 1 i | 2 i

1 iM1t 0 0 iM2t 0 0 = e− (p P + q P ) + e− (p P q P ) 2p | i | i | i − | i h i 0 q 0 = f+(t) P + f (t) P , (1.7) | i p − | i where 1 t t f (t) = exp im + t exp + im exp im ± 2 − 2 − 2 2 ± − − 2 2           (1.8) where m = m m and = . Using CPT invariance, which gives that = , 1 − 2 1 − 2 M11 M22 and the Hermitian property of the matrices M and , the eigenvalue equations for p and q give the results: c c 1 2 (m)2 ()2 = 4 M 2 | 12| , (1.9) − 4 | 12| − 4   (m)() = 4Re(M ∗ ), (1.10) − 12 12 q m i ∆Γ = − 2 . (1.11) p −2 M i Γ12 12 − 2 The specialisations of these formulae to the K meson system are discussed in the next section, while those relating to the B meson system are discussed in section 1.4. 1.3 CP violation and mixing in the K meson system 17

1.3 CP violation and mixing in the K meson system

The discovery of CP violation in the kaon system by Christiansen et al. in 1964 [1] was the first ev- idence for CP not being an exact symmetry. This section gives an overview of the phenomenology of the system, using the formalism described above. For more complete reviews, see for example Wolfenstein[5, 6], Mannelli [7] or Kleinknecht [8]. 0 K0 and K are strangeness eigenstates with eigenvalues +1 and -1 respectively. In section 1.2 a relative charge conjugation phase of C = 1 was assumed. Here a more general phase is assumed, − and eigenstates are given by K 0 and K0 such that | Li | S i 0 0 0 r K + s K KL = | i | i, (1.12) | i r 2 + s 2 | | | | 0 0 0 ppK + q K KS = | i | i (1.13) | i p 2 + q 2 | | | | where p, q, r and s are complex numbers. Theptwo states are referred to as short (S) and long (L), reflecting that the observed states have markedly different lifetimes [9]:

10 8 τ 0 = 8.927 0.009 10− s; τ 0 = 5.17 0.04 10− s. (1.14) KS ± × KL ± × If is represented by M m i m i = 11 − 2 11 12 − 2 12 , (1.15) c i i M m21 21 m22 22 ! − 2 − 2 then the eigenvalue equationscfor the mass matrix are

i i r m + s m = rM , 11 − 2 11 12 − 2 12 L     i i r m + s m = sM , 21 − 2 21 22 − 2 22 L     i i p m + q m = pM , 11 − 2 11 12 − 2 12 S     i i p m + q m = qM , 21 − 2 21 22 − 2 22 S     where

K0 = M K0 , M| S i S| S i 0 0 KL = ML KL . M|c i | i This gives the relation c r 2 m i /2 p 2 = 12 − 12 = , (1.16) s m i /2 q 21 21 −

18 CP VIOLATION IN THE B MESON SYSTEM i.e. p r iφ = e− (1.17) q s where φ is an arbitrary phase constant, while r p M = , (1.18) s − q m i 21 − 2 21 where M = ML MS. In order to determine the phase φ, it is convenient to move to a basis defined by the CP eigenstates−

1 0 K0 = ( K0 + K ), (1.19) | 1 i √2 | i | i 1 0 K0 = ( K0 K ). (1.20) | 2 i √2 | i − | i In this basis

0 1 0 0 KS = K1 + εS K2 , | i 1 + ε 2 | i | i | S | iφ  0 p e 0 0 K = K + εL K . (1.21) L 2 2 1 | i 1 + εL | i | i | |  CP violation will occur unless K 0 Kp0 = 0 and so to fix the phase one demands h S | Li K0 K0 > 0. (1.22) h S | Li This gives the requirements i i m = m (1.23) 12 − 2 12 6 21 − 2 21 and iφ e (εL + εS∗ ) > 0. (1.24) By invoking CPT invariance, it is possible to write

εS = εL = ε, (1.25) however in order to resolve the phase φ, it is necessary to study the following semi-leptonic decays of the kaons:

0 + (K l−νlπ ) (1.26) 0 → + (K l ν π−) (1.27) → l 0 + (K l−ν π ) (1.28) → l 0 + (K l ν π−) (1.29) → l 1.3 CP violation and mixing in the K meson system 19

The S = Q rule dictates that the decay widths 1.26 and 1.29 are zero, whilst CPT invariance implies that the widths 1.27 and 1.28 are equal. If one defines the quantities A and B

0 + A = (KL l νlπ−), 0 →0 2 0 + = K KL (K l νlπ−) h | i2 → 1 + ε 0 + = | | (K l ν π−), 2(1 + ε 2) → l 0 | | + B = (K l−ν π ) L → l 0 0 2 0 + = K KL (K l−νlπ ) h | i2 → 1 ε 0 + = | − | (K l−ν π ), 2(1 + ε 2) → l | | then A B δ = − A + B 2(ε + ε) = ∗ , 2(1 + ε 2) | | 2Re(ε) = . (1.30) 1 + ε 2 | | The quantity δ is measured to be greater than zero by experiment[9], so that the physical states may be represented by

0 1 0 0 KS = (1 + ε) K + (1 ε) K (1.31) | i 2(1 +  2) | i − | i | |   0 1 0 0 KL = p (1 + ε) K (1 ε) K . (1.32) | i 2(1 +  2) | i − − | i | |   From this one can write p p q ε = − p + q (p/q)2 1 = − (p/q)2 + 2p/q + 1

= M12 − M21 . (1.33) 12 M + 21 M c− c M If the CP violating terms are small, then onec may approximatec 12 + 21 M, so finally M M ' − ε can be written as m m i/2( ) ε = 21 − 12 − 21 − 12c. c (1.34) 2(m m ) i( ) L − S − L − S 20 CP VIOLATION IN THE B MESON SYSTEM

1.3.1 Direct CP violation

In addition to mixing, CP violation can occur because of differing decay amplitudes to the same final state. The K0 2π decay is an important example of this, given that the final state can have → isospin values of I = 0 or I = 2. If is the appropriate transition matrix, then the experimental observables are T b + 0 π π− KL η+ = h |T | i, (1.35) − π+π K0 h −|T | S i 0 0 b 0 π π KL η00 = h |T | i. (1.36) 0 0 b 0 π π KS h |Tb| i These observables may be cast in terms of the variables b ππ, I = 0 KL ε0 = h |T | i, (1.37) ππ, I = 0 KS h |Tb| i 1 ππ, I = 2 KL ε2 = h b |T | i, (1.38) √2 ππ, I = 0 KS h |Tb| i ππ, I = 2 KS ω = h |T | b i. (1.39) ππ, I = 0 KS h |Tb| i Using the appropriate Clebsch-Gordan coefficients, one finds that the states representing I = 0 and I = 2 are given by b

1 + 1 0 0 1 + ππ, I = 0 = π−π π π + π π− h | √3h | − √3h | √3h |

1 + 2 0 0 1 + ππ, I = 2 = π−π π π + π π− , h | √6h | − r3h | √6h | such that

√2 ππ, I = 0 KL + ππ, I = 2 KL η+ = h |T | i h |T | i − √2 ππ, I = 0 KS + ππ, I = 2 KS ε h+ ε |Tb| i h |Tb| i = 0 2 , 1 + ω/√2 b b

ππ, I = 2 KL ππ, I = 0 KL /√2 η00 = h |T | i − h |T | i ππ, I = 2 K ππ, I = 0 K /√2 h |T | Si − h |T | S i ε 2ε b b = 0 − 2 . 1 √2ω b b − One may use the fact that the I = 2 decay channels are heavily suppressed with respect to the I = 0 channels. This gives ω 1 and | |  η+ = ε0 + ε2 (1.40) − η = ε 2ε . (1.41) 00 0 − 2 1.3 CP violation and mixing in the K meson system 21

One can then define a phase convention such that

ππ, I = 0 K0 = A eiδ0 , h |T | i 0 0 iδ0 ππ, I = 0 K = A∗e , h |Tb| i 0 ππ, I = 2 K0 = A eiδ2 , h |T | i 2 b 0 iδ2 ππ, I = 2 K = A2∗e , so then h |Tb| i b 0 0 0 0 0 0 ππ, I = 0 K K KL + ππ, I = 0 K K KL ε0 = h |T | ih | i h |T | ih | i 0 0 0 0 0 0 ππ, I = 0 K K KS + ππ, I = 0 K K KS εh(A0 + A∗|)Tb+| A0ih A|∗ i h |Tb| ih | i = 0 − 0 ε(A A ) + A + A 0 − 0∗ b 0 0∗ b εRe(A ) + iIm(A ) = 0 0 iεIm(A0) + Re(A0) ε + i Im(A0) Re(A0) = 1 + iε Im(A0) , Re(A0) 0 0 0 0 0 0 1 ππ, I = 2 K K KL + ππ, I = 2 K K KL ε2 = h |T | ih | i h |T | 0ih 0| i √2 ππ, I = 0 K0 K0 K0 + ππ, I = 0 K K K0 h |Tb| ih | S i h |Tb| ih | S i 1 i(δ2 δ0) A2 A2∗ + ε(A2 + A2∗) = e − b− b √2 A0 A∗ + ε(A0 + A∗) − 0 0 1 i(δ2 δ0) εRe(A2) + iIm(A2) = e − √2 Re(A0) + iεIm(A0) = ε0. In any phase convention where Im(A ) Re(A ), one then has the approximations 0  0 iφ+ η+ = η+ e − − | −| ε + ε0, (1.42) ' η = η eiφ00 00 | 00| ε 2ε0. (1.43) ' − The importance of the definition of ε and ε0 is that the CP violation which occurs due to differing decay amplitudes, so called direct CP violation, is isolated into ε0, while the CP violation due to mixing is parameterised by ε. In this way, if η+ is not equal to η00, then CP is violated in the decay amplitudes as well as the mixing. The experimental− values for the above quantities are:

3 η00 = 2.259 0.023 10− | | ± o × φ00 = 43.3 1.3 ± 3 η+ = 2.269 0.023 10− − | | ± o × φ+ = 44.3 1.3 − ± ε 2.30 0.65 10 3 NA31 0 = ± × − (1.44) 4 ε ( 7.4 6.0 10− E731 ± × 22 CP VIOLATION IN THE B MESON SYSTEM from the CERN[10] and Fermilab[11] experiments. The current experimental situation regarding ε0 does not yet provide unambiguous evidence for direct CP violation.

1.4 CP violation and mixing in the B meson system

1.4.1 Phenomenology

The phenomenology described above can be employed in a similar fashion in the B meson system. There is no measurement of the lifetime difference, but since it must arise from decay channels 0 0 3 common to both the B and the B and these are generally (10− ) or less, the difference is 2 O thought to be (10− ). In any event, Bd Bd has been shown to be a safe assumption[12]. The experimentalO result[9]  m Bd = 0.73 0.05 Bd ± then gives us mBd Bd . This is reflected in the naming of the mass eigenstates, now termed 0 0  BL and BH , for light and heavy:

0 0 0 BL = p B + q B (1.45) | i | i | 0i B0 = p B0 q B . (1.46) | H i | i − | i

The smallness of Bd also allows us to make simplifications in the formulae describing the time development of the physical states, so that equation 1.8 becomes:

m t f (t) = exp im + cos Bd (1.47) + − 2 2      m t f (t) = i exp im + sin Bd (1.48) − − 2 2      The mixing of pure states in the B meson system was first observed unambiguously by the ARGUS collaboration [13].

1.4.2 CP violation in B decays

1.4.2.1 Direct CP violation

Direct CP violation is a manifestation of differing decay amplitudes for a particle/anti-particle pair. In the Standard Model Lagrangian, the fields are formulated in such a way that their CP 1.4 CP violation and mixing in the B meson system 23 transformations are given by[14]

Scalar Pseudoscalar Vector ∂µ

φ A Wµ± Timelike +W ± Timelike ∂ CP transformed φ A 0 0 − Spacelike W ± Spacelike ∂ − i − i and that the effect of the CP transformation on the whole Lagrangian is to transform it to its Hermitian conjugate. However, there will in general be complex coefficients in front of the terms in the Lagrangian and these will not transform. This is the origin of the CP non-equivalence of the transformed fields. In fact, ignoring the strong CP violating terms, which are known to be vanishingly small[15], such terms are confined to the weak sector, specifically in the CKM mechanism described in section 1.5.1.

Considering a decay of a B meson to some final state f, the amplitude of this decay may be written

^ 0 iδi iφi A = f H B = i Aie e h | | 0i A = f H^ B = eξCP A eiδi e iφi h | | i P i −

ξCP where e is a CP phase, δi denotes the strong phase, unchanged by the CP transformation and φ the weak phase thus conjugated. The ratio A/A being different from unity would imply direct i | | CP violation. It can be seen that at least two different strong and weak phases must exist for the same transition B0 f for this to occur. For the simplest case where two such phases exist, the rates may be written→as

= A ei(δ1+φ1) + A ei(δ2+φ2) 2 1 | 1 2 | i(δ1 φ1) i(δ2 φ2) 2 = A e − + A e − 2 | 1 2 | giving 2A A sin(φ φ ) sin(δ δ ) 1 − 2 ∝ 1 2 1 − 2 1 − 2 from which it may be seen that both the strong phase difference and the weak phase difference must be non-zero for direct CP to be observed. In the decays of charged B mesons, this is the only way in which CP violation can be observed. To date, however, no such observation has been made. The situation with ε0/ε in the K meson system is inconclusive as indicated earlier, but a non-zero value would be evidence for direct CP violation.

1.4.2.2 CP violation in mixing

CP violation in mixing amounts to the statement that in equations 1.45 and 1.46, q/p = 1. In | | 6 order to study this, it is necessary to find a decay in which one of the amplitudes B0 f and 0 → B f is zero to avoid the possibility of CP violation by interference between decays (see → 0 section 1.4.2.3). An example is the semi-leptonic decay B0 l ν X, for which (B l ν X) → − l → − l 24 CP VIOLATION IN THE B MESON SYSTEM

0 + and (B l νlX) are both zero. Unlike in the kaon system where the large difference in → 0 lifetimes allows preparation of a reasonably pure sample of KL, separation of the mass eigenstates in the B meson system is not possible. A measurement of the time dependent asymmetry

0 + 0 (B (t) l νlX) (B (t) l−νlX) a = 0 → − → (1.49) (B (t) l+ν X) + (B0(t) l ν X) → l → − l would provide evidence for CP violation in mixing, but unfortunately such effects are thought to be small ( (10 2))[16]. O −

1.4.2.3 CP violation in the interference between decays

0 If one is interested in the decay of a B to some CP eigenstate ξCP via some Hamiltonian H, then one can define b 0 A = ξCP H^ B , (1.50) h | | 0i A = ξ H^ B (1.51) h CP | | i and q A λ = . (1.52) p A The time dependent amplitudes are calculated using

0 ξCP H^ B (t) = A(f+(t) + λf (t)) − h | | 0 i p ξCP H^ B (t) = A (f (t) + λf+(t)) h | | i q − giving

(B0(t) ξ ) = ξ H B0(t) 2 → CP |h CP | | i| 2 γt 2 Mt γt 2 2 Mt = A e− cos ( ) + e− λ sin ( ) | | b 2 | | 2  γt Mt Mt γt Mt Mt + e− λ cos∗( ) sin( ) e− λ∗ cos( ) sin∗( ) , 2 2 − 2 2  2 2 2 γt 1 + λ 1 λ = A e− | | + − | | cos(Mt) Im(λ) sin(Mt) . (1.53) | | 2 2 −   Similarly

2 2 0 2 γt 1 + λ 1 λ (B (t) ξ ) = A e− | | − | | cos(Mt) + Im(λ) sin(Mt) . (1.54) → CP | | 2 − 2   The key point is that these amplitudes have two contributions, one from the direct decay of the 0 0 0 B into the state ξCP and one from the mixing of the B into a B which then decays into ξCP . 1.4 CP violation and mixing in the B meson system 25

Figure 1-1. B meson decay rates as a function of lifetime for a CP asymmetry of Im(λ) = 0.75. If no CP violation were observed, the two decay rates would follow the exponential (solid line).

This gives this form of CP violation its full title: “ CP violation in the interference between decays with and without mixing.” The condition for this to occur is that λ be different from one. This will be true automatically if direct CP violation occurs in this decay, and also if CP violation in mixing alone occurs, but is a weaker condition than either of these two. Typical decay curves in the presence of CP violation are shown in figure 1-1[17]. It is useful to factor out the amplitude A and the decay constant γ, by forming the ratio

0 0 (B (t) ξCP ) (B (t) ξCP ) aξCP (t) = → − 0 → (B0(t) ξ ) + (B (t) ξ ) → CP → CP (1 λ 2) cos(Mt) 2Im(λ) sin(Mt) = − | | − (1.55) 1 + λ 2 | | which in the absence of direct CP violation and CP violation in mixing ( λ = 1) becomes | | a (t) = Im(λ) sin(Mt). (1.56) ξCP −

1.4.3 Measuring aξCP (t).

In the above equations, t denotes the time elapsed since the flavour of the b quark can be de- 0 termined. At the Υ (4S) the B0 and B are in produced in a coherent state, and this allows the determination of the flavour of the b quark by the study of the decay of the B meson not decaying 26 CP VIOLATION IN THE B MESON SYSTEM to a CP eigenstate - the so-called “tag” B. In this case t is the time difference between the two decays, which can be negative.

If the Υ (4S) decays at rest, the momentum of each B0 is 340 MeV, which results in a typical flight length difference of approximately 30 µm. Such a separation is not observable with current vertex detector technology, and it is for this reason that an asymmetric collider is preferred. A boosted Υ (4S) giving the daughter B mesons a βγ in the region of 10 times that of a stationary Υ (4S) is chosen. The parameters chosen at the PEP-II storage ring to achieve this are described in chapter 2.

1.5 Quark mixing and the CKM matrix

1.5.1 The CKM description of CP violation

The electro-weak Lagrangian, before symmetry breaking, may be written as ([18] chapters 11 and 12 ) I dL g I I I µ I + W = (u c t )γ  s  W + H.c. (1.57) −L √2 L L L L µ I  bL    where I denotes the interaction states, L denotes theleft handed projections of the fermion fields u, and W + denotes the charge raising electroweak-field operator. The weak interaction permits fields to connect with one another, and so the resulting observed mass eigenstates are mixed states of the original quarks. Denoting the transformations by which the original mass matrix is diagonalised by ViL and ViR, for the left and right fermionic fields i respectively, one has that diag VdLMdVdR† = Md diag VuLMuVuR† = Mu and, substituting into the Lagrangian,

dL g µ + W = (uLcLtL)γ VuLV †  sL  W + H.c (1.58) −L √2 dL µ  bL      One may define the matrix V such that

V = VuLVdL†

Vud Vus Vub

=  Vcd Vcs Vcb  . (1.59)  Vtd Vts Vtb      1.5 Quark mixing and the CKM matrix 27

This is the CKM matrix [19]. A general n n complex matrix, has 2n2 parameters. The CKM × matrix must be unitary (to preserve probability), and this gives n2 constraints. Of the remaining parameters, 3, being the number of independent rotations in 3 dimensions, can be written as angles, while 6 are phases. One may redefine the quark fields thus: u0L uL  c0L  = Pu  cL   t0L   tL          d0L dL  s0L  = Pd  sL   b0L   bL          where Pu and Pd are diagonal matrices consisting exclusively of phases. The result of this transformation is that V is redefined thus

i(φ1 ξ1) i(φ1 ξ2) i(φ1 ξ3) e− − Vud e− − Vus e− − Vub i(φ2 ξ1) i(φ2 ξ2) i(φ2 ξ3) V 0 =  e− − Vcd e− − Vcs e− − Vcb  . (1.60) i(φ3 ξ1) i(φ3 ξ2) i(φ3 ξ3)  e− − Vtd e− − Vts e− − Vtb      where φi is phase of (Pu)ii and ξi that of (Pd)ii. It is clear from this expression that only 5 independent phase differences occur, and thus the 6th cannot be rotated away. It is this complex phase, δKM , which leads to CP violation, and which led to the postulation of the third quark generation. This was noted by Jarlskog[20], who defined the quantity

J = Im(V V V ∗V ∗ ) , i = k, j = l (1.61) | ij kl il kj | 6 6 which is invariant under the phase transformations just described, and a non zero value for which is a necessary and sufficient condition for CP violation, ignoring the possibility of mass degeneracy amongst the quarks. In the standard parameterisation of the CKM matrix[9]:

iδKM c12c13 s12c13 s13e− V =  s c c s s e iδKM c c s s s e iδKM s c  (1.62) − 12 23 − 12 23 13 − 12 23 − 12 23 13 − 23 13 iδKM iδKM  s12c23 c12c23s13e− c12s23 s12c23s13e− c23c13   − − −   th th  where θij denotes the mixing angle between the i and j generations (in particular θ12 denoting the Cabbibo angle θc [21]), and sij = sin θij, cij = cos θij. The expression for J becomes J = s s s c2 c c sin δ (1.63) | 13 23 12 13 23 12 KM | one has that J 10 4[16], i.e. that CP violation is expected to be a small effect. ≤ − Noting that c13 1 and denoting the Cabbibo angle as λ, the matrix was parameterised by Wolfenstein [22] 'thus: cos λ sin λ Aλ3(ρ iη) − V =  sin λ cos λ Aλ2  + (λ4). (1.64) − O 3 2  Aλ (1 ρ iη) Aλ 1   − − −    28 CP VIOLATION IN THE B MESON SYSTEM

Noting that experimentally, sin θc 0.22, one may use a small angle approximation to recover the “standard” Wolfenstein approximation'

1 λ2/2 λ Aλ3(ρ iη) − − V =  λ 1 λ2/2 Aλ2  + (λ4). (1.65) − − O 3 2  Aλ (1 ρ iη) Aλ 1   − − −    Unitarity imposes the condition

VudVub∗ + VcdVcb∗ + VtdVtb∗ = 0. (1.66)

This equation is equivalent to one of the so-called unitarity triangles in the complex plane, shown in fig 1-2(a). The area of all such triangles is 1/2J - i.e. invariant. Substituting the Wolfenstein parameters for the matrix elements, and dividing throughout by VcdVcb∗ , one arrives at a triangle whose base is unity and whose vertex is given by ρ, η, where

λ2 ρ = 1 ρ − 2   λ2 η = 1 η − 2  

This is shown in figure 1-2(b). How can the formalism in the previous section be related to the CKM elements? Recalling the definition of λ used in equation 1.52, q A λ = (1.67) p A (it should be noted that this is not the Wolfenstein λ), one is interested in the value of λ when the decay mode in question is to a CP eigenstate. In this case the dominant contributions to the matrix elements A and A are from tree diagrams [23, 24, 25], such as the one shown in fig.2(b) and so 0 one may write (for the case of the Bd) A V V = ib id∗ . (1.68) A Vib∗Vid

Furthermore, it is clear from this equation that if one particular CKM contribution dominates, then we have that A = 1. (1.69) A

From the eigenvalue equations for q and p, one can write

q 2 m i /2 = 21 − 21 . (1.70) p m i /2   12 − 12 1.5 Quark mixing and the CKM matrix 29

Figure 1-2. Unitarity triangles in the complex plane. Figure (a) depicts the triangle relating to possible CP violation in B physics. Figure (b) is the same triangle in the Wolfenstein parameterisation.

Under CPT invariance, the elements of the mass matrix must obey M21 = M12∗ [7], and so one has that q M 1/2 = 12∗ . (1.71) p M  12  The mixing element M12 comes from diagrams such as that shown in fig.2(a). One consequently has the relation M (V V )2 and therefore that 12 ∝ tb td∗ q V V = tb td∗ . (1.72) p VtdVtb∗ It is usual to express these quantities thus:

q 2iφM = e− p A 2iφD = e− . A such that Im(λ) = 2 sin 2(φ + φ ), (1.73) − M D 30 CP VIOLATION IN THE B MESON SYSTEM

Figure 1-3. Figure (a) depicts a typical process for B0 mixing. Figure (b) is a typical decay, 0 B J/ψ K0 → S i.e. that V V V V Im(λ) = sin(arg tb td∗ ib id∗ ). (1.74) VtdVtb∗ Vib∗ Vid The angles in the unitarity triangle are defined as

V V α = arg td tb∗ (1.75) −V V  ud ub∗  V V β = arg cd cb∗ (1.76) − V V  td tb∗  V V γ = arg ud ub∗ . (1.77) − V V  cd cb∗  These angles may be determined by measuring appropriate channels in neutral B decays [26, 27]. Examples are the following:

0 0 0 sin 2β from Bd J/ψKS . In this channel, the K mixing must be taken in to account. The correction is that→ q A q λ = (1.78) p A p      K 1.5 Quark mixing and the CKM matrix 31 where q V V = cs cd∗ (1.79) p V V  K cs∗ cd so then

VtdVtb∗ VcbVcs∗ VcsVcd∗ λ 0 0 = Bd J/ψKS → Vtd∗ Vtb Vcb∗ Vcs Vcs∗ Vcd V V V V = td tb∗ cd∗ cb VtbVtd∗ Vcb∗ Vcd Im(λ) = sin(2β). ⇒ − sin 2α from B0 π+π . Here the expression for λ is d → −

VtdVtb∗ VubVud∗ λ 0 + = Bd π π− → Vtd∗ Vtb Vub∗ Vud Im(λ) = sin(2(π β γ) ⇒ − − = sin(2α). sin 2γ from B0 ρK0. Again we have K0mixing, and thus s → S

VtsVtb∗ VubVud∗ VcsVcd∗ λ 0 0 = Bs ρKS → Vts∗Vtb Vub∗ Vud Vcs∗ Vcd

From the Wolfenstein parameterisation, one may note that Vts Vcb and that Vtb Vcs 1 and so ' ' '

VcbVud∗ VubVcd∗ λ 0 0 = Bs ρKS → VudVcb∗ VcdVub∗ Im(λ) = sin(2γ). (1.80) ⇒ −

In the case where there is no single dominant CKM contribution the situation is more complicated. Under these circumstances, λ = 1, and the asymmetry has terms in both sin mt and cos mt. | | 6 The condition λ = 1 is guaranteed if the decay amplitude ratio A/A is not unity. | | 6 | | A general amplitude A for a b qqx decay may be written → t c u Aqq¯x = VtbVtx∗ Px + VcbVcx∗ (Tccx¯ δqc + Px) + VubVux∗ (Tuux¯ δqu + Px ). (1.81)

Where V are the CKM elements, and P and T denote the matrix elements from penguin and tree diagrams respectively. For each q and x, a unitarity relation may be invoked to express one of these three quantities in terms of the other two. For the B ccs decay, it is convenient to express the amplitude thus: →

c t u t A = V V ∗ (T + P P ) + V V ∗ (P P ). (1.82) cc¯s cb cs cc¯s s − s ub us s − s 32 CP VIOLATION IN THE B MESON SYSTEM

For this decay, the term VcbVcs∗ VubVus∗ and the second term may be safely neglected. The penguin contribution to the decaytherefore has the same phase as the tree diagram contribution, and so decays of this type present a clean method of measuring the angle β. The situation for the decay b uud , measuring the angle α in decays such as B0 π+π , is → → − somewhat different. The relevant expression for the amplitude, this time keeping terms in VubVud∗ as this occurs in B mixing expressions, is

u t t c A = V V ∗ (T P P ) + V V ∗ (P P ). (1.83) ccs¯ ub ud uud¯ − sd − d tb td d − d The CKM coefficients for both these terms have comparable magnitude. Further, recent results from CLEO[28] indicate that enhancement of the penguin diagrams may result in some cancelation of their OZI suppression, resulting in as much as a 10% contamination. For such a case, specific analysis techniques must be employed to separate the two contributions [29] and consequently extract the contribution measuring α.

1.6 CKM Status and Current Constraints

Existing measurements allow a considerable amount of information to be extracted on the size of the angles in the unitarity triangle without needing a time dependent asymmetry measurement. A full review of the CKM elements can be found in [9], and a recent review of CKM elements and other parameters with particular relevance to CP violation in the B system can be found in [30]. The key results are summarised here. The sides of the triangle in the lower half of figure 1-2 are given by

1 λ2/2 V 1 V R = ρ2 + η2 = − ub , R = (1 ρ)2 + η2 = td (1.84) b λ V t − λ V cb cb p p

The relevant CKM parameters are therefore Vcb , Vub and Vtd and λ, which to a high degree of accuracy can be equated to Vus. The current values are given by[9]

Vcb = 0.0395 0.0017 | | ± 3 V = 3.3 0.8 10− | ub| ± × V = 0.2196 0.0023 | us| ± V V ∗V = 0.0084 0.0018 | td| ' | tb td| ± V can be derived from the exclusive semi-leptonic decay B D lν , or from inclusive semi- cb → ∗ l leptonic B decays. Vub has been measured directly in the decays B πlνl and B ρlνl at CLEO[33]. An indirect determination can be made from the end point of→the semi-leptonic→ decays of B mesons, above the kinematic limit for the b clν decay. This yields → l V /V = 0.08 0.02. | ub cb| ± 1.7 Chapter Summary 33

Vus is determined from the decay rates of neutral K mesons to the final state πlν. The product V V is determined from B mixing. The rate of oscillation is governed by the mass difference | tb∗ td| mBd , as seen in equations 1.47 and 1.48. The expression for mBd gives [34]

2 2 m B f η V ∗V (1.85) Bd ∝ Bd Bd QCD| tb td| where the factor B f 2 describes the form factor for the quarks inside the B meson and η Bd Bd QCD gives the QCD correction to the box diagram shown in figure 1-3(a). These have not been measured by experiment and it is the theoretical error on these quantities which dominates the uncertainty on Vtd. The measurement of  in the Kaon system also provides limits on the CKM parameters ρ and η. These can be combined with the limits above to provide information on the allowed regions in the ρ, η plane for the vertex of the unitarity triangle. A plot of the currently allowed region can be found in figure 1-4 [31]. A full discussion of these limits and their meaning can be found in [32].

_ 1 η 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 ρ_

Figure 1-4. Allowed regions in the ρ, η plane from current measurements. The dotted lines represent the boundaries of the allowed regions by allowing all parameters to vary. The contours, centred with a dot, represent the 95% confidence limits region using a given set of theoretical

parameters. Limits from mBs are not included.

1.7 Chapter Summary

The phenomenon of neutral meson mixing has been described, and the observation of CP violation in the K meson system outlined. It is concluded that there is no experimental evidence for direct CP violation as yet, instead that it may be explained in terms of mixing phenomena alone. The prospects for the observation of the three types of CP violation in the B meson system have been discussed. The CKM matrix has been introduced, and the expressions for the expected size of CP violating effects have been described in terms of the CKM elements, in particular that the Jarlskog 34 CP VIOLATION IN THE B MESON SYSTEM invariant J = Im(V V V ∗V ∗ ) , i = k, j = l | ij kl il kj | 6 6 which must be non-zero for CP violation to occur, is small. The concept of unitarity triangles has been described and the relation of the angles of the triangle in the B meson system to the CKM elements and observable decays has been given. 2

The BaBar experiment and the PEP-II storage ring

2.1 Introduction

The attempt to measure CP violation in the B meson system makes considerable demands on the experimental apparatus and the collider. The branching ratios of B f where f is a CP → CP CP eigenstate are typically (10 4), giving rise to the need for a very high integrated luminosity, O − whilst the need to measure precisely the separation of the two B meson decays makes a boost to the Υ (4S) system necessary in tandem with precision vertexing. High quality tracking and calorimetry are required, as well as particle identification (in particular good K/π separation) necessary to distinguish between important fCP states.

This chapter will begin with a discussion of the asymmetric collider on which the BABAR experi- ment will be situated, outlining its key components and highlighting the differences between this and conventional colliders. The BABAR experiment itself will then be described, giving an outline of the tracking systems, particle identification, and calorimetry. The calorimeter will be discussed in more detail in subsequent chapters.

2.2 The PEP-II storage ring

2.2.1 Introduction

+ The PEP-II storage ring [35] is an e e− collider designed to operate at the Υ (4S) resonance, with a corresponding CM energy of 10.58 GeV. The Υ (4S) resonance is a unique source of neutral 0 Bd mesons, lying just above production threshold and below the necessary CM energy to produce 0 Bs mesons. The ratio of Υ (4S) production to qq production is approximately 1:3, and the Υ (4S) decays into neutral B mesons approximately 50% of the time. The requirements that B meson final states of small branching ratio be reconstructed and that the separation of the two B meson decays be measured are reflected in the principal differences of PEP-II with respect to existing colliders. These are the high design luminosity of 3 1033 cm 2 s 1 and the asymmetry, colliding × − − 36 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

Low energy ring High energy ring

Energy ( GeV) 3.1 9.0 Circumference ( m) 2199.32 2199.32

Emittance at IP εx/εy (nm rad) 64.3/2.6 48.2/1.9

Beta function at IP βx∗/βy∗ (cm) 37.5/1.5 50.0/2.0

Beam-beam tune shift ξ0,x/ξ0,y 0.03/0.03 0.03/0.03 RF frequency (MHz) 476 476 RF voltage (MV) 5.9 18.5 Bunch length (cm) 1.0 1.0 Number of bunches 1658 1658 Bunch separation (m) 1.26 1.26 Total current (A) 2.14 0.99 Table 2-1. Parameters of the PEP-II asymmetric storage ring.

9.0 GeV with 3.1 GeV . These differences impose quite severe demands on the machine and have an impact on detector design and performance. In the first two sections of this chapter key components of the accelerator and storage ring will be described. A more detailed description of the interaction region will then be given, and the section will conclude with a discussion of the machine’s impact on detector performance in the form of machine backgrounds.

2.2.2 The Main Storage Ring

Following the original suggestion that an asymmetric collider could provide adequate vertex res- olution to study CP violation at the Υ (4S)[36], further studies [37, 38, 39] indicated that an asymmetry in the region of 1 : 3 would be optimal. The cross section at the Υ (4S) is approximately 1.1 nb on a background of 2.5 nb, giving a luminosity requirement of 3 1033 cm 2 s 1 in order × − − to produce the required 3 107 B mesons per year. These are the essential design requirements of the PEP-II storage ring. The× parameters chosen to achieve these requirements are shown in table 2-1.

The selected energies of 3.1 GeV (positrons) and 9.0 GeV (electrons) give a βγ to the Υ (4S) of 0.56, which in turn give a mean separation of the decay points of the two B 0s of 250 µm. This is well within the resolution of current vertex detectors. 2.2 The PEP-II storage ring 37

The luminosity of the machine is given by [40]:

34 IE 2 1 = 2.17 10 ξ(1 + r) cm− s− (2.1) L × β  y∗  where I is the beam current in amperes, E is the beam energy in GeV, βy∗ is the vertical betatron function at the interaction point (IP), r is the ratio of beam height to beam width at the IP (the beam aspect ratio) defined in terms of the betatron functions and emittances (εx,y) thus:

1/2 εyβ∗ r = y ε β  x x∗  and ξ is the beam-beam tune shift of the machine. From this equation, it can be seen that high beam-beam tune number, low betatron function, high current and rounded beams are desirable. However, machine constraints and detector considerations must also be taken into account. The beam-beam tune shift of 0.03 is chosen as a conservative number lying well within the range of existing colliders (0.028–0.055 [9]). The beam aspect ratio has a maximum at one. However this case of round beams has practical difficulties, notably the need for strong focusing quadrupoles near the IP which impacts on detector design, principally because of the accompanying increase in synchrotron radiation and decrease in acceptance. An aspect ratio of 0.04 has been chosen for PEP-II. To achieve high luminosity, then, a small vertical betatron function and high currents are employed. The currents are of particular note, being an order of magnitude larger than existing machines. This gives large machine backgrounds, which will be discussed in section 2.2.5. The RF parameters are also closely linked. The frequency is chosen to be 1/6th that of the operat- ing frequency of the SLAC linac (2.856GHz) such that the phase of the two systems may be locked together (see section 2.2.3) whilst remaining close to the operating frequency of commercially available RF systems (typically 500MHz). The bunch length, σl, is constrained physically to be less than the vertical betatron function at the IP, and luminosity lifetime considerations give the choice of 1 cm. The operating voltage is then fixed by the relation 1 σl . ∝ √VRF fRF The magnetic bending radius for the high (low) energy ring is 165m (13.75m) respectively. The relation [41] 88.5E4I P = kW SR ρ where PSR is the radiated synchrotron power and ρ is the magnetic bending radius, allows the power consumption of the two rings to be calculated as 3.58MW (HER) and 1.24MW (LER). In fact, more synchrotron radiation is lost in the interaction region (this fraction is substantial for the LER), and the total power required is 3.69 (2.57) MW for the HER (LER). Given additional losses in the transmission of klystron power to the beam, the final number of klystrons is chosen as 10 (5) delivering 11.0(5.5)MW for the HER (LER). Synchrotron radiation is the dominant effect in the consideration of residual gas pressure in the beam pipe. The thermal load in the HER is of the order of 100W/cm, which gives a substantial 38 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING desorption rate into the vacuum chamber. This desorption rate is a function of the energy of the beam, the beam current and a quantity known as the photodesorption coefficient, η. This quantity is not well defined, being a function of the photon angle of incidence, radiation damage and manufacturing technique as well as the incident energy and the material itself. However, experimental results show that this quantity is at least an order of magnitude less in copper and stainless steel than in the more easy to manufacture aluminium. Copper vacuum chambers were chosen for the arcs of the machine, whilst stainless steel ones (having a slightly higher η but being cheaper) were chosen for the straight sections. The overall pressure requirements, derived from background considerations near the IP and beam lifetime considerations elsewhere, are that the N2 equivalent pressures be:

10 nTorr in the arcs • ≤ 3 nTorr in the straight sections • ∼ 1 nTorr in the straight section of the IP. • ∼ 0.2 nTorr within 20 cm of the IP. • ∼ ±

The choice of vacuum chamber material brings these numbers well within the range of existing pump technology. The magnet systems (excepting those in the interaction region which will be discussed in section 2.2.4) either use directly the existing magnets of PEP, or closely follow their design. The PEP ring was designed to handle beam energies of up to 18 GeV and is thus well suited to this purpose. The very large number of bunches and large beam currents pose particular problems for PEP-II. Aside from the problems of synchrotron radiation and beam backgrounds, the beams themselves can cause excitations in the RF or other components that they pass through, leading to beam instabilities. To address this problem, PEP-II is employing a feedback system which measures the position of a bunch relative to its nominal position, and then provides up to 2.8kV/turn of damping voltage to the same bunch to rectify any bunch instability. This requires a very high bandwidth digital filter which compares the bunch profile to the ideal (a sinusoid at 238 MHz) and applies the appropriate correction.

2.2.3 The Injection System

The injection system for PEP-II has as its principle component the SLAC linac. This operates in a two cycle mode. The first cycle accelerates an electron bunch which is injected into PEP- II, and another electron bunch is stored in one of the linac damping rings. On the next cycle, the positron bunch is accelerated, followed by the stored electron bunch. The positron bunch is separated off at the appropriate energy, while the following electron bunch is accelerated to high energy (about 30 GeV) to provide the next positron bunch. The accelerated bunches do not require 2.2 The PEP-II storage ring 39 the full length of the linac to acquire the appropriate energy and are transmitted to the storage ring via non-accelerating transmission lines. The pulse rate is 60 Hz. Beam lifetime considerations mean that a top up (80% to 100%) every hour will be necessary during factory running. Luminosity requirements dictate that this occur inside a 3 minute time window. This requires that each pulse in the above description carry 0.3 1010e , which is to be × ± compared with the 3 1010e regularly delivered by the SLAC linac to the SLC collider. × ± The injection scheme itself is a vertical one, so chosen to reduce the number of parasitic beam crossings that would occur at the IP due to synchrotron oscillations of off momenta particles in the horizontal plane. The location for injection is chosen to be at large βy to give the maximum efficiency for acceptance of the injected particles into the circulating beams. The momentum resolution of the SLAC linac injector gives a δp/p 0.7% (FWHM) which matches well onto the RF acceptance of PEP-II. '

2.2.4 The Interaction Region

The asymmetry and high luminosity of PEP-II pose particular difficulties in the interaction region. The asymmetry means that the beams must be kept apart even relatively close to the IP. The components in the interaction region are shown in figure 2-1. The first magnet encountered after the IP is a dipole (B1) which gives a horizontal separation to the beams. Of the magnets in the IP region, these have the most significant impact on the acceptance of the BABAR detector, which is consequently constrained to lie in the region cos θlab < 0.955. The next two magnets are quadrupoles (Q1, Q2), which are centred on the| LER. The| first magnet focuses in the vertical direction the LER travelling towards the IP (some focusing of the HER is achieved), but by the next quadrupole, situated 3m from the IP, the HER has sufficient separation from the LER to pass through a constant field region of the magnet, which is focusing in the horizontal direction for the LER. The main focusing magnets for the HER are situated between 4 m and 7 m from the IP, with a small dipole at 3.7 m to ensure that the synchrotron radiation generated by the focusing quadrupoles does not shine on the interaction point. These magnets have no effect on the LER which continues to undergo horizontal separation, reaching a maximum distance of 2.8 m from the HER at 40 m from the IP, where more dipoles return it to the same horizontal position as the HER. Between 22 m and 60 m, the LER is also separated vertically from the HER by 1 m, which allows the two to be at the same radius for the rest of the ring.

The r.m.s. beam sizes at the IP are 155 µm in the horizontal direction and 6.2 µm in the vertical direction. 40 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

20 300 mrad Q2 (a) Q1

Q1 10 B1 B1 rs

ete 0 im ent C

B1 B1 –10 Q1

Q1 Q2 –20 20 300 mrad Q2 (b) Q1

Q1 10 B1 B1 s er 0 met ti Cen B1 B1 –10 Q1

Q1 Q2 –20 –3 –2 –1 0 1 2 3 Meters

Figure 2-1. Synchrotron radiation deposits from the low energy beam (top) and high energy beam (bottom). The Q1 quadrupole, being off axis w.r.t the low energy beam, and the B1 separation dipoles are the principle sources of synchrotron radiation at the IP. The darker shading indicates regions of higher photon density. 2.2 The PEP-II storage ring 41

2.2.5 Machine backgrounds

The machine backgrounds in PEP-II are problematic because of the high beam currents employed. These are typically an order of magnitude larger than previous machines, but in order not to impact on detector performance, the backgrounds should be no larger than those typically observed in the lower luminosity storage rings such as CESR[42]. There are three principal sources of machine background: synchrotron radiation, lost beam particles due to bremsstrahlung with residual gas molecules and lost beam particles due to Coulomb scattering off residual gas molecules. The detector performance is impacted either by occupancy levels being too high or radiation damage to detector components. The acceptable background levels have been calculated [35] and are given for the two tracking chambers (see sections 2.3.1 and 2.3.2) as an occupancy rate of 10% for each, and a radiation dose of 20 krad/year for the silicon vertex tracker, and 0.5 C/year per wire in the drift chamber.

2.2.5.1 Synchrotron radiation background

There are two types of synchrotron radiation: synchrotron radiation caused by the beam passing through a dipole magnet or an offset quadrupole magnet, in which all particles radiate in a fan shape projecting forwards from the beam—referred to as fan radiation—and that caused by off axis particles passing through an on axis quadrupole or sextupole (generally at least 3σ from the nominal beam position), referred to as quadrupole radiation. Studies have shown [35] that the latter type contributes less than 1% of the synchrotron radiation rate at PEP-II, and so here we will only consider the former. Further, the dominant contribution to the synchrotron radiation rates near the IP are the dipole bending magnets used to split the beams horizontally, described in section 2.2.4, which give 6.18kW and 24.0kW of deposited energy within 50 cm of the IP, and the first focusing quadrupole which, whilst the high energy ring passes through a field free region of this magnet, deposits 2.88kW in the same region due to the low energy ring. A copper mask is placed on the exposed region of the beampipe near to the horizontal separation dipoles. This mask reduces the occupancy and radiation rates to about 1/80th of their acceptable levels. The source of the synchrotron radiation fans and the masks to shield the detector from them is shown in figure 2-1.

2.2.5.2 Lost beam particle backgrounds

The lost beam particle backgrounds from bremsstrahlung and Coulomb scattering are expected to be a significant source of detector occupancy and radiation damage. The beam particles striking residual gas and undergoing these reactions may fall outside the momentum acceptance range of the storage ring, and thus strike the beam pipe, causing an electromagnetic shower. The rate of this occurrence has been simulated[43] using Decay TURTLE [44], which models the passage of the beam through the accelerator elements before and after undergoing such an interaction. The 42 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING output from this simulation, which gives the energy and position along the beampipe of the lost particles, is then fed into a full GEANT[45] simulation of the BABAR beampipe and detector.

Silicon Vertex Drift Chamber DIRC Calorimeter

Average Inner layer Average Inner layer Photons

Occupancy 1.3% 3.0% 0.05% 0.5% 0.015% 1.1/ µs Limit 20% 20% 10% 10% 2% 20/ µs

Rad. dose (yr) 33 krad 82 krad 4 10 4 C/ cm 4.5 10 3 C/ cm 1.5 krad × − × − Limit 1500 krad 1500 krad 0.1 C/ cm 0.1 C/ cm 100 krad Table 2-2. Occupancy rates and radiation doses from lost beam particle backgrounds in the four

innermost sections of the BABAR experiment.

The lost particle rate from bremsstrahlung interactions are approximately ten times those from Coulomb interactions. The particles which strike the beam pipe near the IP can originate from several tens of metres away from the IP, and this makes it imperative that the pressure be as low as possible in the IR straight. The synchrotron radiation in the arcs makes a reduction of pressure in these regions more difficult, but the bending dipoles ensure that off momentum particles are more rapidly lost in these regions, and thus has negligible impact on detector performance. The background rates observed by the tracking systems and the calorimeter are shown in table 2-2, with an indication of the safety margin available for each device. The instrumented flux return (see section 2.3.5) is assumed to be adequately shielded from such background by the other devices.

2.3 The BABAR experiment

The BABAR experiment is a state of the art, general purpose collider detector, optimised for deter- mination of CP violating B meson decays. It has 5 principle components: a vertex detector, a tracking chamber, a particle identification device (the DIRC), an electromagnetic calorimeter and 0 an instrumented flux return used for µ and KL identification. The calorimeter, DIRC and tracking devices are situated inside a 1.5T superconducting solenoid. This section will describe each of the 5 subdetectors in detail. Further information on the calorimeter, in particular on its readout and projected performance, can be found in subsequent chapters. 2.3 The BABAR experiment 43

DEWAR CL MAGNET

CABLES

FLUX RETURN

SOB

Q4 Q2 Q2 Q4

FLOOR

Figure 2-2. The BABAR detector. The 9.0 GeV electron beam travels left to right, the 3.1 GeV positron beam right to left. The interaction point is marked by the crosshairs.

Figure 2-3. The BABAR silicon vertex tracker. Cross sectional view in the r/φ plane. The beam pipe is shown in the centre. 44 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

2.3.1 The Silicon Vertex Tracker

2.3.1.1 Overview

The precise measurement of the decay vertices of the two B mesons, and in particular their separation, is of crucial importance to the measurement of CP violation. Studies have shown [46] that the resolution necessary on the separation of the two vertices is of order 80 µm on a quantity whose mean is 250 µm. This has been shown to be easily achievable using existing technology [47]. The BABAR silicon vertex detector has been designed to provide the best information possible on the vertex separation whilst minimising multiple scattering of tracks which enter the drift chamber. It is a five layer double sided device whose design allows for the optimal solid angle coverage within the constraints of the interaction region magnets. The expected resolution is 50 µm at 90 at 1 GeV/c. The detector will also provide tracking information in addition to the ∼ ◦ drift chamber, and will be the only tracking detector for those tracks with pt < 100 MeV/c.

2.3.1.2 Detector Layout

The physical layout of the silicon vertex tracker is shown in figures 2-3 and 2-4. The SVT consists of 5 approximately concentric layers: 3 barrel type layers close to the IP, and 2 arch type layers at a slightly larger radial distance. The inner two layers are primarily designed for impact parameter determination, the outer two layers for precision alignment with tracks in the drift chamber, and the middle layer to assist in pattern recognition. The arched nature of the outer layers allows for better solid angle coverage and decreases the probability of a large impact angle for tracks in the forward and backward regions with consequent reduction in multiple scattering. The solid angle coverage is restricted by the beam separating dipole magnets and the space for mechanical support and electronics to 350 mr in the forward direction to 2.621 radians in the backward direction.

Layer 1 2 3 4a 4b 5a 5b Radius (mm) 32 40 54 124 127 140 144 Modules/layer 6 6 6 8 8 9 9 Wafers/module 4 4 6 7 7 8 8

Intrinsic resolution ( µm) z 10 10 10 10–12 10–12 φ 12 12 12 25 25 Table 2-3. Description of the layers of the silicon vertex tracker. 2.3 The BABAR experiment 45

Figure 2-4. The BABAR silicon vertex tracker. Cross sectional view in the z plane. The interaction point is marked, indicating the asymmetry of PEP-II. The structures to the right and left are the beam separating fixed dipole magnets.

The layers consist of double sided orthogonal readout strips measuring the z and φ co-ordinates on the inner and outer sides respectively. The inner 3 layers are divided into 6 detector modules in φ, which are displaced slightly in φ to allow for overlap at the detector edges. Layers 4 and 5 are divided into 16 and 18 modules respectively, which are again displaced to allow for detector overlap, but radially allowing for a 9 fold φ symmetry. Each layer is divided into forward and backward half modules which are electrically isolated and then further divided into the individual silicon wafers. The properties of each layer are listed in table 2-3 and those of each wafer are listed in table 2-4.

Wafer Type I II III IV V VI

Dimensions (mm) z 42.40 45.40 43.90 67.55 53.90 67.97 φ 41.30 49.42 71.47 52.50 52.50 52.80 43.30 → Readout pitch ( µm) z 100 100 100 210 210 210 φ 50 55 55 100 100 100 82 → Number of strips z 411 441 426 316 251 318 φ 799 874 1275 512 512 512 Table 2-4. Description of the wafers constituting the silicon vertex tracker. 46 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

2.3.1.3 Electronics and readout

The signal from each strip is amplified and passed through a CR-RC2 shaping circuit. The time for which the resulting signal is over a given threshold (to be determined by background conditions during running) is then digitised. This ’time over threshold’ varies approximately logarithmically with deposited charge, giving a larger dynamic range for a given bandwidth than a readout of the full signal. The digitisation is performed as part of the front end electronics. The digitised signal is fed into a circular buffer which is read out when a level 1 trigger accept signal is received. The strips themselves are biased to +20V, with a maximum allowable voltage of 60V. The interstrip 2 resistance is 100MΩ, and a leakage current of 1µA per strip per cm− can be tolerated, providing that the total leakage current for each layer does not exceed 15 µA.

2.3.2 The Drift Chamber

The drift chamber is the central tracking detector in BABAR. Its primary purpose is to provide accurate and efficient measurement of charged tracks necessary to provide exclusive reconstruction of B meson decays. Good spatial resolution must be achieved not only to provide the momentum measurement, but also to ensure good matching of tracks to those measured in the silicon vertex tracker, and to provide information on charged tracks to the DIRC and electromagnetic calorimeter. The other functions of the drift chamber are to provide input to the trigger system, and to provide dE/dx information on lower momentum particles ( 700 MeV/c or below) where BABAR’s primary particle identification device, the DIRC, is less ∼sensitive. The target spatial and momentum resolution are 140 µm and 0.3% pt for tracks with pt above 1 GeV/c, respectively. The drift chamber must present the minimum× possible material to the DIRC and calorimeter.

2.3.2.1 Mechanical design

A cross sectional view of the drift chamber is shown in figure 2-5. The chamber consists of 7104 hexagonal cells, of approximately 1.7 1.2 cm, arranged into 10 superlayers of 4 layers each. The arrangement of axial (A) and stereo× (U,V) layers is shown in figure 2-6 and table 2-5 gives the numbers of cells per layer. The stereo angle varies between 40 mr for the inner layer to 70 mr for the outer layer. The sense wires are 20 µm gold plated tungsten-rhenium and carry 2020V, while the field shaping wires are 120 µm and 80 µm gold plated aluminium carrying 350V. The inner wall of the chamber is a 1mm beryllium cylinder of radius 23.6 cm, and the outer wall consists of two layers of carbon fibre on a Nomex core. The gas in the chamber is a 4:1 mix of He:C4H10, chosen to give the best possible dE/dx information and reasonably low drift times whilst minimising the material in front of the outer detectors. The total amount of material at 90◦ is 2.08%X0. 2.3 The BABAR experiment 47

Superlayer (4 layers) Stereo (U,V)/ axial(A) Number of cells per layer 1 A 96 2 U 112 3 V 128 4 A 144 5 U 176 6 V 192 7 A 208 8 U 224 9 V 240 10 A 256 Table 2-5. Description of the drift chamber superlayers.

324 1015 1749 68

469 35 17.19 202 236 551 973 1618 IP

Figure 2-5. The BABAR drift chamber (z projection). The chamber is offset in z by 367mm to account for the asymmetry. The dimensions shown are in mm. 48 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

Figure 2-6. Section of the cell layout for the drift chamber. Axial layers are labeled A, stereo layers U and V.

The asymmetry of the calorimeter (see section 2.3.4) requires that the drift chamber material be minimised in the forward direction whilst allowing some scope for an increased amount in the backward direction. To this end, the forward endplate is only half the thickness of the rear one at 12 mm, within the calorimeter acceptance, and the readout electronics for the drift chamber are mounted on the rear endplate. The endplates are constructed from aluminium.

2.3.2.2 Electronics

The requirements on the drift chamber electronics are that the total charge and the drift time are read out to both the data acquisition system and trigger with a degradation on the performance of the chamber of no more than 10%. The total charge is necessary for dE/dx measurements, whilst the drift time measurement provides positional information. The amplification, digitisation and data formatting for the drift chamber are all done on the rear endplate behind the high voltage assembly. Each sense wire passes through a high voltage isolation capacitor, and 4 such channels are then passed to an amplifier. The signal then proceeds through two paths: one to a shaping circuit which is digitised by a 6 bit flash ADC operating at 14.875 MHz, the other to a discriminating circuit which is digitised by a TDC providing 1 ns precision. The digitisation chip takes the output from 8 amplification circuits. The output is then placed in a 2.3 The BABAR experiment 49 buffer of 12.9 µs latency which is emptied in to an event buffer when given an accept signal from the level 1 trigger. This double buffering is necessary to prevent dead time in the chamber. The event buffers are read out by 2 bit 30MHz lines to data IO modules which pass the data to the BABAR DAQ system. A full description of the drift chamber electronics can be found in [48].

2.3.3 The DIRC

Particle identification is a crucial part of the BABAR experiment. The need to tag the flavour of the B meson which does not decay into CP eigenstate gives rise to the need to distinguish between charged K and π at momenta up to about 2 GeV/c. In addition, there are several CP channels where K/π separation is essential. A notable example is the decay B π π , which → ± ∓ gives information on the angle α. In order to distinguish this channel from B K π , K/π → ± ∓ discrimination is necessary up to 4 GeV/c. The particle ID system must be able to function in conditions of high machine background and have as little impact as possible on the precision of the electromagnetic calorimeter situated behind it.

The particle ID system chosen in BABAR is one based on the concept of totally internally reflected Cerenkˇ ov radiation. The principle is illustrated in figure 2-7. The Cerenkˇ ov radiation is emitted at 1 a characteristic angle θc given by θc = (βn)− where n is the refractive index of the medium (see for example [49]). BABAR has chosen a quartz radiator for its high refractive index (n = 1.474) which preserves more of the internally reflected radiation, its long radiation length (11.7 cm), its long absorption length for the characteristic UV light, and its ability to be finished to a high quality optical surface.

The difference between the Cerenkˇ ov angle at 4.0 GeV/c for pions and kaons is about 6.5 mr. This gives stringent requirements on performance, specifically that the Cerenkˇ ov angle be resolved to better than 2 mr.

2.3.3.1 Mechanical construction

The DIRC (Detector of Internally Reflected Cerenkˇ ov light) is constructed in the form of a twelve sided regular polygon. Each side consists of 48 rectangular bars separated by 75 µm. The dimensions of the bars are 1.7 3.5 122.5 cm, and 4 such bars are glued together to make a total length of 4.9m. The material× ×in front of the calorimeter due to the quartz is therefore 0.15Xo at 90◦. The bars are held in an aluminium frame which is held at the rear of the detector in a cantilever arrangement. The frame presents an additional 0.05Xo at 90◦. The azimuthal angle coverage is 94%, and that in the centre of mass polar angle is 87%. To avoid adding to the material in the forward region where there is a concentration of centre of mass solid angle, the DIRC is instrumented at the back. Any Cerenkˇ ov light emitted in the 50 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

tz n2 Quartz Detector Surface n3

ty n1 n3 y θ z z D Side View Particle Trajectory

n2 Particle Trajectory

n3

tx n1

n3

x

z Plan View

Figure 2-7. The BABAR DIRC concept. Cerenkˇ ov radiation is internally reflected in the quartz bar, and emitted at the end of the bar preserving the Cerenkˇ ov angle. forward direction is reflected by means of a quartz wedge situated at the end of the bar, designed to return the light towards the rear while preserving the original Cerenkˇ ov angle. This gives a two fold ambiguity in the imaging of the Cerenkˇ ov cone, but this can be resolved by using timing information and the position of the charged track given by the drift chamber.

2.3.3.2 Readout

The Cerenkˇ ov light emitted at the back of the DIRC is allowed to expand in a region of purified water (so chosen to have a refractive index close to that of quartz) and is detected by an array of 11,000 2.82 cm diameter photomultiplier tubes. These have in front of them a layer of hexagonal “concentrators” which allow the coverage of the photomultipliers to exceed 90%. The surface of the array is approximately toroidal such that the path of the Cerenkˇ ov photons in water is 1.17m irrespective of angle. The photomultiplier tubes need to be shielded from the magnetic field of BABAR, and this is achieved by steel shielding around the water chamber and a bucking coil mounted near to the beam line. The overall single photoelectron resolution is approximately 8 mr, which, given that the average number of photoelectrons (assuming a 25% quantum efficiency for the photomultipliers) varies between 25 and 50 depending on polar angle, accomplishes the required resolution on θc. 2.3 The BABAR experiment 51

Radiation length 1.86 cm 3 Density 4.51 g cm− Light yield 50–60k photons/MeV Emission peak 565 nm Time constant 940 ns

Table 2-6. Properties of crystal CsI(Tl) scintillator.

2.3.4 The Electromagnetic Calorimeter

The average photon multiplicity in generic B decays is 5.5 and, at PEP-II, 50% of these will have an energy below 200 MeV[50]. As a result, the B reconstruction efficiency falls off very steeply with the minimum reconstructable photon energy. In addition, many CP eigenstates have a π 0 in their final state, and these need to be reconstructed with high efficiency since the branching ratios for such decays are in general small. Even in the most kinematically extreme case, in the decay B0 π0π0, the mass resolution on the π0 is dominated by the energy resolution rather than the angular→ resolution. These facts give rise to the need for a highly efficient electromagnetic calorimeter with very good energy resolution. A material fulfilling these requirements is Thallium doped Caesium Iodide, which has been used successfully for many years at CLEO-II[51]. The relevant properties of CsI(Tl) are listed in table2-6. The target resolution, excluding the effects of electronics noise and machine background, is (for an energy E in GeV) σ 1% E = 1.2%, (2.2) E √4 E ⊕ the constant term arising from individual crystal calibration errors, crystal non-uniformity and leakage from the front and rear of the crystal. The structure of the calorimeter is made up of two parts—the barrel and the forward endcap. There is no rear endcap in the design due to the asymmetry of the machine and the consequently small solid angle that such a device would cover. The barrel consists of 48 rows in theta which contain 120 crystals in phi. These are arranged into modules containing 7 crystals in theta and 3 in phi. The length of the crystals varies between 29.76cm (16.1X0) at the rear, increasing to 32.55cm (17.6X0) in the forward direction. The inner radius of the barrel is 91 cm. The endcap has a conical section, with the front faces of the crystals at an angle 22.7◦ from vertical. The endcap consists of 8 rings arranged in modules to give a 20-fold symmetry in φ. The three rows closest to the barrel have 120 crystals in phi, the next three have 100 and the inner two 80. This gives a total of 6580 crystals. A further ring of the same dimensions as the last ring of crystals is filled with lead to provide shielding from machine backgrounds. All the crystals in the end cap have length 32.55cm (17.6X0) except those in the inner two rings which are shorter by 1 X0 due to space limitations. The calorimeter extends 2.30 m in the forward direction, and -1.56m in the backward 52 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

direction, covering 0.938 < cos θCM < 0.895. A cross section of the calorimeter can be found in figure 2-8. −

112.7 cm 180.9 cm

140.8°

26.9° e– IP e+ 15.8° 91 cm

Figure 2-8. Cross sectional view of the electromagnetic calorimeter showing angular coverage. The electron beam has the higher energy of the two.

The crystals are wrapped in a white diffuse reflector (Tyvek 1056D) and a layer of aluminium foil which gives RF shielding. Combined with the carbon fibre support structure of thickness 300 µm, this gives a 1.25 mm gap between crystals. To decrease the probability of a photon striking dead material, the crystals are arranged in a non-projective geometry in theta. The non projectivity ranges from 15 mr in the central barrel to 45 mr at the edges of the endcap. The crystals forward of the IP point forward, those to the rear point backward. In front of the crystals there is a double layered cylinder constructed of 1mm thick which has a core layer of foam. This is to provide a gas seal necessary for humidity control and RF shielding. The electronics and data acquisition system for the EMC is described in chapter 3. The projected performance is discussed in chapters 4 and 5.

2.3.5 The Instrumented Flux Return

The iron flux return on the outside of the BABAR detector is instrumented with resistive plate 0 chambers (RPCs) in order to provide a means of µ and KL identification and to use the high timing resolution on such devices to provide information on the beam crossing time. The novel aspect of the BABAR IFR is that it is graded, with increasing thickness of iron from the inside moving outward, providing a lower momentum reach for particle identification. 2.3 The BABAR experiment 53

1400

Figure 2-9. End view of the barrel section of the instrumented flux return, showing integration with the solenoid. The inner resistive plate chamber (iRPC) is not shown.

The three main sections of the IFR are the barrel, the endcaps and the inner RPC situated around the solenoid. The barrel consists of 17 active layers situated between 18 plates of iron. The inner 9 plates are 2cm in thickness, then 4 plates of 3cm, 3 plates of 5 cm and 2 of 10 cm. The barrel is fabricated in sextants, and these are broken up into modules 125cm wide and 181-320cm long with increasing radius. An additional active layer is situated on the outside of the iron. An end view of the barrel can be seen in figure 2-9. The endcap is hexagonal in cross section, and is split vertically to allow access to the inner detectors. The grading of the iron is similar to that of the endcap, excepting that the outer two layers are 5cm and 10cm in thickness. The gaps between layers in both the endcap and the barrel are 3.2 cm. The inner RPC consists of two cylindrical layers which surround the electromagnetic calorimeter, and an additional planar layer between the solenoid and the first layer of iron. One of the functions of the inner RPC is to provide information on particles which lose most of their momentum in the calorimeter and consequently do not reach the first iron layer. 54 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING

2.3.5.1 RPC construction and readout

The principle of operation of a resistive plate chamber is described in [52] and has been used in many experiments [53]. A cross sectional view of the BABAR RPC is shown in figure 2-10. On the outside are grounded aluminium sheets 40 µm thick, which are insulated from the rest of the device by a layer of mylar. The pickup strips, also aluminium, are separated from the graphite coated Bakelite sheets by a 300 µm layer of PVC. The 2mm gap between the sheets is filled with an Ar:C2H2F4:C4H10 mixture which is held in an 8kV potential. The barrel layers are filled with 3 RPC modules which are divided in z, while the endcap is divided vertically to house 2 modules. The cylindrical inner RPC is divided into 4 quarter cylinders, each with a radius of 147cm. The readout strips on each side of the RPC are orthogonal to one another, and this, in conjunction with the finite vertical height, gives 3 dimensional position information.

Aluminum

Foam X strips H.V. Insulator Graphite Bakelite 2 mm

Gas 2 mm

Bakelite 2 mm Graphite Insulator PVC spacers Foam Y strips Aluminum 1 mm 0 1 cm

Figure 2-10. Cross section of the layout of a typical RPC used in BABAR’s instrumented flux return.

The readout strips on the RPCs have a pitch of 38.5 mm in z and varying between 21.7 mm to 33.5 mm in φ in the barrel, and 28.4 mm in the horizontal direction and 38 mm in the vertical in the endcaps. 16 such strips are passed into a front end card (FEC) which passes the active strips through TDC circuits which give a 1ns resolution. The fast rise time (2–4ns) and the large signal (300mV) of the RPCs means that relatively simple fixed threshold electronics can be employed. The output of 64 such TDCs is stored, 1 bit per strip, in a buffer designed to allow for the trigger latency. The output of the buffers is then passed along an optical fibre to the BABAR DAQ system. 2.3 The BABAR experiment 55

Physics sample Minimum efficiency rate Tolerable error

Υ (4S) BB CP channels 99% 0.5% → → Υ (4S) BB non-CP channels 99% 0.5% → → B physics at the Υ (5S) 99% 0.5% Charm physics 95% 2% qq 95% 2% τ physics: rare decays 90% 10% τ physics: asymmetries 95% 0.5% τ physics: branching ratios 95% 0.1% γγ physics: exclusive meson pairs 90% 3% γγ physics: all neutrals 80% 5% γγ physics: exotic resonances 90% 4% γγ physics: tagged 90% 5%

Table 2-7. Trigger efficiency for various physics channels to be studied with the BABAR detector.

2.3.6 Trigger

The trigger system for BABAR is required to deliver a near perfect efficiency for interesting physics events in demanding conditions, most notably imposed by the machine background. The require- ments on efficiency are discussed in detail in [54] and are summarised in table 2.3.6. The total trigger rate must not exceed that allowed by the data acquisition system bandwidth (2kHz) in hardware and finally the maximum storage rate (100Hz) in software. To do this, the trigger is split into two levels, Level 1 (hardware) which fulfills the initial rate reduction requirement, and Level 3 (software) which fulfills the second. In addition, the overall latency in Level 1 must not exceed 12 µs with a jitter of no more than 1 µs. The level 1 trigger consists of three parts: the drift chamber trigger, the calorimeter trigger and the global trigger. The calorimeter and drift chamber triggers construct elementary trigger objects, which are then combined in various ways by the global trigger to produce 24 trigger lines. The elementary trigger objects, which are somewhat simpler than the fully reconstructed objects for the two subsystems, are described in detail in [55]. The main objects are long tracks (with pt > 180 MeV/c) which encompass the full extent of the drift chamber, short tracks (with pt > 120 MeV/c ), and calorimeter trigger towers, which consist of the sums in energy of a 3 crystal strip in phi along the length of the calorimeter. A level 1 accept signal is generated and sent to the data acquisition systems of the subdetectors if a pre-determined selection of trigger lines is set off for a given event. This selection can be related to physics requirements, or be set to 56 THE BABAR EXPERIMENT AND THE PEP-II STORAGE RING allow calibration or monitoring runs. The level 1 accept signal must be sent to the subsystems with the latency and jitter specifications described above. At nominal machine background, the level 1 trigger is expected to pass events at 1.5kHz. At ten times nominal, this is expected to be 16kHz. Additional requirements looking at the separation of tracks or an increase in the minimum energy required for a calorimeter cluster have been shown to reduce this rate to an acceptable level. The level 3 trigger is implemented purely in software, employed to reduce the level 1 rate of a maximum of 2kHz to the allowed event storage rate of 100Hz. The algorithms employed are a mixture of vertex cuts to eliminate events whose origin is far from the interaction point, event time cuts which eliminate events from bunch crossings either side of the physics event crossing and drift chamber to silicon vertex tracker track matching which helps reduce “events” from machine background. Bhabha and two photon physics events, whose expected rate at design luminosity totals to 177Hz, undergo pre-scaling in level 3 in order to keep the total rate down to the prescribed level. If the machine background conditions are such that the level 1 accept rate exceeds 2kHz, then the construction of a level 2 trigger to filter this rate down to an acceptable one for level 3 will be necessary. The present performance of the trigger[55] indicates performance well within the criteria, with the exception of the efficiency for the one pronged τ decay at 10 times nominal background, which is at 92%, instead of the required 95%. Improvements are expected to this figure.

2.4 Chapter Summary

The measurement of CP violation in the B meson system requires advances in both storage ring and detector performance. The PEP-II storage ring has been described. The key aspects of the machine are the high design luminosity of 3 1033 cm 2 s 1 and the asymmetry, colliding × − − 9.0 GeV electrons with 3.1 GeV positrons. The impact of the machine on the design of the detector and the expected backgrounds generated by the machine have been described. An outline of the BABAR experiment has been given, describing the construction and readout of the five key detector elements. The readout and performance of the calorimeter is discussed in more detail in subsequent chapters. 3

Software for the Electromagnetic Calorimeter

3.1 Introduction

The reconstruction and simulation software is a key component in the operation of any experiment. This chapter describes the motivation for, and the key concepts of, the chosen technology used in the BABAR software environment. A description of the application of this technology in the aspects of calorimeter electronics simulation, reconstruction, particle identification and calibration will be given, along with an indication of the key components of the operation of these systems. The development and performance of these systems will be discussed in chapter 4.

3.2 C++ and object oriented design

BABAR has chosen C++ as its primary programming language. The principal reason for this choice is the ability to employ object-oriented programming techniques which allow for greater flexibility and control of large scale projects ( (106) lines of code or more). In this section an introduction to the concept of object oriented programmingO will be given along with a summary of its key components. Sections 3.4.1, 3.4.3 and 3.4.4 will give examples of the employment of this technique in the calorimeter software.

3.2.1 The Concept of an Object

Procedural programming languages allow for the separation of functionality, but do not allow for the separation of what a function does from how it does it. In addition, the implementation of a given function is intrinsically linked to the data that the function uses. This leads to two problems. Firstly, the data in a function are “open” in the sense that operations on it are permitted by any function which uses that data. This can lead to functions corrupting the data which are sent to them which then has knock on effects for the rest of the system. Secondly, changes in the implementation of a function can affect directly the clients of that function, such that a small change in one function can result in a large number of changes throughout the system in order to 58 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER accommodate the new implementation. This problem is increasingly intractable as the scale of the project increases. With BABAR’s reconstruction and analysis software extending to over a million lines of code, new techniques to control this problem have been employed. In object oriented programming, the fundamental unit of construction is the object, not the pro- cedure. An object is a set of data and the functions that can be performed on that data. The definition of such an object is referred to as a class—the word object is reserved for particular instances of a class within a program. In general, the representation of the data is hidden from the client, and one may only ask for values of the data, or the result of calculations on it. For example, an electromagnetic cluster can be thought of as an object. The data in this object are the crystals which make up the cluster and their energies. However, all the properties of a cluster can be passed to client code without ever having to give the client access to the crystal energies— clients need not know about the data representation. This has two advantages: firstly that the integrity of the data can be guaranteed, and secondly that the external clients can code in terms of the questions they need to ask—the interface of the object—and are then immune to any changes in the data representation. These ideas are developed further in two key concepts: abstraction and encapsulation.

3.2.2 Abstraction

Abstraction is the separation of the external view of an object from its implementation. Booch[56] describes it as follows:

An abstraction denotes the essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the user.

Clients coding in terms of abstractions do not concern themselves with either the data that an object uses in its implementation, nor the particular implementation itself. This allows for either of these to change without that change propagating to client code, resulting in much reduced complexity. The mechanism in C++ that allows for abstraction is inheritance. If a class inherits from another class, then the function definitions (and in certain cases some data) in the so-called base class can be used by the inheriting class (called the derivative) or, more usefully, be overridden by that class. In this way, alternative implementations of a given function are made available to clients, who can code in terms of the base class (the abstraction) but receive a given implementation by being given a particular derivative. For example, a track matching algorithm is concerned with the location of an energy deposit in the calorimeter. That energy deposit can be described by either collections of raw crystal energies, crystal energies which have been shared among several clusters, or calibrated crystal energies. The abstraction is “some object which knows how to tell you its position,” and the three cases described provide differing implementations. A pure abstraction is one that provides no default implementation whatever, and leaves all the details up to derivative classes. 3.2 C++ and object oriented design 59

3.2.3 Encapsulation

Encapsulation is the process of separating the implementation of a given class from its interface. As described above, the interface defines those questions that a client may ask of an object about which the client can make assumptions. The implementation of a class is the part about which clients may not make assumptions. The most usual form of encapsulation is data hiding which prevents clients from directly accessing the data inside an object. This not only preserves data integrity, but allows for the internal representation of an object to change without affecting external clients. Booch’s definition is:

Encapsulation is the process of compartmentalising the elements of an abstraction that constitute its structure and behaviour; encapsulation serves to separate the contractual interface of an abstraction and its implementation.

The C++ mechanism that allows for data hiding is the concept of private and public members of a class. The public members are those functions (and data, though this is not good practice) which are visible to external clients. Private functions and data are not visible to external clients and so are free to change without knock on effects in other code.

3.2.4 Object Oriented Design

The use of objects in programming brings in the advantages discussed above, but is only fully exploited when combined with object oriented design. This allows for an expression of the relationships between classes to be developed, before code is written, which defines the logical relations amongst the classes, usually in the form of a class diagram. Examples of class diagrams and notation are given in appendix B. In general the goal is to ensure that objects depend on abstractions, and not on the details of implementation. This has the effect of reducing coupling— the amount of changes in client code necessary to accommodate a change in implementation— reducing maintenance and increasing reliability. Certain constructs in object oriented design have a sufficiently large number of applications that they have become “standard” designs, known as patterns. These are collections of objects that solve a particular design problem, in much the same way as there are electronic circuits that solve particular engineering problems. A detailed discussion of the merits of patterns will not be given here. For further details, see [57].

3.2.5 Relevance to physics capability

The rapid acquisition of a detailed understanding of the BABAR detector will be crucial to the operational success of the experiment. Furthermore, the limitations of even detailed Monte Carlo 60 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER studies mean that changes in algorithms and consequent physics capability can be expected at a high rate during the collection of first data, and this must be allowed for in the software design. Two aspects of properly employed object oriented design are beneficial in this regard. Firstly, a system depending on abstractions (termed “loosely coupled”) results in less maintenance and a more reliable structure, with the obvious benefits for physics development. A more tangible aspect is that of algorithmic abstraction, whereby the fundamental aspects of an algorithm are abstracted and encapsulated, and a particular implementation providing improved physics capability can be readily incorporated into the rest of the software with the minimum of effort, making both comparisons and physics optimisation easier. The philosophy of providing a well defined framework for the calorimeter reconstruction software has concentrated on providing a core set of functionality with as much abstraction as possible, such that an operational system is available now, but it is a system that is easily extensible in the advent of better physics capability and understanding.

3.2.6 The BABAR Framework Software

The BABAR Framework, now a joint collaboration between BABAR, CDF and CLEO, provides the core operation of the reconstruction, analysis and electronics simulation software. It is described in detail elsewhere[62]. A summary of the key components is given here. The principle building blocks of the Framework are the Event, the Environment and the Module. The Event The Event is an object consisting of the collection of all data relating to a particular physics event. These are usually organised in terms of lists of objects (e.g. clusters, tracks, particle candidates) but may consist of more complicated objects such as associations between items in different lists. The ProxyDict mechanism[68] is employed to allow extensibility of the Event to new data types as these become necessary. No data type in the Event is required to know about any other. The Environment The Environment is an object similar in concept to the Event, but relates to all the data which are necessary to process the physics data — geometry, calibration constants, conditions data. Framework Modules A Framework Module is a high level abstraction that provides a particular piece of event data processing. In addition, tools for run time configuration are provided. The usual mode of operation for a subclass of a module is to extract the necessary data from the Event/Environment that it needs to do its processing, and return its results to the Event. For example, a cluster finding Module will retrieve the crystal energies from the Event, use the Environment to obtain the geometrical information necessary for clustering, and return the cluster objects to the Event. 3.3 Simulation software 61

Framework Modules are configured into the executable in Sequences designed to produce a more general task such as the calorimeter reconstruction. Sequences and individual modules can, once compiled into an executable, be configured into and out of it at run time.

3.3 Simulation software

The central simulation software for BABAR is the GEANT3 [45] based BBSIM program. This simulation provides, using an input of four vectors and particle types of the decay products of the Υ (4S) and a geometrical description of the detector material, an output list of energy deposits in the active volumes. The process of digitisation is not part of this simulation and is coded in C++. It is this part of the simulation for the calorimeter which is now described.

3.3.1 The calorimeter electronics simulation

A detailed description of the calorimeter electronics design can be found elsewhere [61]. A brief summary of the essential points is as follows. The scintillation light from the crystal is picked up by two (1 cm 2 cm) photodiodes mounted directly on the rear face. The output from × each photodiode is sent through a pre-amplification and CR RC 2 shaping integrated circuit, − mounted close to the photodiodes in order to reduce pickup noise. The shaping times are 0.8 µs (differentiation time) and 0.25 µs (integration time). The output from the shaping circuit is sent through channels of gain 1 and 32 to the CARE (Custom Analogue Range Encoder) chip before being encoded by a×10 bit ADC.× The CARE encodes the incoming data in the following gain ranges: 1 (1 1), 4 (1 4), 32 (32 1) and 256 (32 8). In this way, the output of the CARE is a 12 bit number× (a 10× bit mantissa×and a two bit range× indicator) but the dynamic range represented is 18 bits. The ADC operates at 3.7MHz, 1/64 of the BABAR beam crossing clock rate. The output of the ADC, plus 2 bits encoding the range of the CARE, is passed over an optical fibre to the data acquisition, where a sophisticated read out process, referred to as feature extraction, takes place. This is described in more detail in section 3.3.2. The output is also passed to the trigger systems. The bandwidth of the data acquisition system limits the number of crystals that may be feature extracted at the maximum level one trigger rate (2kHz) to approximately half of the calorimeter crystals. The result of the trigger determines which crystals are feature extracted. If a given crystal’s analogue energy determined by a simple search in the bins around the trigger time, taking into account the rise time of the shaping response, is above a threshold (this will be background dependent, but is around 10MeV) then that crystal’s ADC output is passed for feature extraction, as are those of neighbouring crystals, or neighbouring strips of crystals if the crystal is at the edge of a trigger tower[61]. The feature extraction uses a matched digital filter which is described in section 3.3.2. The input and output objects of the front end electronics simulation are the EmcGHit and the EmcDigi respectively. 62 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

C diff R int R int

R diff C int C int τ = RC

Figure 3-1. CR-RC-RC (CR-RC2) shaping circuit for the photodiode readout. The differentiation (CR) stage has a time constant of 0.8 µs and the integration (RC) stages have identical time constants of 0.25 µs. The input to this circuit is the amplified photodiode output. The output from this circuit is fed to the ADC circuit.

EmcGHit This class contains the Monte Carlo truth information for a particular crystal. The deposited energy, the time of the hit, and crystal index information are all provided.

EmcDigi This class represents the front end electronics output for the calorimeter. Access to the energy (both in raw integer format and in GeV) and time are provided, along with a channel identifier which can be converted into a theta and phi crystal index.

The simulation for the front end electronics was written to convert the input from the detector simulation (a list of EmcGHits) into the output (a list of EmcDigis). To this end, the following classes were written:

EmcWaveform This class encapsulates the properties of the crystal and the electronics up to and including the ADC. The crystal properties are those of the exponential decay constant of the light output and the number of photons created inside the crystal. This number is folded into the quantum efficiency of the photodiode to give a number of photoelectrons observed per MeV of energy deposited. It is envisaged that this number will come from measurements of crystal properties, but at present is set at 5000 p.e. per MeV. The exponential decay constant is 900 ns for Thallium doped CsI. The shaping and preamp electronics are described in an analytic formula calculated by forming an expression for the various components in the Laplace domain, multiplying and applying the inverse transform. The preamp is assumed to have an infinite time constant (the time constant is typically 1000 times the other constants in the system) which in the Laplace domain gives a 1/s term. The crystal light collection constant is an exponential decay, giving a 1/(s + a) term, where a is the reciprocal of the decay time constant. The shaping circuitry is shown in figure 3-1. The differentiation stage gives a s/(s + b) term (b = 1/CR), and the integration parts of the circuit, which have the same time constant, again give exponential terms, giving a 1/(s + c)2 contribution (c = 1/RC). This gives the final expression 1 . (3.1) (s + a)(s + b)(s + c)2 3.3 Simulation software 63

The response function, then, of the entire system is given by

1 ct 1 1 h(t) = e− (a b) t (a b)(a c)(b c) − − a c − b c − − −   − −  bt (a c) at (b c) +e− − e− − . (3.2) (b c) − (a c) − −  The waveform class has the additional functions of digitising its contents when given the least significant bit value, and the addition of Gaussian electronics noise when given the noise width energy equivalent. Strictly, random noise should be passed through the shaping circuitry response function before being added to the waveform. However this is expensive in CPU terms since this must be done for each sample of each waveform for all 6580 crys- tals. In addition, the noise on a given crystal’s output is dominated by machine background (see section 3.3.2.2) and so electronics noise was simulated by overlaying Gaussian noise on the already shaped waveform. Feature extraction can also be performed in the Waveform either using a standard maxima search method or by using a digital filter (see section 3.3.2). EmcGHitsToWaveform A Framework module derivative. This module receives the simulated energy deposits from the event (the GHits), creates the necessary Waveforms for each crys- tal, passes the GHits to the appropriate Waveforms such that the response may be calculated, and places a table of the resulting waveforms in the event. This module has control over the parameters given to the Waveforms (electronics time constants, photoelectron efficiency, crystal time constants), such that these may be varied either for simulation purposes or as a result of detector measurements. EmcSparsify Also a Framework module, responsible for stripping the event waveform table of those waveforms that do not pass the sparsification algorithm. The present implementation is one that takes all the neighbouring crystals of those crystals that pass the analogue threshold, and does not take into account the strips associated with the edge of trigger towers. EmcWaveformsToDigis The final Framework module in the electronics simulation sequence, this is responsible for feature extraction. The standard calorimeter feature extraction em- ploys a matched digital filter. The module consequently has two functions: one is to construct the filter response function, and the other is to perform feature extraction on the waveforms passed to it in order to extract energy and timing information. The filter function is constructed from the noise power spectrum and knowledge of the ideal signal (see below.) The noise power spectrum is determined by a windowed power spectral analysis[63] per- formed on all the waveforms in an “event” which contains only machine background. The ideal signal is calculated analytically. Once the filter function is constructed, it is convoluted with each waveform to be feature extracted in turn, and the energy and timing information extracted by interpolation around the observed maxima.

The above structure allows the table of waveforms for one event to be given to the level 1 trigger simulation. The trigger then provides the time of the event and it is this that is used to provide the correct location in the waveform to do feature extraction. 64 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

3.3.2 Digital filtering

The machine background rate at PEP-II is such that at ten times nominal background, the calorime- ter crystals will each receive about 400-500keV of soft photons per microsecond (see figure 3-2). Even at nominal background, the employment of a long shaping time in order to reduce electronics

Figure 3-2. Energy deposit in the calorimeter at times ten nominal machine background, summed over all crystals. noise will result in the overlap of many background photons on a given signal photon, which will degrade the resolution. The use of a short shaping time will decrease the probability of overlap, but will increase electronics noise. The solution implemented for BABAR is to pass the ADC output through a matched digital filter in order to maximise signal to noise. The theory of this filter will now be described, and its impact discussed in section 3.3.2.2.

3.3.2.1 Theory of the Matched Filter

Let us consider the case in which a signal A(iω) passes through a filter with response function R(iω) which is to be optimised to maximise S/N for a noise input of spectral power density 3.3 Simulation software 65

N(iω). For this case, the signal to noise ratio is given by

+ 2 S 1 ∞ A(iω)R(iω)dω = −∞ (3.3) + 2 N 2π R ∞ N(iω) R(iω) dω −∞ | | The numerator can be written in the formR

2 + ∞ A(iω) 1 2 1 [N(iω)] R(iω)dω (3.4) [N(iω)] 2 Z−∞

so then, by use of the Schwarz inequality, + 2 1 + 2 S 1 ∞ A(iω) [N(iω)]− dω ∞ N(iω) R(iω) dω | | | | −∞ + −∞ N ≤ 2π R ∞ N(iω) RR(iω) 2dω −∞ | | + 2 1 ∞ A(iω) R = | | dω. (3.5) 2π N(iω) Z−∞ If the signal to noise ratio is bounded above in this way, then it may be maximised by finding the response function R(iω) which gives the equality in the above equation. It can be seen that by setting A(iω) R(iω) = ∗ (3.6) N(iω) the equality will be satisfied. Equation 3.6 must then be solved for R, which is matched to the signal A. A fuller discussion of the above may be found in [58]. Equation 3.6 becomes, in the time domain a( t) = r(t) n(t), (3.7) − ∗ where a lower case letter refers to the Fourier transform of the corresponding upper case variable. By definition (see [59] p.42), the power spectral density of a function in the frequency domain is the Fourier transform of the so-called auto-correlation function of that function in the time domain. The auto-correlation function A for a discrete time function f is given by

n=N 1 m − − A(m) = f(n)f ∗(n + m), (3.8) n=0 X subject to A( m) = A (m), where N is the number of samples in the data set. If f is real, as is − ∗ the case for the noise function, then A(m) = A( m). As a result, the convolution described in equation 3.7 is given by −

n(0) n(1) n(M) r(0) a(M) · · ·  n( 1) n(0) n(M 1)   r(1)   a(M 1)  −. . · · · .− . = .− , (3.9)  . . .   .   .               n( M) n( M + 1) n(0)   r(M)   a(0)   − − · · ·            66 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

Figure 3-3. Individual crystal noise as function of machine background. The upper points represent a classical analogue readout with a shaping time of 2 µs such as that used in CLEO. The lower points represent a digitally filtered readout using a short shaping time. It can be seen that the noise from soft photon machine background dominates over electronics noise (known to be about 150keV). where M is the number of frequencies used in the discrete Fourier transform of the signal. Using the symmetry property of the auto-correlation function described above, this matrix equation becomes n(0) n(1) n(M) r(0) a(M) · · ·  n(1) n(0) n(M 1)   r(1)   a(M 1)  . . · · · .− . = .− , (3.10)  . . .   .   .               n(M) n(M 1) n(0)   r(M)   a(0)   − · · ·      which may beinverted to give the required response functionr. Since r may bethought of as a weighting of the components of the convolution, the M components of r are referred to as weights. When the noise function is a mixture of machine background and electronics noise, the weights typically do not have significant structure beyond M = 16. This allows for a reduction in the amount of computation required for feature extraction.

The ideal signal, a, is generated using knowledge of the pre-amp and shaping parameters, the analytic form for which is shown in equation 3.2. The noise auto-correlation function is calculated by taking the Fourier transform of the average power spectrum of the background. The background 3.3 Simulation software 67 consists of time windows of several crystals’ ADC output, which consist of the pre-amp/shaping response to the soft photon background hits, electronics noise and digitisation.

3.3.2.2 Digital filter performance

Figure 3-4. Resolution for 320 MeV photons at times ten nominal background with classical feature extraction (left) and matched digital filter feature extraction (right).

There are two aspects of the performance of the digital filter that are closely linked but must be assessed separately. The first is the noise observed on a given crystal’s readout. Here “noise” refers to machine background as well as electronics noise—indeed it is the latter which dominates. The average noise on individual crystals was estimated by observing the simulated noise width on a 20 MeV energy deposit made on each crystal. The results (averaged over all crystals) are shown in figure 3-3 where a comparison is made to the more usual technique of using a longer shaping time to average out the electronics noise. The other aspect is the resolution impact on energy deposits in the calorimeter and the number of spurious clusters which give rise to combinatoric background. In figure 3-4 the resolution for 320 MeV photons is shown assuming background levels ten times the expected nominal. The quoted resolution is the full width at half maximum/2.36. It can be seen that a significant improvement is gained by using the filtered feature extraction, both in terms of resolution and in the number of “fake” clusters around the signal peak that originate from background. 68 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

3.4 Reconstruction software

This section will describe the reconstruction chain in the calorimeter, from the creation of the most basic objects through to the association of particle hypotheses to individual energy deposits. At each stage, a discussion of some of the software engineering issues will be given in the context of their impact on the physics capability of the software.

3.4.1 Basic reconstruction

3.4.1.1 Clustering

The most basic task of reconstruction for a calorimeter is the identification of connected regions, or clusters. There are several ways to define these. One of the common methods is the definition of arrays of crystals (typically 3 3 or 5 5) in which some energy above a threshold is deposited. × × This is used for example in CLEO [60]. The endcap geometry in BABAR, whilst not precluding this approach, means that such a definition is not available everywhere in the calorimeter. For this reason, the BABAR definition of a cluster is essentially one of a contiguous region of crystals above a certain threshold. A comparison of the two algorithms may be found in section 4.2.2. The clustering algorithm The algorithm employed to do the clustering is as follows[65]: the highest energy crystal is used as a seed. Its neighbours are then added to a list for potential inclusion in the cluster. If any of these neighbouring crystals are above a certain threshold, then their neighbours are added to the list and the neighbours of these new crystals are searched for crystals above threshold. This continues until no more of the neighbouring crystals are above this threshold. The list of crystals for potential inclusion is then traversed and only those crystals above a second threshold are included. If the cluster itself then has a total energy greater than a third threshold, it is kept. The EmcCluster class The EmcCluster class is designed to encapsulate the aspects of an energy deposit in the calorimeter. The principal interface provides information on the energy, position and error matrix associated with the cluster. Its implementation is in terms of a collection of crystal energies (the EmcDigi objects described in section 3.3.1 and in more detail in [66]), which allow for the above quantities to be calculated. The position information is determined by a center of gravity method. The energy is simply the sum of the individual crystal energies. The error matrix is filled at present by estimation of the errors from Monte Carlo. Classes which use the crystal collection to provide information on the distribution of crystals within the cluster, and different estimations of the position of the cluster are also provided by the 3.4 Reconstruction software 69

EmcCluster class. This allows for the extension of the number of quantities so calculated without having to recompile all external code which depends on this class. EmcCluster is itself a subclass of AbsRecoCalo, a generic calorimetry class designed to provide a common interface between deposits in the EMC and the IFR. The AbsRecoCalo interface defines the pure virtual functions returning position, energy and error matrix, which are implemented as described above.

3.4.1.2 Bump splitting

The contiguous regions of crystals formed into clusters may well be the result of energy deposited by more than one particle if the angular separation of the particles is small. For this reason it is desirable to separate the clusters into regions containing one and only one local maxima. This is particularly true in high background conditions where the separation of the soft photon machine background from the physics data is important. Two distinct operations are involved in this division: the location crystals which are potential maxima, and the sharing of the energies of the other crystals in the cluster among these local maxima such that each local maximum then becomes a cluster like object with a collection of crystals, with each crystal having some fraction of the total observed energy originally deposited in that crystal. These local maxima with collections of “shared” crystal energies are called “bumps”. As the primary purpose of the electromagnetic calorimeter is to measure the energies of photons and electrons, the optimisation of the two processes was done based on an electromagnetic hy- pothesis. It is recognised that hadronic showers produce showers with fluctuations which could potentially mimic the behaviour of an electromagnetic maxima and it is this causing of “fake” bumps that the optimisation is designed to minimise. The creation of bumps does not preclude the use of clusters in an analysis, as algorithms in the analysis software to ensure that the same energy deposit is not included twice. This ensures that hadronic showers (for which the entire cluster should be treated as one entity) can be used side by side with the electromagnetically divided bumps. The EmcBump class The EmcBump class is a derivative of EmcCluster. This has two implications—the first is that it is necessarily a derivative of AbsRecoCalo, and can consequently be used in all code implemented in terms of that interface. The second is that all the implementation of the EmcCluster class is available to the EmcBump class where it is appropriate to use it. The implementation of the EmcBump class in terms of “shared” crystal energies permits re-use of all of the code written to calculate quantities in the EmcCluster. This is permitted by the construction of EmcBump objects with objects of a subclass of EmcDigi, EmcSharedDigi which, when asked for its energy, returns the raw crystal energy multiplied by a weight whose value lies between 0 and 1. The sum of weights for a given crystal is normalised to 1. The determination of that weight is described below. 70 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

The Bump Finding and Splitting Algorithms The optimisation of the bump finding and splitting algorithm is not definitive and may be subject to change as the scale of the machine backgrounds becomes known, or if the purpose of the splitting changes: for example a given analysis may wish to optimise for looking for photons close to electron showers, whose profile will be different to that of two photons in close proximity because of the bending of the electron trajectory caused by the magnetic field. For this reason, it is desirable to preserve the ability of the module responsible for bump creation to be able to change the method of both maxima location and cluster splitting at runtime according the type of optimisation required. To this end, two abstractions are employed: firstly an abstract local maxima finder which takes a cluster as input and outputs a list of the crystal indices of the local maxima. Secondly an abstract bump splitter whose purpose is to take the list of local maxima, divide the cluster by the creation of the shared digis described above, and return a list of newly created bumps. In this way, through the employment of a factory method [57], the Framework Module EmcMake- Bump is able to select a given algorithm for location and splitting by using only the above abstrac- tions, yet be configured with a particular instance of the algorithms from the factory according to a user specified string.

3.4.2 Track–cluster matching

The identification of charged and neutral particles is then undertaken after clusters have been isolated and, where appropriate, divided into electromagnetic maxima. The association of a given energy deposit to a track is not always unambiguous. Several cases complicate the process, for example hadronic showers which have a wide spatial distribution which result in a centroid some distance from the track impact point; bremsstrahlung from electrons which results in a mismeasurement of the track parameters; scattering in the DIRC which results in a different impact point in the EMC that would be expected from the track position at the end of the drift chamber. For this reason it was decided not to separate clusters into charged and neutral lists: moreover that the output for use in physics analysis should be associations between tracks and clusters at some confidence level. Further, it is envisaged that several algorithms for track matching will be developed over the course of the experiment. Consequently it is important that the output of these, and their interface to external code, is well defined. The classes used to achieve these goals will now be described. Association maps The matching between track and cluster at some confidence level necessitates a means of associ- ating many sets of three objects together, each set consisting of a track object, a cluster object and 3.4 Reconstruction software 71 a separate object containing information on the quality of the match between the two1. Further, it is envisaged that it will be possible to match more than one track to a cluster, and possibly more than one cluster to a track. Thus there is a need to provide a three-way, many to many association table. A mechanism of C++, known as templating, allows for such a table to be written independently of the objects that will go into the table. Thus, once written, the table can be used for other associations, such as that between Monte Carlo truth and reconstructed Monte Carlo particle candidates, or between EMC and IFR observations. Two such maps were written: one providing a many to many association between the sets of three objects, but providing only one-directional queries, and one providing bi-directional queries. Track matching algorithms The abstraction of the mechanisms used to match tracks to clusters is achieved by a class, EmcAbs- TrkMatchMethod which defines two methods, one for matching tracks to clusters, and one for the reverse operation. Subclasses of this one are responsible for implementing the details of the matching algorithms. The output of these classes is two association maps of the uni-directional type, matching tracks to clusters and vice versa. It has not yet been demonstrated that the flexibility of allowing different algorithms for the two different operations is necessary. An alternative option would be to define just one such method and use the bidirectional map. The Framework module, EmcTrackMatch, is allowed to choose between differing algorithms by the use of a factory method configurable by a run-time modifiable string parameter.

An original implementation looked within a 10 cm radius sphere around the impact point of the track for cluster centroids which were within this distance, using simple geometrical shapes to represent the inner surface of the calorimeter (cylinder for the barrel, cone for the endcap.) This has since been superseded after a detailed study [64], and the ease of incorporating the new algorithms serves as a demonstration of the flexibility of the design.

3.4.3 Particle identification

The calorimeter serves as the primary particle identification device for photons, π 0s and electrons. It is also expected to provide information to cross system identification of minimum ionising particles (both and non-interacting charged pions) and neutral . Some preliminary techniques for photon and π0 ID are discussed in chapter 4. This section will discuss the software framework developed for the implementation of particle ID in the calorimeter. The emphasis has been on using object oriented design to allow for the increase in the number of particles that can be identified as detector knowledge improves as well as allowing for the improvement and replacement of algorithms as increasing sophistication becomes available.

1A separate object to contain the quality information allows for the extension of the information contained within such an object (typically the minimum information is a significance level for the match) to be extended without alterations to the cluster or track class. 72 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

The class diagram for the particle ID design can be found in appendix B, figure B-3. The central components of the design are the EmcCand class, which encapsulates the concept of an observation or observations in the EMC which have been calibrated and have some particle identification information attached to them, an EmcPidInfo class which contains the information on the relative merits of the particular observed energy deposit(s) with respect to some particle hypothesis, the EmcCandidateMaker class which is responsible for constructing the EmcCands that may be appropriate to the hypothesis under consideration ( an example of this is the assembly of an EmcCand which consists of a Cluster or Bump plus a track as a possible electron candidate) and the EmcIdentifier class, an abstraction incorporating the concept of giving information about a given energy deposit under a certain particle hypothesis. These classes are now described in more detail. EmcCand The EmcCand class is a derivative of AbsRecoCalo. It contains one or more energy deposits in the form of EmcClusters (or derivatives) and also contains a place holder for a track object which may be empty. The usual functions of position, energy and error matrix access are overridden to provide calibrated forms of these quantities. The calibration is provided by implementations of the EmcAbsCalibrator class, discussed in section 3.4.4. Also provided is access to the EmcPidInfo object, discussed below. The primary source of EMC information provided to the BABAR analysis software is in terms of the calibrated EmcCands with particle identification information attached. EmcPidInfo The EmcPidInfo class allows for access to information regarding the compatibility of a given observation to the expected observation for a given particle hypothesis. There are three important aspects to this. The first is that the implementation places no restrictions on the number of hypotheses tested. Numerical results relating to the likeness of a particle with a given hypothesis are stored in a extensible dictionary of associations between the objects containing the particle type information and the numerical results themselves. This allows for more information to be stored in the object once the detector response to a certain particle type is well understood. The second is that both a confidence level (sometimes referred to as a “consistency” or “signifi- cance level”) and a likelihood value are provided for a given hypothesis. There is some discussion as to the relative merits of these (see for example [67]). Support for both approaches is desirable, since the likelihood method necessitates greater detector understanding (since the normalisation of it requires knowledge of the response to all known hypotheses), but provides more statistical power. Access to both of these is provided by the EmcPidInfo class. In addition, the value of the discriminating variable used is stored in this class. Thirdly, it is envisaged that particle ID information will not come from just one algorithm. For example, electron identification may be achieved simply by looking at the ratio of the energy of the cluster to magnitude of the momentum of the track that caused that cluster. This quantity is close to one for electrons and in general different from one for all other charged particles. Additional discriminating power will come from looking at the shower shape of the resulting cluster. Analysts will want to compare these algorithms, and combine the results from both to form “composite 3.4 Reconstruction software 73 algorithms.” This has two consequences. One is that there is necessarily a “default” algorithm for a given particle type. In general this will be the algorithm giving the best discriminating power, but is also a somewhat arbitrary choice among those algorithms that are “best understood.” The second is that comparisons between algorithms will be necessary. Thus the concept of asking for the confidence level that a given observation conforms to a given hypothesis using a particular algorithm is encoded into the EmcPidInfo class. In handling of the request for information when no algorithm is specified (i.e. the “default” algorithm), care is taken to ensure that the likelihoods so derived come from looking at the same (set of) discriminating variable(s). EmCandidateMaker The derivatives of this abstract class are responsible for constructing EmcCands which may con- form to the particle hypothesis in question. An example is the use of the charged track and cluster associations described in section 3.4.2 to construct EmcCands which can then be passed to the various subclasses of EmcIdentifier (see below) which deal with charged particles, or the isolation of single clusters which are not charged for use in neutral or π 0 identification. The purpose is to construct a list of EmcCands in the Event which will have calibration and particle ID information attached to them. How well these candidates conform to various hypotheses is the concern of EmcIdentifier subclasses. In general there will be more EmcIdentifier subclasses than those of EmcCandidateMaker. EmcIdentifier This abstract class has derivatives that are responsible for providing implementations which look at particular discriminating variables and provide information on the confidence level and likelihood for a given EmcCand under a given particle hypothesis. Usually this takes the form of comparing the properties of the EmcCand to a known probability density function and calculating the relevant mathematical quantities. (Classes have been provided in order to ensure that this calculation is consistent across different probability density functions.) EmcIdentifier subclasses contain strings which relate to the given algorithm they represent, as well as an object which relates to the particle type they are identifying. A specific subclass of EmcIdentifier, EmcCompositeIdentifier, employs a Template pattern [57] to allow the particular implementation to look at the results of several different identifiers and form a new conclusion based on this input. The most extreme example of this is a neural network. The subclasses of EmcIdentifier that are asked to consider the EmcCands in a particular event are controlled by a Framework module which uses a factory pattern [57] to obtain the derivatives of EmcIdentifier that are required. This module itself is coded entirely in terms of the abstract interface. This allows for the extension of the number of particle types identified and the number of algorithms used to identify them. 74 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER

3.4.4 Offline calibration

The energy deposits observed in the calorimeter will represent only some fraction of the energy of the incident particle at its point of creation. For electromagnetic particles, this fraction is about 95%, as a result of losses in the material before the calorimeter, notably the DIRC, leakage from the front and rear of the crystal and losses in the walls between crystals. It is necessary to apply a correction to the observed energy to “recover” these losses. In general this correction will be a function of energy, of polar angle, and of particle type. (Note that we may not wish to calibrate back to the incident energy, for example in the case of muons, but that some energy correction will need to be applied for all particle types is not in doubt.) The experiences of other experiments suggest that this correction, or calibration, will become a function of more and more variables as knowledge of the detector improves. An example for BABAR is that a correction for the azimuthal asymmetry of the DIRC may be applied to calorimeter clusters when sufficient data is available. Furthermore, an analyst running over a channel with a small branching ratio may wish to reprocess events with the best possible calibration, i.e. one that takes in all the known functionality, even if this were not available when the data were first taken. A final requirement is that the calibration system be such that the origin of the correction function be allowed to change such that the default is always the best most general purpose correction, but that if an analyst requires that for example the radiative bha-bha correction only be used, then that option is available to them. The requirement then is for a system that supports multiple algorithms, is extendible in its func- tional dependence and is retrospectively applicable. The coefficients of the functions used for the energy correction must be stored in the object-oriented database used by BABAR, Objectivity/DB[69]. This does not allow for storage of the functional form itself. The approach is to store the coef- ficients in the database, along with knowledge of the name of a transient class which contains the encoding of the functional form appropriate to those coefficients. In addition, the algorithm name used to generate the coefficients is stored and a map between the algorithm name and the coefficients is stored to provide the functionality of algorithm selection.

In addition, the usage of the database in BABAR dictates that the interaction with the database by client code be kept to a minimum. In practical terms, this means that objects in the database (persistent objects) are translated into objects in memory (transient objects) which are then used by client code. The advantages of this approach are threefold. Firstly, client code is not dependent on the details of the database. If the particular database implementation were to change this should affect only that code which is responsible for translating objects of one domain to the other. Secondly client code is not capable of manipulating persistent objects, which could result in data corruption. Thirdly, technical restrictions imposed by the database implementation (most notably in the area of what a persistent object may or may not contain) are confined to a specific set of data representation objects and do not permeate the whole code. The classes used to implement this will now be described in more detail. 3.4 Reconstruction software 75

3.4.4.1 Retrieval

EmcAbsCalibrator This class contains the pure virtual functions which take an EmcCluster as input and return the energy or position of that cluster according to the calibration information contained within the class. The functional form of the calibration is described by subclasses. Verification of a new version of a particular calibrator is performed by means of a virtual function whose default implementation is to check that the new calibrator is of the same type, has the same length and the constants are within 20% of the previous set. More complicated verification procedures may be implemented by subclasses. It is instances of this class’ derivatives that are given to EmcCands for calibration purposes. See section 3.4.3. EmcAbsCalibrator subclasses These implement particular functions for calibration, which assume knowledge of the coefficients that are given to them at construction time. They also override the default verification function if required. The creation of a new subclass would occur if either the function describing the calibration had changed or a different algorithm was being used to generate them, but is not necessary if only the coefficients have changed. EmcCalibratorP This class contains a persistent array of coefficients for a given calibration function, a persistent string which contains the name of the transient class (the EmcAbsCalibrator derivative) to which these constants pertain, and a third string to describe the algorithm used to derive the constants. Subclasses of EmcCalibratorP pertain to different algorithms and differ from the base class only in the content of the algorithm name string. EmcCalibProxy EmcCalibProxy provides the interface between clients of the EmcAbsCalibrator class and the database. The proxy mechanism is such that a given EmcAbsCalibrator subclass is held by the proxy and returned on demand until either the subclass relating to a different source of calibration data (referred to as an algorithm below) is requested, or the event time indicates that the current set of constants is out of date. Under these circumstances, the constants for a new derivative are retrieved from the database and a new transient EmcAbsCalibrator derivative constructed appropriate to these constants, using the information stored along with them. The specifics of this translation are referred to in more detail below. The general mechanism of proxies and its specific implementation in BABAR is discussed in [68]. EmcCalibratorDictionary This class provides a persistent map between the algorithm names and the persistent calibrators (which are actually EmcCalibratorP derivatives) and thus removes the need for clients to know about the subclasses of EmcCalibratorP. The mechanics are that the persistent map of EmcCal- ibratorPs and algorithm names is loaded from the database and each EmcCalibratorP translated 76 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER into a transient EmcAbs-Calibrator derivative. The persistent class contains a string which relates to a particular derivative of EmcAbsCalibrator, whilst the factory EmcCalibratorWarehouse is responsible for giving back the appropriate derivative based on this string. The dictionary then loads the constants it references in the EmcCalibratorP object into the transient EmcAbsCalibrator derivative. The appropriate derivative is passed back to the EmcCalibProxy based on the algorithm requested.

3.4.4.2 Storage

There are two aspects to the permanent storage. One is the ability to store the coefficients of the functional forms encoded in the EmcAbsCalibrator derivatives. The other is the ability to keep track of available calibration algorithms and of the default calibration. The classes EmcAlg- Description and EmcAlgListProxy are employed to perform the latter task, whilst these classes are used in conjunction with the EmcAbsCalibAlgorithm derivatives and EmcStoreCalibrator to perform the former task. EmcAlgDescription Persistent capable class containing a twenty character algorithm name and a flag indicating whether or not that algorithm is the default. These are placed in the database inside an EmcAlgBank object, while the transient equivalent used by client code is an EmcAlgList. These are nothing more than persistent (Bank) and transient (List) vectors. EmcAlgListProxy This class is responsible for the retrieval from the database of the relevant EmcAlgBank object pertaining to the event time. Its operation is very similar to the EmcCalibProxy in the sense that a persistent EmcAlgBank is translated into a transient EmcAlgList for client use, and this AlgList is replaced when the database indicates that a new version relating to the event time is available. EmcAbsCalibAlgorithm This class is responsible for generation of the constants to be stored in the database. This is envisaged as a long term, relatively complicated analysis or simply the reading in of the results of such an analysis (from a text file for example) for permanent storage. Each subclass of EmcAb- sCalibAlgorithm is responsible for the generation of a particular derivative of EmcAbsCalibrator with the appropriate contents. This object is then passed to EmcStoreCalibrator which performs the mechanics of storage. Each subclass of EmcAbsCalibAlgorithm must register itself with EmcCalibAlgRegister which is responsible for keeping record of the available algorithms and an indication of the default. EmcStoreCalibrator Singleton (see [57]) class responsible for the storage of an EmcAbsCalibrator derivative from a given algorithm. The algorithm name is used to obtain a particular subclass of EmcCalibP, via a factory method object EmcCalibPCreator. The persistent class is loaded the constants which 3.5 Chapter summary 77 are verified using the verification function in the EmcAbsCalibrator derivative and the resulting persistent object is stored, updating the persistent EmcCalibDictionary.

3.4.4.3 Offline calibration: summary

The rather complicated design described above achieves several things at once. Firstly it sepa- rates the client code (coded in terms of EmcAlgLists and EmcAbsCalibrators) from the database implementation, as required. Secondly, in the form of the EmcAlgList/Bank object, and the Emc-CalibDictionary’s map between the EmcAlgDescription objects and the EmcCalibratorP derivatives, the extensibility of the calibration scheme when new and more complicated algorithms become available is achieved. Thirdly, since these algorithms make no reference to time, they are by definition retrospectively applicable providing the information on which they are based is recorded in the database at the appropriate time. Fourthly, by providing differing implementations of the calibration functions while retaining the external code’s dependence on an abstraction, new and more complicated calibration functions can be applied without needing to change external code.

3.5 Chapter summary

The basic concepts of object oriented programming and the motivation for using it in BABAR software have been described. The implementation of the last stage of simulation i.e. the crystal and front end electronics response to an energy deposit has been described along with the theory and implementation of the matched digital filter which is to be used in feature extraction for the calorimeter. The principle components of the reconstruction software for the calorimeter have been discussed, in particular with reference to the use of object oriented design techniques to allow for increased functionality once a better understanding of the detector has been reached. This software development has encompassed the entire chain of reconstruction from the front end electronics output to particle identification and calibration. 78 SOFTWARE FOR THE ELECTROMAGNETIC CALORIMETER 4

Neutral particles in the electromagnetic calorimeter

4.1 Introduction

One of the primary purposes of the electromagnetic calorimeter is the energy measurement and the identification of photons and π0s. Many CP channels contain one or more π0s in their final states. Important examples are: B ρ π and B a1 π , measuring the angle α in the unitarity → ± ∓ → ± ∓ triangle, B J/ψK 0, B J/ψK0 and B D+D measuring β, and B π0π0, used to → ∗ → S → − → give an indication of the size of penguin contributions to the angle α. For π0 reconstruction the most simple approach is the straightforward combination of individual photon clusters. This approach is suitable for low energy π0s. However at higher energies, the two photons from the π0 decay combine to form one cluster. The fraction of π0s “merging” to form one cluster as a function of energy is shown in figure 4-1. For these cases, two approaches are available. The first is to attempt to divide the cluster into isolated electromagnetic maxima, as described in section 3.4.1.2. This will be discussed in section 4.2.3. This approach has fundamental limitations, however, since at the highest energies, the daughter photons from the π0 will approach each other such that the separation is less than two crystal widths. This makes the definition of such a pair as “isolated” electromagnetic clusters no longer possible. Table 4.1 shows the minimum separation of the daughter photons as a function of energy.

π0 energy Minimum photon separation (90o) Minimum photon separation (fwd region) (GeV) crystal widths crystal widths

0.5 10.7 22.0 1.0 5.29 11.0 2.0 2.63 5.6 3.0 1.76 3.70 4.0 1.32 2.79 5.0 1.05 2.21 80 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-1. Fraction of π0s whose daughter photons are sufficiently close to form only one cluster as a function of energy.

Therefore a second method is adopted which identifies characteristics of showers arising from the two daughter photons which distinguish them from single photon clusters. This is discussed in section 4.3.

Photon reconstruction is essential for low energy π0 reconstruction as well as being an important aspect in its own right. The average photon multiplicity in generic B decays is 5.5, and the overall B reconstruction efficiency falls off dramatically as the minimum detectable photon energy increases (see figures 4-2 and 4-3 )[70]. This task is made considerably more difficult in the presence of machine background, since a large number of soft photons are reconstructed that did not originate from the Υ (4S) decay. The number and energy spectrum of machine background photons is heavily dependent on the clustering pa- rameters used, and these will be discussed, and the performance of the BABAR clustering algorithm compared to that used in the CLEO calorimeter. The division of clusters to produce isolated electromagnetic maxima requires knowledge of the transverse profile of single photon clusters. The evaluation of this profile and the impact of the knowledge of it on π0 reconstruction will be shown. The adaption of the π0 identification technique to photons will be discussed and the possible use of the transverse profile as an aid to identification.

0 An example of these techniques, applied to the CP channel B J/ψKS will be shown in chapter 5. → 4.2 Reconstruction parameters 81

Figure 4-2. Photon energy spectrum for generic B decays at BABAR (upper plot) and from the most energetic decay, B π0π0(lower plot). The sturcture in the lower plot is purely statistical. → 4.2 Reconstruction parameters

4.2.1 Clustering parameters

The clustering algorithm has been described in chapter 3. The three thresholds which impact on the algorithm’s performance, both in terms of resolution and combinatorics from machine background, are the digi inclusion threshold, the seed threshold and the cluster energy threshold: these terms are now briefly recalled. If a crystal is over a seed threshold it is considered as a starting point for a cluster. The neighbours (including corners) of this crystal are then examined. If they are above an energy threshold, a digi threshold , they are included in the cluster. If any of these is above the seed threshold, then its neighbours are considered. This algorithm is applied recursively until no more crystals are above the seed threshold. The resulting assembly, if it passes a third energy cut, hereafter a cluster threshold , is added to the event cluster list. In addition, there is a sparsification cut in the hardware which allows only certain crystals to be passed through the digital filtering algorithm and read out. This is constrained by available bandwidth and the processing power required for digital filtering, not resolution or combinatoric background, its variation will not generally be considered here. The current algorithm used for study allows for crystals to undergo this process if they have an analogue energy of 10 MeV, or are neighbours of such a crystal. 82 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-3. Efficiency for B0 reconstruction (solid line) and π0 reconstruction (dashed line) versus minimum detectable photon energy.

The spectrum of energy deposits in individual crystals from machine background can be found in figure 3-2. An indication of the size of the problem is given by the fact that at ten times nominal machine background, approximately 3 GeV per physics event is deposited in the calorimeter in a time window equivalent to the trigger jitter during which feature extraction can occur. Latest data from PEP-II [71] indicate that the “nominal” levels of background are too low by a factor 5–7. Studies at ten times nominal machine background will therefore be included.

4.2.1.1 Digi and seed thresholds

The number of clusters observed in an event at ten times nominal background can be very large (see figure 4-4). The clustering algorithm was run with a standard 20 MeV cluster cut (the typical minimum energy of a cluster as defined in [60]), a varying seed cut and a varying digi cut. For comparison, a 5 MeV sparsification cut is shown. The number of clusters observed from machine background is largely independent of the digi inclusion cut. This observation will allow this cut to be optimised with respect to resolution only. The seed crystal cut shows a slightly greater impact on the number of clusters observed. This is especially when it approaches the same value as the digi inclusion cut. At such values, the background rate is such that clusters of several hundred crystals can form, and the clustering algorithm essentially fails. It is for this reason that the number of clusters falls at low seed energy cut values. In order to preserve efficiency, however, this cut should be as low as possible, i.e. the value above which it has no impact on the observed number of clusters. This is estimated to be 3 MeV for the current understanding of ten times nominal background. 4.2 Reconstruction parameters 83

Figure 4-4. Number of observed clusters above 20 MeV for ten times nominal machine background, for sparsification cuts of 5 MeV (top) and 10 MeV (bottom), and various seed crystal and digi energy cuts. The points have been separated horizontally for clarity.

Figure 4-5. Energy spectrum of clusters from ten times nominal background, using standard clustering parameters. 84 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

4.2.1.2 Seed and cluster thresholds

The distribution of energy of background clusters above 5 MeV is shown in figures 4-5. Using various seed energy cuts, the number of clusters per event as a function of cluster cut was deter- mined and the results are shown in figure 4-6. For reference, a set of points using a seed cut of 3 MeV but without the digital filtering used in the feature extraction are also included.

Figure 4-6. Number of observed clusters at times ten nominal background.

The number of observed clusters at this level of background is very large. The seed threshold has some effect of reducing this number, but no significant reduction is observed above 3 MeV. For this reason and the limit imposed by its effect in conjunction with the digi cut, the value of 3 MeV is adopted. While the cluster energy cut should be as high as possible to reduce this number, this has a severe impact on the overall B reconstruction efficiency, as noted above. The impact will be analysis dependent, and is evaluated for the particular case of B J/ψK 0 in chapter 5. → S

4.2.2 The CLEO clustering algorithm

The CLEO clustering algorithm as described in [60] is somewhat different to the one presently implemented. Firstly, a crystal must be above a certain threshold (10 MeV) to seed a cluster, and it must be a maximum amongst its neighbour crystals up to two deep. Passing these two criteria, 4.2 Reconstruction parameters 85 a cluster is then the collection of this maximum, its neighbours, and their neighbours. The energy is determined by taking the highest N crystals when N is 4 for energies less than 25 MeV, 17 for more than 4 GeV, and varies as the log of the ”raw” energy of the collection in between. Shared crystals are divided amongst the clusters according to the energy of their maxima. A comparison of the two algorithms’ resolution can be seen in figure 4-7. The fitted function is a parameterisation of the resolution curve developed at Novosibirsk:

sinh(τ) 1 log(1 + τ(E µ) √ ) f(E) = A exp − στ log 4 + τ 2 . (4.1) −2  τ       The parameter τ describes the tail on either side of the peak, being positive if the peak lies to the high energy side and negative otherwise. The parameter σ is the full width at half maximum divided by 2.36. This is the quoted resolution. An example of such a fit can be seen in figure 3-4. In the limit as τ 0, the function tends to a Gaussian. This function and three others used to describe energy→deposits in the calorimeter are discussed in [72]. The top plot shows the resolution with no background and nominal background, the lower 10 times nominal. A similar plot for efficiency can be found in figure 4-8. The top plot refers to no background, the lower to nominal and ten times nominal. Efficiency is defined as the fraction of observed clusters that have energies within 5 sigma of the nominal energy. Machine background photons are excluded, except in the case of 40 MeV photons, where the width is such that a very large number the background photons would be included in this definition.

The resolution distribution for 40 MeV photons is highly non-Gaussian, and their observation is extremely difficult in high background conditions. A study of the timing resolution on the individual crystals suggests that this may improve resolution [73], but this has not been investi- gated here. The mass resolution for 500 MeV π0 is shown in figure 4-9. This energy is chosen since approximately 99% of π0 at this energy deposit isolated photons in the calorimeter (see section 4.1), and the mass resolution is not, therefore, a function of the division of clusters into isolated electromagnetic maxima. The mass peak at ten times nominal background is dominated by combinatoric background and a straightforward combination of all observed clusters cannot be used at this background level. Analysis specific reconstruction techniques will have to be employed if the number of clusters cannot be reduced at this level of background. There is no significant advantage to either algorithm in the performance issues discussed here. The approach of allowing contiguous regions of arbitrary size allows for techniques such as the isola- tion of electromagnetic maxima (both to reconstruct π0s and also to reject machine background) and the use of complex cluster shape parameters in particle identification. As this approach does not present a significant performance disadvantage to the more conventional technique, it is adopted here. 86 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-7. Comparison of the CLEO clustering algorithm’s resolution to the projected perfor-

mance for the BABAR algorithm. Each set of four points corresponds to (left to right): CLEO algorithm taking all crystals (denoted ), CLEO algorithm with the number of crystals limited 4 according to the algorithm described in the text (2), BaBar algorithm taking all crystals (3), and BaBar algorithm with a limited number of crystals (O). The top plot assumes no machine background, the middle nominal levels and the lower plot ten times nominal levels. 40 MeV photons have too poor a resolution at ten times nominal background to be described well by the function given in the text and are omitted from the above plot. 4.2 Reconstruction parameters 87

Figure 4-8. Comparison of the CLEO clustering algorithm’s efficiency to the projected perfor-

mance for the BABAR algorithm. Each set of four points corresponds to (left to right): CLEO algorithm taking all crystals ( ), CLEO algorithm with a limited number of crystals (2), BaBar 4 algorithm taking all crystals (3), and BaBar algorithm with a limited number of crystals (O). The top plot assumes no machine background, the middle nominal levels and the lower plot ten times nominal levels. At nominal background, the 40 MeV photon resolution is such that too many machine background photons would be included in the efficiency calculation as described. The resolution (and therefore efficiency) cannot be determined at ten times nominal background for 40 MeV photons. 88 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-9. Comparison of the CLEO and BABAR clustering algorithms’ mass resolution for 500 MeVπ0s.

4.2.3 Cluster splitting parameters

As noted in section 4.1, a cluster, or contiguous region of crystals, may contain more than one electromagnetic maximum. The division of the cluster into isolated maxima, or bumps, is crucial. Firstly it provides an approach for the reconstruction of medium and high energy π 0s, above about 1.5 GeV. Secondly it provides a mechanism to remove extraneous machine background photons from an otherwise bona fide energy deposit. Thirdly it can provide additional information to particle identification, such as the case of an electron which has a bremsstrahlung photon close to the impact point in the calorimeter. The software described in chapter 3 allows for the original clusters to be preserved even after bump creation, which allows for the study of hadronic clusters which may fake electromagnetic maxima, or as an alternative way of reconstructing “merged” π 0s (see section 4.3). The location of electromagnetic maxima is performed by comparing the energy of a given crystal with its neighbours. The ratio between the energy of the potential maximum and the highest of its neighbours is usually large for electromagnetic showers (see figure 4-10). Similarly the ratio of the largest energy crystal to the average of those of its neighbours is also large (see figure 4-11). Using these criteria, the determination of electromagnetic maxima is then optimised such that the number seen in a photon sample is generally close to one, whilst trying to minimise the number of maxima seen in hadronic samples. In figure 4-12, the number of observed maxima is shown against the ratio required for those maxima to exist, both comparing a crystal with the neighbouring crystal of highest energy, and to the average energy of its neighbours. The importance of minimising the creation of “fake” maxima becomes clear in reconstruction of medium energy π0s. If the criteria for maxima location is too low, fake maxima create low mass photon pairs giving a large combinatoric background to the π0 sample. Using a simulated single 4.2 Reconstruction parameters 89 particle 2 GeV π0 sample, the maxima location criteria is optimised such that the combinatoric background from fake bumps is flat. The ratio of the highest energy crystal in the maximum to the highest of its neighbours in this case is in the region of 2.0, and the ratio with respect to the average energy of its neighbours approximately 7.0. As can be seen from figure 4-12, this corresponds to on average approximately 1 maxima being created for each photon in the event in both cases. The combinatoric background from both methods is then approximately equal. The comparison to the average energy of neighbouring crystals is slightly more efficient and is adopted. The division of the cluster into bumps associated with each cluster requires knowledge of the electromagnetic shower shape. The fraction of a crystal’s energy associated to a particular maxima, the weight, should be such that the lateral profile of the resulting bump is as close as possible to the lateral profile of a single photon. This has been determined by examining the energy assigned to crystals whose lateral separation from the centroid is outside a given distance, using 500 photon showers each of energies 40, 80, 160, 320, 1280 and 2560 MeV. Typical results are shown in figure 4-13. The functional form is a two component exponential as discussed in [74] with extra terms linear and quadratic in radial distance to account for geometry. Some larger geometrical effects are seen for very high energy showers. The evolution of the fit parameters in terms of energy was evaluated in terms of polynomials of order up to 3 to allow for the profile of a cluster of arbitrary energy to be determined.

Figure 4-10. The comparison of the highest energy crystal in a shower to the highest of its neighbours for medium energy (320 MeV) photons. (Left–bottom) The ratio of the highest energy crystal to the highest of its neighbours. (Top) The inverse of this quantity. (Right) The number of photon clusters whose highest energy crystal/highest energy neighbour crystal ratio exceeds a given value. 90 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-11. The comparison of the highest energy crystal in a shower to the average of its neighbours for medium energy (320 MeV) photons. (Left–bottom) The ratio of the highest energy crystal to the average of its neighbours. (Top) The inverse of this quantity. (Right) The number of photon clusters whose highest energy crystal/average energy of neighbours ratio exceeds a given value.

4.3 π0 and photon identification

4.3.1 Discriminating variables

A technique for π0 identification was developed for the Crystal Ball calorimeter [75] and is adapted here. The second moment of a cluster is defined as:

2 ΣiEiΘi θi S = , , Θi = . ΣiEi φi !

The definition in terms of polar and azimuthal angle differs from [75] and is preferred as the variation of this quantity with polar angle in the BABAR calorimeter is less marked than the Crystal Ball definition, and is more suited to a non-spherical geometry. The treatment in this process of each crystal as an individual energy deposit allows for the “mass” of a given energy deposit to be derived. If Sγ is the second moment of a photon of a given energy E, and S the second moment of a π0 cluster of the same energy, then

2 2 m 0 (S S )E , (4.2) π ' − γ the approximation becoming more accurate for a spherical, finely segmented calorimeter. The distribution of this quantity for a 3 GeV π0 sample is shown in figure 4-14. The second moment 4.3 π0 and photon identification 91

Figure 4-12. Number of maxima observed in one cluster for 320 MeV photons as a function of the ratio between the candidate maximum and (left) the highest energy neighbouring crystal and (right) the average energy of neighbouring crystals. provides a clear distinction between those π0s whose daughter photons form two distinct clusters and those which form one cluster. A distinct distribution for both types of occurrence allows the second moment to be adopted for both “merged” π0 identification and for photon identification. The probability density function for the second moment is fitted empirically to

f(x) = p exp( 0.5((x p )/p )2) + p (x p )2 exp((x p )/p ). 1 − − 2 3 5 − 4 − 4 6 The result of this fit for 2 GeV π0s is shown in figure 4-16. For π0s, the peak position is found to be energy dependent, as expected. This is not the case where the showers originate from single photons.

The evolution of the fit parameters with energy of the incident π0 was determined by evaluating the second moment distributions for 1–5 GeV π0 s at intervals of 1 GeV. The evolution of each parameter was then described by either a straight line or a quadratic fit. This allows for the determination of the appropriate probability density function (pdf) for a π 0 of arbitrary energy. As noted above, the second moment distribution is also suitable for identifying photons. The distribution was evaluated for photons of energy between 80 MeV and 5.12 GeV. Below 80 MeV, photon clusters are typically only one or two crystals, and this leads to the ill-definition of the second moment. The determination of efficiency and purity for these identification techniques is done by calculating the confidence level for the given observation to be consistent with the appropriate hypothesis. The 92 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-13. Lateral profile of photon clusters. The horizontal axis shows the lateral distance from the centroid in cm at the nominal shower maximum, and the vertical axis the fraction of the cluster energy contained outside that distance. Clockwise from top left are the profiles for 160 MeV, 320 MeV, 2.56 GeVand 1.28 GeVphotons. calculation is performed by integrating the pdf as described in [78] and discussed further in [79]. A full likelihood determination is not performed here.

Figures 4-17 and 4-18 show the efficiency for photon and π0 detection as a function of the probability for faking the other particle. Very high energy π0 ( 4 GeV and above) are somewhat ∼ difficult to distinguish from photons. However, the soft energy spectrum of photons in generic B decays allows for a relatively clean sample of π0s in this region. The lateral profile of electromagnetic clusters, discussed in section 4.2.3 in reference to cluster division can in principle be used for identification, since a true photon shower should have a profile consistent with the expected double exponential fall off. Consequently a given crystal’s energy should be predictable as a function of its distance from the centre of a cluster, and the total deviation from the expected energy for all crystals in a cluster should provide for discrimination between particle types. However, distinct distributions are not observed for different particle types 4.3 π0 and photon identification 93

Figure 4-14. Distribution of the second moment of clusters in a 3 GeV π0 sample. A clear separation of those π0s forming one cluster from those creating two (single photon) clusters is demonstrated by using the Monte-Carlo truth information.

Figure 4-15. Average squared deviation (in GeV2) of the observed energy of crystals in a cluster from the electromagnetic prediction for 1.28 GeV photons (top) and 4 GeV π0s (bottom). Different, but not well separated, distributions are observed. 94 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER

Figure 4-16. Second moment distributions for 2 GeV π0s. The fit function is described in the text. The peak position varies as 1/E2. ∼

Figure 4-17. Efficiency of identification against probability of mis-identification for photons at various confidence levels for the observed energy deposit to be compatible with the photon hypothesis. 4.4 Chapter Summary 95

(see figure 4-15), and as such this variable could only be useful as part of a multi-variant or neural network identification process. This is allowed for in the calorimeter particle identification framework described in chapter 3, but is not investigated further here.

Figure 4-18. Efficiency of identification against probability of mis-identification for π0s at various confidence levels for the observed energy deposit to be compatible with the π0 hypothesis.

4.4 Chapter Summary

The reconstruction of photons and π0s in the BABAR calorimeter has been described. The param- eters used in the clustering algorithm have been evaluated with respect to their performance in background conditions. The digi inclusion cut has almost no impact on the number of observed clusters originating from machine background, and so is preserved at a nominal 0.5 MeV, relating to 3σ of electronics noise. The seed cut for clustering does have a significant impact, and if it is too low (around the level of the digi inclusion cut) causes the clustering algorithm to fail. A level of around 3 MeV is preferred. The cluster energy cut provides an efficient mechanism of reducing machine background but has a severe impact on B reconstruction efficiency, and is therefore evaluated with respect to specific analyses (see for example section 5.5.3). The BABAR clustering algorithm has been evaluated against the CLEO algorithm, and is found not to present significant differences in resolution or efficiency.

Two methods of π0 reconstruction have been evaluated: reconstruction by combination of isolated photons and two photon cluster division, and by showershape analysis on two photon clusters. The optimisation of the cluster division with respect to the typical lateral profile of photons in the BABAR calorimeter has been described and its effect on π0 reconstruction shown. The use of the second 96 NEUTRAL PARTICLES IN THE ELECTROMAGNETIC CALORIMETER moment of a cluster to identify merged π0s has been evaluated and been shown to provide good discrimination between photon and π0 clusters, as well as a means of identifying photons. A study using the lateral profile of photons as a form of identification indicated insufficient discriminating power to be used as a single discriminating variable. 5

Study of the channel B0 J/ψ K0 l+l π0π0 → S→ −

5.1 Introduction

The decay b ccs represents a theoretically clean environment for measuring the angle β of the → unitarity triangle. The weak (CP violating) phase for this transition from the tree diagram is the same as that from the dominant penguin contribution (see figure 5-1). Other penguin contributions

Figure 5-1. Tree (a) and penguin (b) diagrams for B0 J/ψ K0. → S are doubly Cabbibo suppressed by a factor sin2 θ . Therefore to a good approximation the ratio ∼ c 98 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

λfCp defined in equation 1.52, q A λ = = 1. | fCP | p A Under these circumstances, the time dependent asymmetry defined in equation 1.55 is given by

a (t) = Im(λ ) sin(Mt). (5.1) fCP − fCP For B0 J/ψ K0, λ is given by → S fCP V V V V V V λ = tb∗ td cs∗ cb cd∗ cs fCP − V V V V V V  tb td∗   cs cb∗   cd cs∗  the terms arising from B mixing, the decay itself and K mixing respectively. Recalling the definition of β, V V β = Arg cb∗ cd , − V V  td tb∗  it immediately follows that

Im(λfCP ) = sin 2β.

The B0 J/ψ K0 decay in the above equation is experimentally the simplest method of extracting → S sin 2β. The J/ψ is reconstructed in the lepton channel, which has a branching ratio of 0.1203 ± 0.0019 [9] which provides for a very clean signal. The K 0 is looked for in the decay mode K 0 S S → π0π0, which has a branching ratio of 0.3139 0.0028, which is to be compared with the dominant + ± mode (π π−) of 0.6861 0.0028[9]. This mode gives an important test of the performance of the calorimeter software discussed± in chapters 3 and 4, as well as making a contribution to the experimental sensitivity to sin 2β. The latest data on the branching ratio of B J/ψ K 0 [80] → indicate a branching fraction for this mode as 4.3 0.1 10 4. ± × −

5.2 Reconstructing the J/ψ

5.2.1 Tracking requirements

The BABAR tracking software is described in [76] and a recent assessment of its performance can be found in [31]. Tracks are found independently in the drift chamber (DCH) and silicon vertex tracker (SVT). SVT tracks are required to have hits in four of the five layers. DCH tracks are required to have hits in all ten superlayers which are subsequently fitted to a helical track, or have hits in three layers, which are fitted to a helix, which is then projected into the rest of the chamber, adding track segments until the track can no longer be considered of sufficient quality. The former algorithm is more efficient for high pt tracks, the latter for lower pt tracks. SVT and DCH tracks are then projected to a radius of 20 cm, corresponding to the location of the support tube, and matched where appropriate. 5.2 Reconstructing the J/ψ 99

5.2.2 J/ψ reconstruction

The J/ψ is reconstructed in the channel J/ψ l+l . All pairs of oppositely charged good tracks → −

Figure 5-2. J/ψ efficiency as a function of upper and lower mass cut. The effects of acceptance are excluded. In each case the other mass cut is held constant at the nominal value described in the text. are considered. The mass resolution for the J/ψ (see figure 5-3) is expected to be 12 MeV when the J/ψ is reconstructed in both lepton channels. The resolution is expected to improve once the bremsstrahlung photons from the electrons are included, but this study is not performed here. A wide cut, 3.0 < m + < 3.2 GeV is therefore placed on the mass to include the lower mass l l− candidates caused by this effect. In addition the J/ψ is constrained to have a momentum in the centre of mass frame of between 1.47 and 1.90 GeV/c. This cut is 95 1% efficient for signal ± J/ψ , but is 18 3% efficient for candidates from generic B meson, and 14 2% for those from ± ± the qq continuum. The distributions for these quantities are shown in figures 5-4 and 5-5. A cut is then made on the probability that the tracks originated from a common vertex. The BABAR package 3 RecVtx [77] is used for this purpose. This probability is required to be greater than 10− . This cut is 93 1% efficient for signal J/ψ , while rejecting a further 25 5% of fake J/ψ from both generic ± ± B decays and for continuum background. Some efficiency is lost again due to bremsstrahlung in the electron decay mode. 100 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

Figure 5-3. J/ψ mass resolution. The fit is to the Novosibirsk function (see chapter 4) to account for the lower mass caused by electron bremsstrahlung. The width is 12.1 MeV.

0 5.3 Reconstructing the KS

The K0 has a lifetime of 8.934 0.008 10 11s, and in the lab a typical momentum of approx- S ± × − imately 3 GeV, giving it a flight length of around 8 cm. The technique to account for this long flight length, described for the ideal case of four isolated photons in [81], is used and adapted for the case of merged π0s, as will now be described. A complete set of π0 candidates is formed from combinations of all pairs of clusters consistent with an electromagnetic shape in the calorimeter whose invariant mass lies in the range 100 MeV/c to 145 MeV/c, and all single clusters consistent with a merged π0 shape, as described in chapter 4. Consistency is demanded at the 0.1% confidence level. The invariant mass for cluster pairs is 0 0 shown in figure 5-6. π pairs are then combined to form candidate KS s, which are at this stage 2 2 required to satisfy 380 MeV/c < m 0 < 550 MeV/c , where the mass is calculated at the decay KS point of the J/ψ . These cuts are necessarily loose in order to accommodate the error in their calculation due to the flight length. 0 5.3 Reconstructing the KS 101

Figure 5-4. Mass and centre of mass momentum distribution for signal J/ψ candidates from 2000 simulated events.

Figure 5-5. Fake J/ψ mass and momentum distributions from (left) continuum and (right) generic B meson decays. 10000 events were simulated. 102 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

The reconstructed J/ψ momentum and the assumed momentum of the B meson are then used to 0 estimate the KS direction. The small transverse momentum of the B is ignored. Points along this 0 0 direction are considered from -2.0 to +5.0 τK S in steps of 0.1 τK S . 0 0 At each point, if the two π s constituting the candidate KS each decayed into isolated photons, the invariant mass of each cluster pair is calculated. The position at which the invariant mass 0 0 is closest to the π mass is used for each pair. The KS candidate is considered if the absolute

Figure 5-6. Two cluster invariant mass distribution for all cluster pairs (left) and for signal cluster pairs (right).

0 difference in these times for the two π candidates is less than 3τ 0 and the invariant masses of KS 0 2 2 the π s so formed lie in the range 110 MeV/c < mπ0 < 160 MeV/c . Any candidate whose best lifetime falls at either end of the range described above is also rejected. The distributions for the best lifetime and absolute difference in lifetimes are shown in figure 5-7. Approximately 2/3 of 0 0 KS decays in this channel give 4 isolated photons. The KS decay point is taken as the mean of 0 0 the two best pion π decay points. The KS candidate itself is constructed by combining the four photon clusters at this point.

0 0 0 If one of the π s constituting the candidate KS is a merged π , the invariant mass of the cluster pair forming the other π0 is calculated at each point. The point at which the mass difference of the cluster pair and the π0 mass is minimal is kept, again providing that it does not lie at the extremes of the range described and that the mass of the π0 so formed lies in the above range used for the 0 case of 4 isolated photons. Almost all of the remaining 1/3 of KS candidates have one merged and 0 5.3 Reconstructing the KS 103

0 Figure 5-7. (Left) Distribution of the KS decay points as determined by the formation of the 0 0 0 best π mass for a cluster pair. The top plot is for π s coming from signal KS s, the lower from 0 fake KS candidates. The spikes at -2 and +5 in the lower plot are caused by those candidates for which a best mass could not be determined between these times. (Right) Distribution of the absolute difference between the two decay points determined for each candidate. Again the top 0 0 plot is for signal KS , and the lower one for fake KS candidates. The small spike at 7.0 is due to those candidates whose best decay points were at the extremes of the range described above.

0 0 one unmerged π . The KS candidate is constructed in this case by combining the three clusters, where the merged π0 cluster is assigned the π0 mass. If both of the π0s are merged, then the invariant mass of the pair is calculated at each point. The 0 point at which this is closest to the KS mass is chosen. Again if this point is at the extremes of the 0 range described the candidate is rejected. No constraint is imposed on the KS mass at this point. 0 The fraction of KS decays falling into this category is less than 1%. 0 The centre of mass momentum is then calculated for the KS candidate constructed as described above. The resulting distribution is shown in figure 5-8. The candidate is then required to have a centre of mass frame momentum lying in the range 1.4 GeV/c < p∗ < 2.0 GeV/c. This cut is 0 | | 0 99.7% efficient for signal KS , and rejects over 90% of combinatoric background. The KS mass of the candidate (shown in figure 5-9) is calculated at each point and the resulting overall mass resolution was found to be 15.7 MeV/c2. The effect of using only one π0 decay point for the case 104 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

0 Figure 5-8. Distribution of centre of mass momentum of (left) all KS candidates and (right) signal candidates. of one merged π0 and two isolated photons introduces a small bias to higher masses, as no account 0 is made of the resulting KS mass when deciding on the decay point. A full kinematic fit including 0 0 a constraint on the KS mass could be used in this case, but a widening of the KS mass window 0 allowed was found to be sufficient. Observed KS candidates were kept if the mass was in the 2 2 range 440 MeV/c < m 0 < 560 MeV/c . KS

5.4 Reconstructing the B0

0 0 B candidates are constructed from all possible pairs of J/ψ and KS candidates reconstructed in the way described above. Each J/ψ candidate is set to the the J/ψ mass while preserving the 0 0 measured momentum. Similarly each KS candidate is set to the KS mass while preserving its 0 2 energy. B candidates so formed are required to lie in the mass range 5.0 GeV/c < mB0 < 5.5 GeV/c2 and to have a centre of mass momentum of between 0.2 GeV/c2 and 0.5 GeV/c2. This procedure yields on average 1.9 of B0 candidates per signal event, due mainly to the combi- 0 natorial background arising from the KS reconstruction procedure. In each event, the candidate 0 0 closest to the B mass is kept. In just under 40% of events, this results in an incorrect KS candidate making up the B0. However, it is the measurement of the B decay vertex that is required (see 5.5 Backgrounds 105

0 Figure 5-9. KS mass distribution calculated at the decay vertex for non-signal (left) and signal (right) combinations. section 5.6.1), and this position comes from the J/ψ decay point. Therefore the inclusion of such a candidate is valid, providing the correct J/ψ has been used. In events where a signal candidate is present, an incorrect J/ψ candidate is selected by this method in less than 0.2% of events. The overall reconstruction efficiency to reconstruct a B0 candidate with the correct J/ψ is found to be 25.0 0.7%, where the error quoted is purely statistical. ±

5.5 Backgrounds

0 5.5.1 Combinatorial backgrounds and J/ψ KL

As discussed above, an average of 0.9 fake B candidates are observed per event. It is essential to establish their origin since, if their origin is independent of the signal channel, events from the 0 0 0 0 decay B J/ψ KL reconstructed with a fake KS in place of the KL would allow for a large → 0 background of opposite CP asymmetry to the KS channel. The composition of fake B candidates is shown in figure 5-10. Approximately 2% originate from 0 combinations of photons that do not come from the KS , while less than 1% of these have the 106 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

Figure 5-10. Origin of the photons in fake B candidates in 2000 signal events. The number of 0 photons that originated from the signal KS and subsequently used to construct the B candidate is 0 shown. Those candidates with 4 such photons have the correct KS but a fake J/ψ . Candidates 0 with 0 such photons have the KS constructed entirely from photons from the other B meson decay in the event. It can be seen that the large majority of events require at least one photon from the 0 signal KS in order to fake a B candidate.

0 correct KS but an incorrect J/ψ . The selection of the candidate whose mass is closest to the B mass reduces these contributions further. The high fraction of combinatoric background candidates 0 0 0 containing some fraction of the signal KS indicates that the B J/ψ KL channel, which would →0 otherwise present a significant physics background if a fake KS were available to combine with the J/ψ from this decay, will not give a significant contribution to the final event sample.

5.5.2 Physics backgrounds

Previous studies [81] using the BABAR fast Monte Carlo, Aslund, indicate that the background from B0 J/ψ X, where X is anything except a K 0, is dominant over that from other sources (semi- → S leptonic decays of the B0, qq continuum) by a factor of 3. 6000 J/ψ X events were passed through the above analysis, where the J/ψ was forced to decay into leptons. One event was observed to pass the cuts. At the 95% confidence level, this corresponds to a signal to background ratio of 10:1. 5.5 Backgrounds 107

Cluster threshold Relative efficiency (MeV)

20 0.98 30 0.95 40 0.89 50 0.83 0 + 0 0 Table 5-1. Relative reconstruction efficiency for the channel B J/ψ KS l l−π π as a → → function of cluster energy cut at nominal machine background

The reconstruction efficiency for signal events using the fast Monte Carlo is found to be optimistic by approximately 30%. The reconstruction efficiency for B0 J/ψ X found here is consistent → with this factor: the fast Monte Carlo study indicates an efficiency of 7 10 4, the above figures × − indicate an efficiency of 5.5 10 4 at the 95% confidence level. No significant deviation therefore × − is expected from the observation that B0 J/ψ X is the dominant background for this channel. →

5.5.3 Machine backgrounds

The soft-photon background caused by the lost beam particle collisions with the beam pipe and interaction region magnets causes a large combinatoric background which can be decreased by increasing the energy threshold required for a calorimeter cluster to be included in the analysis. 2000 signal event samples were simulated with overlaid machine background at nominal levels. These were then reconstructed with cluster thresholds of 20 (standard), 30, 40 and 50 MeV. The overall relative B reconstruction efficiency is shown in table 5-1 where the figures are normalised to the reconstruction efficiency obtained in the case of no machine background. Once the cluster inclusion threshold is raised above 30 MeV, the dominant effect is the exclusion of signal clusters. A small effect is observed for higher background whereby candidates which would otherwise be excluded from the final sample are kept due to the additional energy attributed to signal clusters by machine background photons. Though small, this is an undesirable effect and indicates a lack of proper calibration at the higher background level. Such effects will be properly accounted for once the running conditions are known. At present, the calibration assumes a zero background level. 108 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → − 5.6 CP reach

Measuring the CP violating asymmetry af (t) in equation 5.1 requires knowledge of the proper 0 time t between the decay of the B meson decaying to J/ψ KS (the CP B) and the other B meson from the Υ (4S) decay (the tag B), and the establishment of the b quark flavour of the tag B itself.

5.6.1 Measuring ∆t

The measurement of the proper time between the decays requires that the position of the decays of the two B mesons be established. The maximum transverse momentum of the B mesons is 300 MeV/c. The boost of the Υ (4S) at BABAR means that this component may be disregarded, and consequently only the measurement of the z distance between the two decays is required. The CP B decay vertex is given by the J/ψ decay vertex. This vertex is constructed using the RecVtx package, and the resulting resolution is shown in figure 5-11.

Figure 5-11. The z resolution of the J/ψ vertex. The fit is to two Gaussians, the upper having a width of 45 µm, the lower 320 µm. The ratio of areas is 3.5:1 5.6 CP reach 109

For each reconstructed B0 candidate in the signal channel, the remaining tracks in the event are passed to the BABAR standard tag-side vertexing algorithm [82]. The outline of this algorithm is summarised here.

Tracks used to reconstruct the signal B0 are discarded. Of the remaining tracks, the default identified candidates are examined and any tracks retained to construct a tag B candidate. If no such tracks are found, the default electron, charged pion and charged kaon candidates are examined in turn. The y co-ordinate of the J/ψ vertex is not used as the resolution on this point (see figure 5-12) is worse than the projected beam spread in the y direction (see section 2.2.4) and

Figure 5-12. J/ψ vertex resolution in the y direction. A two Gaussian fit is used and the resulting widths are 45 and 221 µm with area ratios 20:3. This is considerably larger than the vertical beam size. so the impact parameter (distance of closest approach) of these tracks to a line in the z direction through the point (x, ybeam) is calculated, where x is the co-ordinate of the J/ψ vertex and ybeam was set to zero in the Monte Carlo used. The z co-ordinate of the point of distance of closest approach in the x, y plane is then used. Cuts on angular acceptance, vertexing probability and invariant mass of the resulting tag B0 candidate improve resolution on this vertex. However, the overall CP reach is dominated by the low statistical power of the channel and no such cuts were imposed. 110 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → −

Figure 5-13. Tag side vertex resolution. A two Gaussian fit yields widths of 108 µm and 316 µm, with an area ratio 1.1:1.0.

The obtained tag-side vertex resolution is fit to two Gaussians. The widths are 108 µm and 316 µm, with an area ratio 1.1:1.0. (see figure 5-13). No loss of efficiency is experienced in obtaining the vertex for the tag side.

5.6.2 Determination of the b quark flavour

A sophisticated multi-variable analysis tool, CORNELIUS [83], is in standard BABAR use to provide information on the b quark flavour. The general approach is now described. The determination of the b quark flavour is performed by looking for charged decay products whose sign is correlated with the b quark flavour. The most useful processes for this are b → cW , c W +s, s K , and b W X, W l ν, where the sign resulting kaon or lepton − → → − → − − → − gives the b flavour. The identification of kaons uses the DIRC particle identification device and dE/dx information for lower momentum particles. The identification of leptons in semi-leptonic decays uses several variables (transverse momentum, transverse energy, missing momentum). The overall efficiency  for this determination is currently expected to be approximately 40% for leptons and 20% for kaons ([31], chapter4). Cascade decays of the resulting charm or W can give an s quark or lepton in the final state which has the wrong sign. The result of a fraction ω 5.7 Chapter Summary 111 of events where the wrong sign is attributed to the b is a dilution of the tagging purity by a factor 2 2 1 (1 2ω) . The overall resolution on a given CP asymmetry is degraded by a factor ((1 2ω) )− 2 . − − Determinations of the factor (1 2ω)2 currently estimate this to be in the range 40% (for channels with either a lepton or a kaon), −and 60% (for channels with both a kaon and a lepton). The overall 2 1 factor ((1 2ω) )− 2 averaged across all channels is approximately 35%. −

5.6.3 CP reach

In its most simple form, the asymmetry af (t) can be determined by enumerating the number of events N(N ) which have a flavour tag of B(B) in a particular proper time difference interval t. The asymmetry for that interval is then determined easily:

N N a (t) = − (5.2) f N + N ∆t

from which a fit to the overall asymmetry can be made to determine the quantity sin 2β. The overall CP reach is a function of the CP violating angle itself, the overall z resolution, and the B0 mixing parameter x = m/. The expected error for Ns signal events with an asymmetry As with Nb background events with an asymmetry Ab is given by [31], p218,

σ0(sin 2β, xd, σz) 1 + Nb/Ns σsin 2β = . (5.3) √N (1 2ω)2 1 + (AbNb/AsNs) s − p The value of σ0, which can be thought pof as the contribution to the error from a single event with perfect b quark flavour determination and no background, is drawn from tabulated values [84]. 1 For a nominal years running at an integrated luminosity of 30fb− , the expected error on a sin 2β 0 value of 0.7 is 0.34. The equivalent figure for the charged pion decay mode of the KS is 0.10 [31].

5.7 Chapter Summary

The reconstruction of the decay B0 J/ψ K0 l+l π0π0 has been described. The overall → S → − efficiency for obtaining a candidate B0 with the correct J/ψ is 25.0 0.7%. It has been shown ± that such candidates are valid to measure the angle β in the unitarity triangle even in the cases 0 where an incorrect KS has been reconstructed. Relevant backgrounds from physics channels have been evaluated and shown to contribute no more than a 10% contamination. The effect of machine background at nominal levels has been evaluated. Efficiency falls by approximately 17% if the cluster energy threshold described in chapter 4 needs to be raised to 50 MeV. A discussion of the techniques necessary to make a CP measurement has been given, and the overall CP reach for this channel evaluated to give an error on sin 2β of 0.34 after 1 year’s running at design luminosity corresponding to the observation of 68 8 events per year. This is to be compared to an error on ± 0 sin 2β of 0.10 from the charged pion decay of the KS . 112 STUDY OF THE CHANNEL B0 J/ψ K0 l+l π0π0 → S → − 6

Conclusions

Certain decays of neutral B mesons are expected to exhibit a large CP asymmetry. The BABAR experiment, to be operated at the PEP-II asymmetric storage ring, is designed to make precision measurements of this phenomenon, as well as determinations of non-CP violating parameters in the B system, in order to over constrain the unitarity triangle to allow for a test of the accommo- dation of the CP violation phenomenon in the standard model.

The electromagnetic calorimeter is a key component in the BABAR experiment. The chosen tech- nology of Thallium doped Caesium Iodide crystals in a carbon fibre support will provide unprece- dented resolution. It is crucial that all elements from readout to reconstruction software maximise this physics potential. A framework of software has been developed which takes the basic readout from the front end electronics and converts it through several stages to a form suitable for physics analysis. This software employs new techniques to maximise physics potential. Firstly, the BABAR standard language of C++ is adopted. This allows for the employment of Object Oriented analysis and design, which in turn allows for more robust software and decreased maintenance. Secondly, the application of object oriented design has allowed the construction of a complete chain of reconstruction software for the calorimeter—the finding of clusters, the division of clusters into potential electromagnetic maxima, the matching of energy deposits to reconstructed tracks, par- ticle identification and global calibration—in such a way as to provide a functional framework which is at the same time completely extensible for increased physics capability. In addition, the simulation software necessary to recreate the front end electronics output given a known energy deposit in each crystal has been written. This incorporates a simulation of the matched digital filter used in crystal energy extraction, and this has been shown to be effective in improving resolution and decreasing the number of extraneous energy deposits due to machine background.

0 0 The software has been employed in a study of the CP violating channel B J/ψ KS + 0 0 0 → 0 → l l−π π . Particle identification for photons and merged π s, necessary to reconstruct the π s in the energy range for this decay was developed and employed. The complete software chain from front end electronics simulation to calibration was demonstrated to be functional. The overall B0 reconstruction efficiency for this channel is projected to be 25 0.7%, which results in an 1± uncertainty on sin 2β of 0.34 after a nominal year’s running (30fb− ). 114 REFERENCES

References

[1] J.H. Christenson, J.W. Cronin, V.L. Fitch and R. Turlay, Phys. Rev. Lett. 13 (1964) 138.

[2] A. D. Sakharov, ZhETF Pis. Red. 5 (1967) 32; JETP Lett. 5 (1967) 24.

[3] M. Kobayashi and T. Maskawa, Prog. Th. Phys. 49 (1973) 652.

[4] Z. Xing, Phys. Rev. D 53(1996) 204

[5] CP Violation, ed. L. Wolfenstein, from the series “Current Physics Sources and Comments” and references therein (North Holland, Amsterdam, 1989).

[6] L. Wolfenstein, Ann. Rev. Nucl. Part. Sci. 36 137

[7] I. Manelli, Rivista del Nuovo Cimento 8, No. 7, 1

[8] K. Kleinknecht, Ann. Rev. Nucl. Part. Sci. 26 1

[9] C. Caso et al., The Particle Data Group, The European Physical Journal C3 (1998) 1

[10] G. D. Barr et al., NA31 Collaboration, Phys. Lett. B 317 (1993) 222

[11] L. K. Gibbons et al., E731 Collaboration, Phys. Rev. Lett. 70 (1993) 1203.

[12] I. I. Bigi, V. A. Khoze, N. G. Uraltsev and A. I. Sanda, in CP Violation, ed. C. Jarlskog (World Scientific, Singapore, 1992)

[13] H. Albrecht et. al., The ARGUS Collaboration, Phys. Lett. B, 192 245

[14] M. Peskin and D. Schroeder, Introduction to Quantum Field Theory, Addison- Wesley Publishing Company (1995), in particular the latter half of chapter 3

[15] R. D. Peccei in CP Violation, ed C. Jarlskog, (World Scientific, Singapore, 1989) p. 503

[16] M. Neubert, Int. Jour. Mod. Phys. A, 11, No. 23 (1996) 4173

[17] J. D. Richman, “Heavy Quark Physics and CP Violation”, given at Les Houches summer school 1997, to appear in proceedings

[18] Cheng and Li, Gauge Theory in Elementary Particle Physics, Oxford Univer- sity Press (1984)

[19] M. Kobayashi and T. Maskawa, Prog. Theor. Phys. 49, No. 2 652

[20] C. Jarlskog, Z. fur¨ Phys. C. 29, pp. 491-497 and Phys. Rev. Lett. 55 1039.

[21] N. Cabbibo, Phys. Rev. Lett. 10, 531 (1963) REFERENCES 115

[22] L.Wolfenstein, Phys. Rev. D. 39 No. 9 2381 and Phys. Rev. Lett. 51 1945

[23] I. Dunietz and J. L. Rosner, Phys.Rev. D. 34 No.5, 1404.

[24] I. I. Bigi and A. I. Sanda, Nucl. Phys. B. 193 85 and Nucl. Phys. B. 281 41

[25] X-G .He, Phys. Rev. D. 53 6326 and references therein.

[26] Y. Nir and Helen R. Quinn, Ann. Rev. Nucl. Part. Sci. 42 (1992) 211

[27] C. O. Dib, I. Dunietz, F. J. Gilman and Y. Nir, Phys. Rev. D 41 No. 5, 1522

[28] R. Godang et al., The CLEO Collaboration, Phys. Rev. Lett. 80 3456 (1998)

[29] M. Gronau and D. London, Phys. Rev. Lett. 65 3381 (1990)

[30] F. Parodi, P. Roudeau and A. Stocchi, “Constraints on the parameters of the VCKM matrix at the end of 1997”, LAL 98-49 and given at ICHEP 98, to appear in proceedings

[31] D. Boutigny et al. The BABAR collaboration, “Physics at the BABAR experiment”, eds P. F. Harrison and H. Quinn, (in prepraration)

[32] P. Paganini, F. Parodi, P. Roudeau and A. Stocchi, “Measurement of the ρ and η parameters of the VCKM matrix and perspectives”, LAL 97-79 [33] J. P. Alexander et al. (The CLEO Collaboration)

[34] H. Schroder, “BB Mixing”, in B Decays, ed. S. Stone, World Scientific (1994)

[35] PEP-II, An Asymmetric B-Factory, Conceptual Design Report, SLAC- 418/LBL-PUB-5379/CALT-68-1869/UCRL-ID-114055/UC-IRPA-93-01

[36] P. J. Oddone, in Proceedings of the UCLA workshop: Linear collider BB Factory Conceptual Design, p. 423

[37] The Physics Program of a High Luminosity Asymmetric B Factory at SLAC, ed. D. Hitlin, SLAC-353/LBL-PUB-5245/CALT-68-1588 (1989)

[38] Proc. of Workshop on Physics and Detector Issues for a High Luminosity Asymmetric B Factory at SLAC, ed. D. Hitlin, SLAC-373/LBL-30097/CALT- 68-1697 (1990)

[39] B Factories: The State of the Art in Accelerators, Detectors and Physics, ed. D. Hitlin, SLAC-400 (1992)

[40] A. Garren et al., in Proceedings of the 1989 IEEE Conference, Chicago (p. 1847)

[41] M. Sands, Physics of Electron Storage Rings, SLAC-121 (1970) 116 REFERENCES

[42] S. Henderson, CLNS 97/1528, (1997)

[43] D. Coupal, BABAR Note # 210 (1995), BABAR Note # 178 (1994)

[44] K. L. Brown and F. C. Iselin, TURTLE (Trace Unlimited Rays Through Lumped Elements), CERN 74-2 (1974) and D. C. Carey et al., Decay TURTLE, SLAC-246 (1982)

[45] GEANT Detector Description Tool, v3.21, CERN Program Library W5103, CERN (1994), R. Brun et al., Simulation program for particle physics experiments, GEANT : user guide and reference manual, CERN DD-78-02

[46] A. Snyder, The Effect of Vertex Cuts on CP reach, BABAR Note # 177 (1994)

[47] P. Gaidarev et al. (The CLEO Collaboration) Nucl. Instr. Methods A 379 (1996) 396, B. Mours et al. (The ALEPH Collaboration) Nucl. Instr. Meth- ods A 379 (1996) 101, A. McKemey et al. Nuo. Cim. 109A (1996) 1027. For an update on the performance of the latter two devices, see D. Creanza et al. (The ALEPH Collaboration) Nucl. Instr. Methods A 409 (1998) 157 and N.B. Sinev et al. (The SLD Collaboration) 409 (1998) 243

[48] D. Coupal et al. The BABAR drift chamber electronics group, Drift Chamber technical note TNDC-97-68 v4.0.

[49] W. W. M. Alison and P. R. S. Wright, The Physics of Charged Particle Identification: dE/dx, Cerenkˇ ovand Transition Radiation, in Experimental Techniques in High Energy Physics, ed. T. Ferbel, Addison Wesley (1987)

[50] D. Boutigny et al., The BABAR Collaboration, Letter of Intent, SLAC-443 (1992)

[51] Y. Kubota et al., The CLEO Collaboration, Nucl. Instr. Methods A 320 60 (1992)

[52] R. Santonico and R. Cardarelli, Nucl. Instr. Methods A 187 (1981), R. Car- darelli et al. Nucl. Instr. Methods A 263 (1988)

[53] See for example L. Antonazzi et al. (E771 collaboration), Nucl. Instr. Meth- ods A 315 92 (1992) , C. Bacci et al. (RD 5 collaboration) ibid. 102, A. Anotelli et al. (FENICE collaboration), Nucl. Instr. Methods A 337 34 (1993)

[54] N. Dyce et al., The BABAR Trigger Group, “The BABAR Trigger System Design Requirements”, V4.00 (1997)

[55] S. Gehrig, “Design and Simulated Performance of the Level 1 Trigger System”, BABAR Note # 380 (1997) REFERENCES 117

[56] G. Booch, Object Oriented Analysis and Design (2nd ed.), (Addison-Wesley, California, 1994)

[57] E. Gamma, R. Helm, R. Johnson and J. Vlissides, “Design Patterns”, (Addision-Wesley, California, 1995)

[58] D. S. Humpherys, Analysis, Design and Synthesis of Electrical Filters, (Prentice Hall, New Jersey, 1970)

[59] E. A. Lee and D. G. Messerschmidt, Digital Communication, (Kluwer Aca- demic Publishers, Boston, 1988)

[60] Y. Kubota et al. (The CLEO Collaboration), Nucl. Instr. Methods A 320 66 (1992)

[61] J. Dowdell, BABAR Calorimeter DAQ system overview (BABAR Calorimeter internal note, August 1997), J. Dowdell, BABAR Calorimeter DAQ ADC Board Description, (BABAR Calorimeter internal note, May 1997), G. M. Haller and D. R. Freytag, “Analogue Floating Point BiCMOS Sampling Chip and Architecture of the BABAR CsI Calorimeter Front End Electronics System at the SLAC B-Factory”, BABAR Note # 285

[62] E. D. Frank, R. G. Jacobsen and E. Sexton-Kennedy, “Architecture of the BABAR Reconstruction System”, presented at “Computing in High Energy Physics 1997”, to appear in proceedings.

[63] W. H. Press et. al, “Numerical Recipes - the art of scientific computing”, (Cambridge University Press, Cambridge, 1986)

[64] J. Back, “Track cluster matching for the Electromagnetic Calorimeter using Detector Model”, BABAR Note # 440 and “Track cluster matching for the Electromagnetic Calorimeter using a Simple Model”, BABAR Note # 439

[65] The clustering algorithm was developed and written by S. Playfer and S. Gowdy of the Univeristy of Edinburgh.

[66] S. Gowdy and P. Strother, “BaBar EMC Reconstruction Code”, internal document supplied in the EmcReco package of the BABAR offline software releases. Also available at http://www.slac.stanford.edu/BFROOT/dist/releases/newest/EmcReco/calreco.tex

[67] J. Izen, A. Snyder, M. Sokoloff and R. Waldi, “Some Statistics for Particle Identification”, BABAR Note # 422, and references therein.

[68] E. D. Frank, “The ProxyDict mechanism”, BABAR note, in preparation

[69] Objectivity/DB, Object Oriented Database product supplied by Objectivity Inc., Mountainview, California 118 REFERENCES

[70] D. Boutigny et al., The BABAR Collaboration, The BABAR Technical Design Report, SLAC-R-95-457 (1995)

[71] T. Mattison, talk given at the July 1998 BABAR collaboration meeting.

[72] R. Seitz, “Describing Energy Deposits in CsI Crystals”, BABAR Note # 294

[73] N. J. Gunawardane, “Increasing the efficiency of the BaBar EMC using software”, Imperial College internal report, 1998

[74] M. G. Bekishev and V. N. Ivanchenko, Nucl. Instr. Methods A 361 138 (1995), A. De Angelis and P. Palazzi, Nucl. Instr. Methods A 281 93 (1989), A. De Angelis and F. Mazzone, Nucl. Instr. Methods A bf 287 397 (1990), F. Bianchi et al. (The Delphi FEMC group), Nucl. Instr. Methods A 279 473 (1989)

[75] D. Antreasyan, “An algorithm for tagging photon and merged π0 showers in the crystal ball”, Crystal Ball note 321, 1983

[76] S. F. Schaffner and J. M. Losecco, “Object Oriented Tracking and Vertexing at BABAR”, David Nathan Brown, “An Object Oriented Kalman Filter Tracking Algorithm”, in proceedings of the CHEP 1997 conference, submitted to Comp. Phys. Comm.

[77] The RecVtx software package was written by John LoSecco, University of Notre Dame, Illinois

[78] P. F. Harrison, “Consistencies: definition and usage”, Internal BABAR physics note, 1997

[79] P. Janot and F. Le Diberder, “Combining Limits”, CERN-PPE-97-053 (1997)

[80] C. P. Jessop et al. The CLEO Collaboration, Phys. Rev. Lett. 79 (1997) 4533- 4537

[81] P. F. Harrison, “Study of B0 J/ψ K0 and B0 ρ π ”, BABAR Note # 218 → S → ± ∓ [82] D. Zanin, M. Bona, VtxTagBFinder code, documented in http://www.to.infn.it/esperimenti/babar/physics/ztag/zbest.html

[83] M. Benkebil et al. The BABAR Tagging Group. A most recent investigation of the performance of the tagging algorithms can be found in ref [31].

[84] F. LeDiberder, “Precision on CP violation measurements and requirements on the vertex resolution”, BABAR Note # 34, 1990

[85] O. Nachtmann, Elementary Particle Physics, (Springer Verlag, Berlin, 1990)

[86] H. Schildt, “C++, The Complete Reference”, 2nd Ed. (McGraw Hill, Berkeley, 1995) REFERENCES 119

[87] M. Ellis and B. Stroustrup, “The Annotated C++ Reference Manual” (Addison Wesley, Reading, 1990) 120 REFERENCES A

The Wigner–Weisskopf formalism

In this appendix the formalism describing the decay of elementary quantum mechanical states is described. The main result, namely the description of the time evolution of two states via a mass matrix is used extensively in the description of mixing of neutral B mesons and K mesons. If some state, (t) , is originally in some linear combination of unstable states α , which decay | i | i into some assembly of other states β , then a general decomposition of (t) is as follows, | i | i (t) = ψ (t) α + c (t) β (A.1) | iS α | i β | i α X Xβ where the subscript S indicates that the states are represented in the Schrodinger¨ picture. The normalisation of this state dictates that any loss in population of the states α will be matched by | i a rise in population of the states β . At time t = 0, the state (t) S consists only of the original states, i.e. | i | i (0) = ψ (0) α . (A.2) | iS α | i α X This system will evolve according to the Schrodinger¨ equation, ∂ (t) i | iS = H (t) , (A.3) ∂t | iS where H = H0 + H0, H0 being a perturbation of Hb about H0. In the case of the meson systems discussed below, the perturbative Hamiltonian relates to the weak force, whilst H0 relates to the strong force.b bIn thecinteractionc picture (denoted by ba subscriptb I), the relevant equations are b (0) = (0) | iI | iS (t) = eiH0t (t) | iI | iS = b a (t) α + b (t) β α | i β | i α X Xβ ∂ (t) i | iI = H (t) (t) (A.4) ∂t 0 | iI iH0t iH0t H0(t) = ec H0e− . (A.5) b b If the states α and β are such that | i | i c c H α = E α 0| i 0| i H0 β = Eβ β , b | i | i b 122 THE WIGNER–WEISSKOPF FORMALISM then the operator expansion of the expression A.5 is given by

H (t) = α α α0 α0 0 | ih | ih | α X Xα0 iE0t iEβt c + e e− α α β β | ih | ih | α X Xβ iEβt iE0t + e e− β β α α | ih | ih | α X Xβ iEβt iE t + e e− β0 β β β0 β0 . | ih | ih | Xβ Xβ0 If one assumes that the final and initial states are all mutually orthogonal, then the equation (A.4) gives

∂aα(t) i(E0 Eβ)t i = a (t) α H α0 + b (t)e − α H β ∂t α0 h | 0| i β h | 0| i Xα0 Xβ ∂b (t) c c β i(Eβ E )t i(Eβ E0)t i = b (t)e − β0 β H β0 + a (t)e − β H α . ∂t β0 h | 0| i α h | | i α Xβ0 X c b The approximation made by Wigner and Weisskopf is that the first part of the latter equation makes no contribution, i.e. that the final states are stable with respect to the weak interaction to first approximation. If one then imposes that the initial state contains no component in the decay state space, i.e. that

aα(0) = ψα(0)

bβ(0) = 0, then the solutions for the coefficients are t it0(Eβ E0) bβ = i e − β H0 α0 aα0 (t)dt0, (A.6) − 0 h | | i Xα0 Z c and, using this expression for the coefficient bβ,

t

aα(t) = ψα(0) i aα0 (t0) α H0 α0 dt0 − 0 h | | i Z Xα0 t t0 c i(E0 Eβ)(t0 t0 0) e − − α0 H0 β β H0 α0 aα0 (t0 0)dt00dt0. (A.7) − 0 0 h | | ih | | i Xα0 Xβ0 Z Z c c This integral is computed in, for example, [85]. The result is 1 1 a(t) = eσt ψ(0)dσ 2πi σ + i i It W = e− W ψ(0), (A.8) The Wigner–Weisskopf formalism 123 where the matrix is given by W

α 0 β β 0 α0 αα0 = α 0 α0 + h |H | ih |H | i π δ( β) α 0 β β 0 α0 . (A.9) W h |H | i ( β) − i E0 − E h |H | ih |H | i Xβ cE0 − E c Xβ c c c If one now returns to the Schrodinger¨ picture,

iH0t (t) = e− (t) | iS | iI i(E0+ )t = e− W ψ(0) α + c (t) β | i β | i α X Xβ = ψ (t) α + c (t) β α | i β | i α X Xβ i.e. i t ψα(t) = e− M ψα(0), (A.10) where c = E + . (A.11) M 0 W , which governs the rate of decay of the amplitudes of the original states, is called the mass M c matrix. It is non-hermitian, but may be written in terms of two hermitian matrices M and where c 1 M = ( + †) 2 M M = i( †) Mc− Mc such that c c i = M . (A.12) M − 2 The elements of M and are given by c

α H0 β β H0 α0 Mαα0 = E0δαα0 + α H0 α0 + h | | ih | | i h | | i (E0 Eβ) Xβ c − c c = 2πδ(E E ) α H β β H α0 . αα0 0 − β h | 0| ih | 0| i Xβ c c The coefficient ψ(t) tells us how much of the state is left in undecayed at any given time t. If the eigenstates of , the so-called mass eigenstates, are known, then one may expand the operator i t M e− M easily, from whence the time development of the system may be calculated. It is important to remember, hocwever, that ψ(t) gives only the projection of the complete state (t) onto the c | i space of the original states α . | i 124 THE WIGNER–WEISSKOPF FORMALISM B

Class diagrams

The principles of object oriented design have been presented in chapter 3. In this appendix, the notation used to represent class diagrams, an essential tool in object oriented design, will be introduced, and the designs for the particle identification and global calibration schemes for the electromagnetic calorimeter represented in terms of these. Nomenclature of classes, in particular of their C++ implementation, is widely used. For an explanation of terms, see any elementary C++ text, such as Schildt[86]. For a more detailed explanation of the concepts and the language of C++, see [87]. The most basic component of a class diagram is the class representation itself. A typical class diagram is shown in figure B-1. The name of the class is written at the top of the box. In the

Name {A}

Attributes

Functions

Figure B-1. The simplest representation of a class. next box, some of the data members may be displayed. Since the implementation of other classes should not depend on this data, it is often omitted, and only included for information. The lower box is reserved for function names, which appear in the form function: return type.

Not all functions need be shown, and in almost all cases, constructors, destructors and assignment operators are excluded. Three key relationships between classes are represented by lines connecting the class boxes. These are shown in figure B-2. The top figure shows class A inheriting from class B. This means that class A can re-use all the public or protected methods (and data, if there are any) from class B, and 126 CLASS DIAGRAMS re-implement any such functions that are virtual. If another function is given a pointer or reference to class B, that pointer or reference may actually refer to an instance of class A, in which case the implementation of class A is used. The function need not know anything about class A, however. The A in the upper corner is used to denote an abstract class, in which at least one function is pure{virtual} , i.e. has no default implementation.

A B

A B

A B

Figure B-2. Class relationships

The middle figure of the three represents a “uses” relationship—A “uses” B. In practice this means that class A has to know about the interface of class B, and will make use of its public member functions. The lower diagram represents a contains relationship. A contains (an instance of) B. The solid square indicates that A is responsible for the instance of B, i.e. A owns B. An alternative rela- tionship, where A is not responsible for the instance of B (A contains B by reference or unowned pointer), a white square is used. Class diagrams 127 EmcIDFactory EmcElectronIdentifier interpret(const EmcCand *, const AbsEvent *) _everyID : RWTPtrOrderedVector * _hashEveryId : RWTPHD * getSpecificIdentifier(const IfdStrKey &) : EmcIdentifier * getName() : const IfdStrKey & interpret(const EmcCand *, const AbsEvent *)=0 : _name : IfdStrKey * _callingModule : AppModule * EmcIdentifier {A} AstAssociation* EmcPidInfo update(AstAssociartion AbsPidInfo {A} _theList : RWTPtrOrderedVector APPModule EmcIdentify {A} EmcCand _pidInfo : EmcPidInfo * updatePID(AstAssociation ) getPidInfo() : const EmcPidInfo * makecandidates(AbsEvent *) = 0 registerIdentifier(EmcIdentifier *); EmcCandidateMaker _particleName : IfdStrKey * _members : RWTPtrSlist unRegisterIdentifier(EmcIdentitifer *): EmcIdentifier * notifyIdentifiers( EmcCand *, AbsEvent *); getParticleName() : const IfdStryKey& EmcCMFactory makeCandidates(AbsEvent *) EmcElectronMaker _everyCM : RWTPtrOrderedVector * _hashEveryCM : RWTPHD * getSpecificMaker(const IfdStrKey &) : EmcCandidateMaker *

Figure B-3. Class diagram for the particle ID framework for the calorimeter. It is discussed more fully in chapter 3. 128 CLASS DIAGRAMS bool EmcCalibratorP _coefficients : ooVArray(double) _transientName : ooVString getCoeffs() : ooVArray(double) transientName() : ooVString copyState(RWTValVector &): SubClass1 SubClass2 {A} EmcAbsCalibrator SubClass1 SubClass2 whereIs(EmcCluster *, PdtEntry*)=0 : HepPoint energyOf(EmcCluster*, PdtEntry*)=0 : double * EmcCalibratorWarehouse EmcAbsCalibrator * getCalibrator(RWCString &): EmcCalibrator IfdDataProxyTemplate EmcCalibratorProxy EmcCalibDictionary getContents(): RWTPV EmcCalibrator * _cache faultHandler() : EmcCalibrator *

Figure B-4. Class diagram for the offline, global calibration system. This diagram refers to the retrieval side of the system. It is discussed more fully in chapter 3. Class diagrams 129 EmcCalibratorP SubClass1 SubClass2 EmcCalibPCreator create(BdbHandle(EmcCalibratorP) &, const EmcAlgDescription &) : bool BdbTime time=BdbTime()) : bool EmcCalibAlgList EmcStoreCalibrator EmcCalibAlgList(BdbHandle(EmcAlgBank) &) storeCalibrator(EmcCalibrator *, verifyCalibrator(EmcCalibrator *) : bool EmcAlgListProxy faultHandler(): EmcAlgList * EmcAlgBank copyState(RWTPOV &) ooVArray _theDescrs; AppModule EmcAbsCalibrationAlgorithm beginJob(); storeResult(): void EmcAlgDescription _theDescription EmcCalibAlgRegister regsiterAlgorithm(EmcAbsCalibAlgorithm &) EmcAlgDesription EmcRadBhaBhaCalibAlgorithm d_Short _isDefault; char _algName[20];

Figure B-5. Class diagram for the offline, global calibration system. This diagram refers to the storage side of the system. It is discussed more fully in chapter 3.