astro-ph0512615/ms.tex
1: %%
2: %% Beginning of file 'sample.tex'
3: %%
4: %% Modified 2004 January 9
5: %%
6: %% This is a sample manuscript marked up using the
7: %% AASTeX v5.x LaTeX 2e macros.
8: 
9: %% The first piece of markup in an AASTeX v5.x document
10: %% is the \documentclass command. LaTeX will ignore
11: %% any data that comes before this command.
12: 
13: %% The command below calls the preprint style
14: %% which will produce a one-column, single-spaced document.
15: %% Examples of commands for other substyles follow. Use
16: %% whichever is most appropriate for your purposes.
17: %%
18: \documentclass[12pt,preprint]{aastex}
19: 
20: %% manuscript produces a one-column, double-spaced document:
21: 
22: %\documentclass[manuscript]{aastex}
23: 
24: %% preprint2 produces a double-column, single-spaced document:
25: 
26: %\documentclass[preprint2]{aastex}
27: 
28: %% Sometimes a paper's abstract is too long to fit on the
29: %% title page in preprint2 mode. When that is the case,
30: %% use the longabstract style option.
31: 
32: %% \documentclass[preprint2,longabstract]{aastex}
33: 
34: %% If you want to create your own macros, you can do so
35: %% using \newcommand. Your macros should appear before
36: %% the \begin{document} command.
37: %%
38: %% If you are submitting to a journal that translates manuscripts
39: %% into SGML, you need to follow certain guidelines when preparing
40: %% your macros. See the AASTeX v5.x Author Guide
41: %% for information.
42: 
43: \newcommand{\vdag}{(v)^\dagger}
44: \newcommand{\myemail}{afalcone@astro.psu.edu}
45: 
46: %% You can insert a short comment on the title page using the command below.
47: 
48: %\slugcomment{Not to appear in Nonlearned J., 45.}
49: 
50: %% If you wish, you may supply running head information, although
51: %% this information may be modified by the editorial offices.
52: %% The left head contains a list of authors,
53: %% usually a maximum of three (otherwise use et al.).  The right
54: %% head is a modified title of up to roughly 44 characters.
55: %% Running heads will not print in the manuscript style.
56: 
57: \shorttitle{GRB 050502B X-ray Flare}
58: \shortauthors{Falcone et al.}
59: 
60: %% This is the end of the preamble.  Indicate the beginning of the
61: %% paper itself with \begin{document}.
62: 
63: \begin{document}
64: 
65: %% LaTeX will automatically break titles if they run longer than
66: %% one line. However, you may use \\ to force a line break if
67: %% you desire.
68: 
69: \title{The Giant X-ray Flare of GRB 050502B: Evidence for Late-Time Internal Engine Activity}
70: 
71: %% Use \author, \affil, and the \and command to format
72: %% author and affiliation information.
73: %% Note that \email has replaced the old \authoremail command
74: %% from AASTeX v4.0. You can use \email to mark an email address
75: %% anywhere in the paper, not just in the front matter.
76: %% As in the title, use \\ to force line breaks.
77: 
78: \author{
79: A.~D.~Falcone\altaffilmark{1,2},
80: D.~N.~Burrows\altaffilmark{1}, 
81: D.~Lazzati\altaffilmark{3},
82: S.~Campana\altaffilmark{4},
83: S.~Kobayashi\altaffilmark{1,5},
84: B.~Zhang\altaffilmark{6},
85: P.~M\'{e}sz\'{a}ros\altaffilmark{1,7},
86: K.~L.~Page\altaffilmark{8},
87: J.~A.~Kennea\altaffilmark{1},
88: P.~Romano\altaffilmark{4},
89: C.~Pagani\altaffilmark{1,4},
90: L.~Angelini\altaffilmark{9,10},
91: A.~P.~Beardmore\altaffilmark{8},
92: M.~Capalbi\altaffilmark{11},
93: G.~Chincarini\altaffilmark{4,12},
94: G.~Cusumano\altaffilmark{13},
95: P.~Giommi\altaffilmark{11}, 
96: M.~R.~Goad\altaffilmark{8},
97: O.~Godet\altaffilmark{8},
98: D.~Grupe\altaffilmark{1},
99: J.~E.~Hill\altaffilmark{1,9},
100: V.~La~Parola\altaffilmark{13},
101: V.~Mangano\altaffilmark{13},
102: A.~Moretti\altaffilmark{4},
103: J.~A.~Nousek\altaffilmark{1}, 
104: P.~T.~O'Brien\altaffilmark{8},
105: J.~P.~Osborne\altaffilmark{8},
106: M.~Perri\altaffilmark{11},
107: G.~Tagliaferri\altaffilmark{4}, 
108: A.~A.~Wells\altaffilmark{14},
109: N.~Gehrels\altaffilmark{9}
110: }
111: 
112: \altaffiltext{1}{Department of Astronomy \& Astrophysics, Pennsylvania State University, University Park, PA 16802, USA}
113: \altaffiltext{2}{corresponding author email afalcone@astro.psu.edu}
114: \altaffiltext{3}{JILA, University of Colorado, Boulder, CO 80309, USA}
115: \altaffiltext{4}{INAF -- Osservatorio Astronomico di Brera, Merate, Italy}
116: \altaffiltext{5}{Center for Gravitational Wave Physics, Pennsylvania State University}
117: \altaffiltext{6}{Department of Physics, University of Nevada, Las Vegas, NV}
118: \altaffiltext{7}{Department of Physics, Pennsylvania State University, University Park, PA 16802, USA}
119: \altaffiltext{8}{Department of Physics and Astronomy, University of Leicester, Leicester, UK}
120: \altaffiltext{9}{NASA/Goddard Space Flight Center, Greenbelt, MD}
121: \altaffiltext{10}{Universities Space Research Association, Columbia, MD}
122: \altaffiltext{11}{ASI Science Data Center, Frascati, Italy}
123: \altaffiltext{12}{Universit\`a degli studi di Milano-Bicocca, Dipartimento di Fisica, Milano, Italy} 
124: \altaffiltext{13}{INAF- Istituto di Fisica Spazialee Fisica Cosmica sezione di Palermo, Palermo, Italy}
125: \altaffiltext{14}{Space Research Center, University of Leicester, Leicester, UK}
126: 
127: 
128: %% Mark off your abstract in the ``abstract'' environment. In the manuscript
129: %% style, abstract will output a Received/Accepted line after the
130: %% title and affiliation information. No date will appear since the author
131: %% does not have this information. The dates will be filled in by the
132: %% editorial office after submission.
133: 
134: \begin{abstract}
135: 
136: Until recently, X-ray flares during the afterglow of gamma ray bursts (GRBs) were a rarely detected phenomenon, thus their nature is unclear.  During the afterglow of GRB 050502B, the largest X-ray flare ever recorded rose rapidly above the afterglow lightcurve detected by the {\it{Swift}} X-ray Telescope.  The peak flux of the flare was $>500$ times that of the underlying afterglow, and it occurred at $>12$ minutes after the nominal prompt burst emission.  The fluence of this X-ray flare, (1.0 $\pm$ 0.05) $\times 10^{-6}$ erg cm$^{-2}$ in the 0.2--10.0 keV energy band, exceeded the fluence of the nominal prompt burst.  The spectra during the flare were significantly harder than those measured before and after the flare.  Later in time, there were additional flux increases detected above the underlying afterglow, as well as a break in the afterglow lightcurve.  All evidence presented below, including spectral and particularly timing information during and around the giant flare, suggests that this giant flare was the result of internal dissipation of energy due to late central engine activity, rather than an afterglow-related effect.  We also find that the data are consistent with a second central engine activity episode, in which the ejecta is moving slower than that of the initial episode, causing the giant flare and then proceeding to overtake and refresh the afterglow shock, thus causing additional activity at even later times in the lightcurve.
137: 
138: \end{abstract}
139: 
140: %% Keywords should appear after the \end{abstract} command. The uncommented
141: %% example has been keyed in ApJ style. See the instructions to authors
142: %% for the journal to which you are submitting your paper to determine
143: %% what keyword punctuation is appropriate.
144: 
145: %% Authors who wish to have the most important objects in their paper
146: %% linked in the electronic edition to a data center may do so in the
147: %% subject header.  Objects should be in the appropriate "individual"
148: %% headers (e.g. quasars: individual, stars: individual, etc.) with the
149: %% additional provision that the total number of headers, including each
150: %% individual object, not exceed six.  The \objectname{} macro, and its
151: %% alias \object{}, is used to mark each object.  The macro takes the object
152: %% name as its primary argument.  This name will appear in the paper
153: %% and serve as the link's anchor in the electronic edition if the name
154: %% is recognized by the data centers.  The macro also takes an optional
155: %% argument in parentheses in cases where the data center identification
156: %% differs from what is to be printed in the paper.
157: 
158: \keywords{gamma ray bursts, \object{grb 050502B}, relativistic jets}
159: 
160: %% From the front matter, we move on to the body of the paper.
161: %% In the first two sections, notice the use of the natbib \citep
162: %% and \citet commands to identify citations.  The citations are
163: %% tied to the reference list via symbolic KEYs. The KEY corresponds
164: %% to the KEY in the \bibitem in the reference list below. We have
165: %% chosen the first three characters of the first author's name plus
166: %% the last two numeral of the year of publication as our KEY for
167: %% each reference.
168: 
169: \section{Introduction}
170: 
171: Since its launch on 2004 November 20, {\it{Swift}} \citep{geh04} has provided detailed measurements of numerous GRBs and their afterglows with unprecedented reaction times.  Of the 57 bursts detected by the Burst Alert Telescope (BAT; Barthelmy et al. 2004) as of 2005 August 3, 43 were observed by the narrow field instruments in less than 200 ks (typical reaction time was much less, but occasionally BAT detected a burst that was observationally constrained).  The narrow field instruments include the X-ray telescope (XRT; Burrows et al. 2005) and the Ultraviolet-Optical Telescope (UVOT; Roming et al. 2005).  Of these 43 observations, 42 afterglows were detected by the XRT, and 30 of them received prompt ($< 300$ s) observations with the pointed instruments.  By detecting burst afterglows promptly, and with high sensitivity, the properties of the early afterglow and extended prompt emission can be studied in detail for the first time.  This also facilitates studies of the transition between the prompt emission and the afterglow.
172: 
173: While there are still many unknown factors related to the mechanisms that produce GRB emission, the most commonly accepted model is that of a relativistically expanding fireball with associated internal and external shocks \citep{mes97}.  In this model, internal shocks produce the prompt GRB emission. Observationally, this emission typically has a timescale of $\sim30$ s for long bursts and $\sim$0.3 s for short bursts \citep{mee96}.  The expanding fireball then shocks the ambient material to produce a broadband afterglow that decays quickly (typically as ${\sim}t^{-\alpha}$).  When the Doppler boosting angle of this decelerating fireball exceeds the opening angle of the jet into which it is expanding, then a steepening of the lightcurve (jet break) is also predicted \citep{rho99}.  For a description of the theoretical models of GRB emission and associated observational properties, see \citet{mes02}, \citet{zha04}, \citet{piran05}, and \citet{van00}.
174: 
175: Several authors have suggested reasons to expect continued activity from the internal engine of the GRB after the classical "prompt" emission time frame.  \citet{kat97} considered a model in which a magnetized disk around a central black hole could lead to continued energy release in the form of internal shocks.  The parameters of this energy release would depend on the complex configuration of the magnetic field and the magnetic reconnection dynamics, but time periods as long as days for the delayed emission were predicted.  \citet{kin05} have speculated that episodic accretion processes could explain continued internal engine activity.  These authors expect that fragmentation and subsequent accretion during the collapse of a rapidly rotating stellar core could explain observations of extended prompt emission.  In general, the dominant model of an expanding fireball with internal/external shocks \citep{mes97} allows for continued prompt emission, provided that the internal engine is capable of continuing the energy injection.
176: 
177: A few previous observations have included indications of flaring from GRBs after the nominal prompt emission phase.  \citet{wat03} used XMM-Newton to detect line emission from GRB 030227 nearly 20 hours after the prompt burst.  They inferred continued energy injection at this late time, and concluded that a nearly simultaneous supernova and GRB event would require sporadic power output with a luminosity in excess of $\sim5\times10^{46}$ erg s$^{-1}$.  \citet{pir05} used Beppo-SAX to observe two GRBs with relatively small X-ray flares.  The X-ray flare times for GRB 011121 and GRB 011211 were reported as t=240 s and t=600 s, respectively.  The spectral parameters of these two X-ray flares were consistent with afterglow parameters, and these flares were interpreted as the onset of the afterglow \citep{pir05}.  Two other examples of flaring and/or late timescale emission can be found in \citet{int03} and \citet{gal05}.  Although not a detection of late flares from a particular GRB, the work of \citet{con02}, in which an ensemble of GRBs was analyzed, should also be mentioned.  In this study, 400 long GRBs detected by the Burst and Transient Source Experiment (BATSE) were analyzed together in the form of a summed lightcurve above 20 keV.  Significant emission was found at late times (at least to 1000 s).  There are several possible explanations for this emission that do not require flares, but flares at various times are certainly one possible explanation.
178: 
179: More recently, \citet{bur05b} provided the initial report that two bursts detected by {\it{Swift}} showed strong X-ray flares.  The first of these, XRF 050406, was an X-ray flash with a short, and relatively weak, X-ray flare that peaked 213 s after the nominal prompt emission.  Due to the fast rise/decay, the most natural explanation for this flare is continued internal engine activity at late times (i.e. delayed prompt emission).  A detailed analysis of XRF 050406 is currently in preparation \citep{romano05}.  GRB 050502B, the subject of this paper, was also reported on by \citet{bur05b} since it had a dramatic X-ray flare that peaked 740 s after the nominal prompt emission.  This paper will now explore this event in more detail.
180: 
181: GRB 050502B was detected by the {\it{Swift}}-BAT at 09:25:40 UT on 2005 May 02 \citep{fal05}.  According to \citet{cum05}, the T90 duration for the prompt emission detected by BAT was (17.5 $\pm$ 0.2) s, and the burst had three individual peaks.  The main hard peak had a 6 s duration, was well fit by a power law with photon index 1.6 $\pm$ 0.1, and had a 15--350 keV fluence of (8.0 $\pm$ 1.0) $\times10^{-7}$ erg cm$^{-2}$ \citep{cum05}.  The spacecraft slewed promptly and observations with {\it{Swift}}-XRT and {\it{Swift}}-UVOT began 63 s after the BAT trigger time.  Since the flux was initially low, the XRT Image Mode data did not produce an initial onboard centroid position; however the first pass of data was analyzed on the ground, leading to an XRT position of RA $09^{h}30^{m}10.1^{s}$, Dec $+16^{\circ}59^{m}44.3^{s}$ (J2000), with a 90\% containment uncertainty of 5$\arcsec$ \citep{pag05}.  There was no counterpart found by UVOT, but ground-based optical observations reported by \citet{cen05} revealed a fading afterglow at RA 09:30:10.02, Dec +16:59:48.07 (J2000), which is within 4$\arcsec$ of the reported XRT position.  Following the initial low-flux detection by XRT, continued monitoring revealed increased flux that turned out to be the largest X-ray flare ever detected during a GRB afterglow.  This giant X-ray flare was not accompanied by any detected emission in the BAT energy band.
182: 
183: \section{Observations}
184: 
185: In this paper, we are reporting observations and analysis with the XRT data set.  The XRT began taking data on this burst within 63 s after the BAT prompt emission trigger.  After the initial data taken in Image Mode, the spacecraft executed its usual sequence of modes and began taking Windowed Timing (WT) mode data.  Since the rate was initially low, the telescope then switched into Photon Counting (PC) mode.  Throughout the initial data segment, there was significant mode switching between PC mode and WT mode.  The initial data segment (data taken after the autonomous slew) contained 57.8 ks of data after screening.  Following this autonomous slew, follow-up observations were scheduled on GRB 050502B, which resulted in a total of 178 ks of data taken over a time period ranging from 63 s to 10.6 days after the BAT trigger.
186: 
187: \section{Analysis}
188: 
189: Data were reduced using the latest HEAsoft tools (version 6.0), including {\it{Swift}} software version 2.0, and the latest response (version 7.0) and ancillary response files (created using xrtmkarf) available in CALDB at the time of analysis.  Data were screened with standard parameters.  Data were also screened to eliminate time periods when the CCD temperature was warmer than -50$^\circ$ C.  When analyzing WT data, only grades 0--2 were included, and when using PC mode data, only grades 0--12 were included.  Source and background regions were specified independently for each data segment using the image from all data in that segment.  For PC mode data, the source region was a 30 pixel radius circle during the initial data segment when the source was very bright, and it was a 15 pixel radius circle for all subsequent data segments.  The background region was chosen in a source-free region of the image and was a circle with twice the radius of the source region in each data segment.  Background for WT mode data was found to be negligible.  The lightcurves were binned such that all bins contained $>8$ counts after background subtraction (actually, most bins had hundreds of counts).
190: 
191: Spectral models were fit to data using Xspec version 12.2.0.  Spectra were fit in the 0.2-5.5 keV energy range.  The energy range above 5.5 keV was excluded since some of the time regions, before and after the giant flare, had almost no counts above this energy.  In the interests of maintaining consistency in the analysis, a common upper bound (5.5 keV) was chosen for the energy range used in the fit.  A systematic error of 3\% was assigned throughout the energy range due to uncertainties in the response of the instrument.  The response below 0.6 keV is more uncertain since calibration is more difficult in this energy range, thus a systematic error of 5\% is assumed in the range 0.2--0.6 keV.  During fitting, $\chi^{2}$ statistics were used when appropriate (always with $>$20 photon/bin).  In the pre-flare time region when there were low counts ($\approx60$ counts), C-statistic was used, and the spectral data were binned to 1 photon/bin, which is more appropriate for C-statistic \citep{cas79, nou89, arn05}.  In general, the C-statistic provides better parameter estimation when there are few or no background counts and when source counts are low, so it was used to estimate parameters during the fitting.  Following the parameter estimation, $\chi^{2}$ statistics were then applied to these parameter values as an extra consistency check. 
192: 
193: During the pre-flare and flare time regions, mode switching led to collection of both PC mode data and WT mode data.  When the count rate was high ($\gtrsim0.5$ c/s), WT mode data were used, rather than PC mode data, in order to avoid effects due to pile-up on the detector.  This did not detract significantly from the data since there was nearly equivalent WT and PC mode coverage throughout the time period before and during the flare when the count rate was high.  WT mode data is free of significant pile-up effects throughout the entire range of flux reported in this paper, since pile-up does not begin to effect WT mode data until ~1 Crab \citep{bur05a}.  The PC and WT mode lightcurves before and after the flare were compared to one another to be sure that the data points with little or no pile-up were consistent with one another.
194: 
195: \section{Results}
196: 
197: \subsection{Lightcurve}
198: 
199: The overall lightcurve for GRB 050502B is shown in Figure 1.  Since the PC mode data were piled-up during the bright flare, the more reliable WT mode data were used for periods when the count rate was high ($\gtrsim0.5$ c s$^{-1}$).  However, it is worth pointing out that the pile-up corrected and non piled-up data in PC mode match the WT mode data during the flare, thus there should be no systematic shift in a lightcurve that contains both types of data.  The overall lightcurve has many features.  There is an obvious underlying decay curve.  Superimposed on this decay is a rapid and intense rate increase, beginning at ($345 \pm 30$) s.  For clarity, we will refer to this large rate increase as the ``giant flare'' throughout the remainder of the text.  There is also significant shorter timescale variability near the peak of the giant flare when viewed in the hard band (1.0--10.0 keV), as shown in Figure 2.  Following the giant flare, the underlying decay continues at a decay rate consistent with the decay rate before the giant flare.  After several hours ($>10^4$ s), two significant bumps in the X-ray emission occur consecutively.  At an undetermined time during, or after, the bumps, the underlying decay becomes steeper.
200: \clearpage
201: \begin{figure}
202: \plotone{f1.eps}
203: \caption{Overall 0.2-10 keV band lightcurve of GRB 050502B.  Vertical error bars are $1\sigma$ statistical errors.  Horizontal error bars represent time bin size.  Open circle points represent WT mode data, and dots represent PC mode data.  The ``giant flare'' is the obvious $>500\times$ rate increase at ($345 \pm 30$) s.  There is also some bumpiness and/or flattening evident in the lightcurve at $\gtrsim10^4$ s, as well as an underlying decay below all of this activity.  Last datum is 90\% confidence level upper limit. \label{fig1}}
204: \end{figure}
205: 
206: \begin{figure}
207: \plotone{f2.eps}
208: \caption{Hard/soft band ratio of GRB 050502B.  Error bars are $1\sigma$ statistical errors.  \label{fig2}}
209: \end{figure}
210: 
211: \begin{figure}
212: \plotone{f3.eps}
213: \caption{Flare and fit to underlying decay curve of GRB 050502B, in the 0.2-10 keV energy band.  During the underlying decay, the solid line corresponds to a fit of all data points shown before and after flare.  The dotted lines, which are fits to the pre-flare and post-flare data independently, do not deviate significantly from fitting all underlying data simultaneously.  Vertical error bars are $1\sigma$ statistical errors.  Horizontal error bars represent the time bin size.  \label{fig3}}
214: \end{figure}
215: \clearpage
216: The underlying decay before and after the giant flare can be fit by a single power law that decays as $\sim t^{-\alpha}$, where $\alpha = 0.8 \pm 0.2$ (the error bar is dominated by systematic variations associated with the choice of flare start and stop times) and $t_{0}$ is taken as the time of the prompt burst.  As can be seen from Figure 3, fitting the pre-flare lightcurve data and the post-flare lightcurve data independently does not significantly improve the fit.  In this plot, the dashed lines represent fits to the pre-flare and post-flare data independently of one another (resulting in decay curves $\sim t^{-1.0 \pm 0.3}$ and $\sim t^{-0.7 \pm 0.3}$, respectively), while the solid line represents a fit of all pre-flare and post-flare data ($\sim t^{-0.8 \pm 0.2}$).  The lines in Figure 3 lie on top of one another, within error, indicating that there is no evidence for a change in the underlying decay after the giant flare, relative to that before the giant flare.  Aside from the flare itself, there is no evidence for any increase in the underlying decay flux relative to the pre-flare extrapolation of the decay (i.e. there is no evidence for afterglow shock re-energization near the time of the flare), but a factor of $\sim$2 increase of the post-flare flux relative to the pre-flare flux could be possible within the error bars of the data.
217: 
218: The giant flare begins to rise up above the underlying decay curve at 345 $\pm$ 30 s.  It rises to a sharp peak at 743 $\pm$ 10 s, but this appears to be on top of a broader peak that extends from 640 $\pm$ 20 s to 790 $\pm$ 20 s.  There is significant time structure within the peak of the giant flare itself, particularly in the harder X-ray lightcurve (see Figure 2).  The rise and decay of the giant flare can both be fit by simple power laws below the broad peak.  The flare rises rapidly as $\sim t^{9.5 \pm 2.1}$, and it decays rapidly as $\sim t^{-9.0 \pm 1.5}$.  If the underlying power law decay is subtracted from the giant flare data, then the rise is fit as $\sim t^{9.9 \pm 2.2}$, and the decay is fit as $\sim t^{-9.2 \pm 1.6}$.  The fits were all done using flare data outside of the 150 s region defining the peak and assuming a time origin at the burst trigger time.  Over the total 1360 s duration of the giant flare (837 s of good observation time), there were 23352 excess photons (in excess of both background and underlying decay curve extrapolation) collected in WT mode.  If one assumes that the 30 s duration hard X-ray rise at the top of the giant flare is a sub-flare, then the significance of only this short variation is 6.4 $\sigma$, with 376 photons detected in excess of the giant flare broad peak.
219: 
220: Following the decay of the giant flare, the lightcurve continues to decay at the pre-flare decay rate until $\sim10^{4}$ s.  Starting after (1.9 $\pm$ 0.3) $\times10^{4}$ s, there are two consecutive broad bumps in the lightcurve, or possibly a flattening combined with a bump.  The time frame for the first bump is estimated to be (1.9 $\pm$ 0.3) $\times10^{4}$ s to (4.9 $\pm$ 0.3) $\times10^{4}$ s, and the time frame for the second bump is taken as (4.9 $\pm$ 0.3) $\times10^{4}$ s to (1.1 $\pm$ 0.1) $\times10^{5}$ s.  The large error bar on the last data point is dominated by our inability to deconvolve the decay of the second bump from the faster decay of the underlying lightcurve after the second bump.  Given the time frames stated above, the signal-to-noise of the excess over the underlying decay curve for the first bump is 6.6 $\sigma$, and the signal-to-noise of the excess over the underlying decay for the second bump is 17 $\sigma$.
221: 
222: After the two late bumps (or possibly during the second bump), the slope of the lightcurve becomes steeper.  The last detection on the lightcurve and the upper limit shown in Figure 1 are significantly below the power law decay extrapolated from times prior to the late bumps.  The 90\% confidence level upper limit is a factor of 8 below the extrapolated curve.  It is difficult to estimate the time at which the steepening begins or the exact slope since we can not be certain of the contribution of the second late bump relative to the underlying decay curve itself.  If one fits the data above 1.1$\times10^{5}$ s with a power law decay, then the resulting decay index is $\alpha = 2.8 \pm 0.8$.
223: 
224: \subsection{Spectra}
225: 
226: \subsubsection{Hard/Soft Band ratio}
227: 
228: The hard/soft band ratio, as well as the lightcurves in the respective bands, are shown in Figure 2.  Three things are clear from this plot.  First, the hard/soft band ratio increases during the flare and subsequently decays as the flare decays.  We note the similarity to the spectral evolution of prompt GRB emission.  Second, the hard band shows significant short timescale variability, particularly near the peak of the giant flare (as discussed previously).  Third, the hard band begins to decay more quickly than the soft band.  Furthermore, the soft band has a shallower decay slope, relative to the slope of the flare rise.  It is clear from this plot that the hardness ratio increases at the onset of the flare, independent of any modelling, since this is merely a band ratio plot with no model dependence.
229: 
230: \subsubsection{Spectral Fits}
231: 
232: The spectra throughout the X-ray flaring and the underlying decay can be adequately fit by a simple power law with absorption, that looks like: 
233: \begin{equation}
234: f = C[e^{-N_{H}\sigma(E)}][\frac{E}{1 keV}]^{-\eta}
235: \end{equation}
236: where $N_{H}$ is the neutral Hydrogen column density with units $atoms/cm^{-2}$, $\sigma(E)$ is the energy dependent photoelectric absorption cross section \citep{mor83}, $\eta$ is the spectral photon index (note $\eta$ was chosen rather than the usual $\Gamma$ or $\alpha$ to avoid confusion with the bulk Lorentz factor or with the power law temporal decay index), and C is the normalization constant in units of photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$.  These fits lead to $\chi^{2}/dof$ values that range from 0.67 to 1.21, as a function of the time used in the fit, except during the giant flare at which time the $\chi^{2}/dof$ reaches a value of 1.44 (328 dof) at the peak of the flare.  These fits lead to $N_{H}$ values that rise significantly during the onset of the flare and then decay after the flare; but outside of the giant flare time region, the $N_{H}$ values are reasonable.  Other models were explored and found to produce as good or superior fits, without the need for an apparent increase in the column density.
237: 
238: In general, the prompt emission from GRBs can be more realistically fit with Band functions \citep{ban93}, rather than simple power laws.  Since the giant X-ray flare could be due to the same mechanisms that produce the nominal prompt emission, it is reasonable to try to fit Band function or Band function-like models to the time periods when the flare was dominating the observed emission.  For the soft X-ray observations being analyzed here, nearly all of the photons are below any reasonable Band function cutoff energy.  As a result, spectral fits with a power law multiplied with an exponential cutoff are nearly equivalent to fits with a Band function, and these fits require fewer parameters and lead to better convergence on photon-limited data.  We have explored this by fitting several time periods during and around the giant flare with both absorbed Band functions and absorbed cutoff power laws.  We find that both of these models fit the flaring time regions significantly better than the simple power law models, whereas the absorbed power law models fit better during time periods when the flare was not dominating the emission.  The Band function models and the power laws with exponential cutoffs fit equally well during the flare, and the exponential cutoffs provide better convergence due to the reduced number of parameters to be fit.  At the peak of the flare, the cutoff power law fit the data with a $\chi^{2}/dof$ of 1.21.  The cutoff power law was compared to the simple power law using the ftest, resulting in an ftest probability of $\approx$3$\times10^{-14}$, supporting the improvement of the fit using the cutoff power law rather than the simple power law.  When this fact is coupled with the increasing column density values obtained using the simple power law and the prompt-emission-like timing properties of the giant flare, it is clear that the cutoff power law is more applicable to the flaring time region.  So for the remainder of the analysis, we have used the absorbed power law with exponential cutoff to fit time periods during the giant X-ray flare, and we have used an absorbed simple power law to fit all other time periods.  
239: 
240: The absorbed power law with exponential cutoff has the following form:
241: \begin{equation}
242: f = C[e^{-N_{H}\sigma(E)}][\frac{E}{1 keV}]^{-\eta}[e^{E/E_{cut}}],
243: \end{equation}
244: where $N_{H}$ is the neutral Hydrogen column density (as before), $\eta$ is the spectral photon index, $E_{cut}$ is the characteristic cutoff energy in units of keV, and C is the normalization constant in units of photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$.  Since some models predict column density variations, we left $N_{H}$ free to vary throughout the fitting procedure, but we did set the lower bound of the $N_{H}$ to the measured Galactic value \citep{dic90}.
245: 
246: The results of applying the absorbed power law with an exponential cutoff model to the flare and an absorbed power law to the non-flare time regions are shown in Figure 4.  The value of $E_{cut}$ is not plotted in Figure 4 since it was consistent with a constant value of 2.5 $\pm$ 0.2 keV during the flare, with one exception.  During the final decay of the flare, $E_{cut}$ was large enough ($>$ 170 keV) to make the cutoff power law model effectively become a simple power law model with characteristics similar to the underlying decay.  There is significant variability of the soft X-ray spectral index during the giant flare, as can be seen in the first panel of Figure 4.  The data prior to the giant flare appear to have spectral fits that are consistent with the spectral fits after the flare.  During the giant flare, the spectrum hardens significantly; then, during the decay of the flare, it begins to soften back to a value consistent with the spectrum during the underlying lightcurve before and after the flare.  By the time the underlying emission is dominating the lightcurve again, the spectrum appears to have become soft again, as it was before the flare.  This softening during the decay of the flare is caused by the faster decay of the hard emission, as seen in Figure 2.  There is also a weak indication of some gradual hardening of the spectrum as the underlying flux fades.  All of the fit parameters displayed in figure 4 fit the data well; the ${\chi}^{2}/dof$ ranged from 0.62 to 1.21.  A sample spectral fit, calculated during the rising edge of the giant flare, is shown in Figure 5.
247: \clearpage
248: \begin{figure}
249: \plotone{f4.eps}
250: \caption{Spectral parameters of GRB 050502B.  ``$\circ$'' data points (during non-flare time periods) represent parameter values fit using an absorbed simple power law model.  ``x'' data points (during giant flare) represent parameter values fit using an absorbed power law with an exponential cutoff.  Panel 1 shows an obvious hardening during the giant flare.  During the flare, the value for $E_{cut}$ was free, but it remained at 2.5 $\pm$ 0.2 keV, except during the transition from the flare decay to the underlying lightcurve dominated emission.  $N_{H}$, shown in second panel, was a free parameter, but it was required to be above the Galactic value \citep{dic90}, which is shown as a solid line across the plot; this is the reason for the uneven error bars during the flare.  Error bars are $1\sigma$ statistical errors, assuming two parameters of interest.  Upper limits are 90\% confidence level.  \label{fig4}}
251: \end{figure}
252: 
253: \begin{figure}
254: \plotone{f5.eps}
255: \caption{An example of a spectral fit using the absorbed power law model with an exponential cutoff.  This fit used data during the rising edge of the giant X-ray flare.  Residuals of the fit are shown in the bottom panel.  \label{fig5}}
256: \end{figure}
257: \clearpage
258: \section{Energy of the Giant X-ray Flare}
259: 
260: During the time period of the giant X-ray flare, the total fluence in the 0.2--10.0 keV band was (1.2 $\pm$ 0.05) $\times 10^{-6}$ erg cm$^{-2}$.  After subtracting the underlying lightcurve data, the total fluence from the flare only is calculated to be (1.0 $\pm$ 0.05) $\times 10^{-6}$ erg cm$^{-2}$, in the same energy band.  This fluence actually exceeds the fluence measured during the prompt emission phase by BAT in higher energy bands, which was (8.0 $\pm$ 1.0) $\times10^{-7}$ erg cm$^{-2}$ in the 15--350 keV band \citep{cum05}.
261: 
262: 
263: 
264: \section{Discussion}
265: 
266: The fast variability timescales and the magnitude of the giant flare seem to favor an internal engine origin for the emission, as opposed to a mechanism associated with the afterglow.  Before looking at the supporting evidence for internal engine origin, let us first consider some afterglow-related possibilities.  Discontinuities in the jet environment can not explain the fast rise, $\sim t^{9.5 \pm 2.1}$ and small ${\delta}t_{rise}/t_{peak}\sim0.5$.  Rise and decay times associated with the forward shock encountering discontinuities are expected to be much longer than the times for these observations \citep{iok05}.  Explanations for the giant flare involving a refreshed shock are also ruled out since there is no evidence for a shift in the pre-flare versus post-flare lightcurve that would indicate energy injection into the external shock.  The pre-flare and post-flare lightcurves can be extrapolated to one another with near perfect overlap, indicating a continuous underlying afterglow extending from times well before the X-ray flare.  The giant flare is also steeper than one would expect if it was due to refreshing of the shock.  Explanations involving a reverse shock, and associated synchrotron and synchrotron self Compton emission, \citep{kob05, zha05} can be marginally accommodated by $\delta$t/t$\approx$1, however the large relative increase (factor of $\sim500\times$) of the giant flare over the afterglow and the faster variability at the peak of the flare makes these models less tenable in this case \citep{kob05,zha05}.  Furthermore, the synchrotron emission from a reverse shock model for this flare would require associated strong UV-optical flaring, which was not observed.
267: 
268: Interpreting this giant flare as the start of the afterglow phase \citep{pir05} is also inconsistent with the data.  It is apparent from the lightcurve and from the spectral index before and after the flare, that the afterglow began before the start of the X-ray flare.  The temporal power law decay index just before the flare matches the index just after the flare, as does the spectral index.  This favors independent mechanisms for production of the X-ray flare photons and the underlying afterglow photons.
269: 
270: %%% Davide's words start %%%
271: Spectroscopically the afterglow and giant flare show interesting features.  Initially, we fit the whole evolution with an absorbed power law model, i.e. that expected from an afterglow created by a blast wave shock front. We found that this model provided a marginally good description of the data only if the absorbing column was left free to vary.  The resulting evolution tracks the flux evolution: the apparent $N_H$ is initially low, increases abruptly when the flare begins, and then
272: progressively decreases back to a value consistent with the pre-flare $N_{H}$.  \citet{laz02, laz03} predicted and discussed evolution of an X-ray absorbing column due to the progressive photoionization of the absorbing ions by the burst and afterglow UV and X-ray radiation.  The recombination timescale for any reasonable density of the ambient medium is longer than the observed times and therefore the X-ray column is expected to decrease in time.  Such behavior has been observed in a few GRBs with BeppoSAX \citep{laz02, fro04}.  For the giant flare from GRB 050502B, an {\it{increase}} of the absorbing column is required at the onset of the flare, if an absorbed power law is assumed, and even this does not provide a particularly good fit.  This is hard to interpret in terms of photoionization of the absorbing medium.  Small increases of the absorbing column can be accounted for if the external medium is clumped since the surface of the emitting fireball is increasing in time due to its deceleration.  However, an increase of the column by a factor of $\sim 10$ seems unlikely since the clumps will affect only a small portion of the visible fireball.
273: %%% Davide's words end %%%
274: 
275: This apparently unrealistic $N_{H}$ increase, combined with the hypothesis that the giant flare was caused by the same mechanism as the nominal prompt emission (supported by the fast timing structure of the giant flare), motivated the fits to the data using a model that included an exponential cutoff.  This resulted in better fits to these data, and it resulted in more self consistent spectral parameters.  In particular, the $N_{H}$ no longer appeared to increase dramatically at the onset of the flare and was consistent with the Galactic value of $3.65\times10^{20}$ atoms cm$^{-2}$ \citep{dic90}.  The data does allow for the possibility that the $N_{H}$ was slightly higher after the flare, but it is certainly not required within the statistical and systematic errors that are present in the fitting procedure.  If the $N_{H}$ was slightly higher before and after the flare, with a decrease to Galactic values during the flare, this could be explained by photoionization, however, the final upper limit data point does not support this interpretation.  The simplest interpretation is that the $N_{H}$ was constant at approximately the Galactic value, with only slight fluctuations due to statistical and systematic errors.
276: 
277: %%% Davide's words begin %%%
278: As discussed above, we considered the possibility that the giant flare was due to late time internal shocks related to a late rebrightening of the inner engine.  In this case, the flare spectrum should be described with a Band function or an exponential cutoff power-law rather than a simple power-law, as is usually observed for typical prompt GRB emission.  Allowing for this extra degree of freedom, we find that a good fit can be obtained without the previously described dramatic evolution of the absorbing column.  The unabsorbed spectrum hardens sensibly during the flare, and the spectral shape is similar to that observed in X-ray flashes.  Following the giant flare, the spectral index returns to a value consistent with the softer afterglow spectrum observed before the flare.  This spectral evolution adds to the evidence discussed above for an internal shock origin of the giant flare.
279: %%% Davide's words end %%%
280: 
281: The two bumps at $\gtrsim$10$^{4}$ s can be interpreted in a variety of ways.  Observationally, they are not well constrained.  They appear to be two late and broad flares with a subsequent increase in the afterglow decay rate (i.e. steepening of the lightcurve).  This increase in the decay rate could begin any time after the peak of the second bump, thus the interpretation of the timescales is difficult.  However, it is clear that there are two significant rate increases on top of the afterglow decay.  These two bumps could be continued internal engine activity, but the longer timescales and the spectral parameters do not require this interpretation.  The bumps could be caused by density fluctuations in the external medium through which the afterglow shock is propagating.  The bumps could also be due to energy injection into the afterglow shock front and/or an associated reverse shock.  This energy could come from material emitted from the internal engine that gets emitted at a later time than the initial prompt emission or that gets emitted with a slower speed.
282: 
283: %%% Davide's words start %%%
284: The data shows no evidence of rebrightening immediately after the giant flare.  Evidence for rebrightening does not present itself until ${\gtrsim}10^4$~s.  If the giant flare is due to a delayed ejection episode from the central engine, this will eventually have to catch-up with the initially emitted ejecta and a brightening above the underlying afterglow by about a factor of 2 would be expected.  The time at which the catch-up is observed depends on the Lorentz factors of the two ejecta, on the energetics, and on the external medium properties.  In Figure 6, we explore the feasibility of this model using a contour plot of the observed time at which the re-energization would be expected to take place as a function of $\Gamma_1$ and $\Gamma_2$, the Lorentz factors of the material associated with the initial ejection episode and of the delayed one, respectively.  A total energy of $10^{52}$~erg for the initial ejection episode is assumed (relevant if the GRB lies at $z\sim1$ and the internal shock has a radiative efficiency of $\sim0.3$).  A uniform external medium with density $n=10$~cm$^{-3}$ is also assumed (assuming $n=1$~cm$^{-3}$ has only a marginal effect and does not impact conclusions).  The gray shaded area shows the region $10^4\le{t_{\rm{coll}}}\le10^5$~s, where the late time bumps of unknown origin are observed.  {\it{If}} one assumes that this model is correct, the plot shows two important things: 1) the second flow of ejecta started slower than the first one, and 2) it had a Lorentz factor $\Gamma_2\lesssim20$.
285: \clearpage
286: \begin{figure}
287: \plotone{f6.eps}
288: \caption{Contour plot of the observed time of re-energization (in seconds) due to the collision between the first ejecta, which has initial Lorentz factor $\Gamma_1$ and hypothetically produces the initial prompt emission, with the delayed ejecta, which has Lorentz factor $\Gamma_2$ and hypothetically produces the giant X-ray flare emission. The shaded region shows the area consistent with the two late time bumps that may be caused by this collision. \label{fig6}}
289: \end{figure}
290: \clearpage
291: In the simplest version of synchrotron internal shocks, where the logarithmic dispersion of the Lorentz factor does not depend on the average $\Gamma$ of the flow, the peak frequency of the spectrum is inversely proportional to the Lorentz factor \citep{ghi00}.  In the model that attempts to explain the giant flare and the late time flux increase described in the paragraph above, we see the opposite behavior: the higher the Lorentz factor, the higher the peak frequency (since the larger $\Gamma_1$ is associated with the BAT detected prompt emission and the smaller $\Gamma_2$ is associated with the giant X-ray flare).  A way out of this inconsistency is to assume that the logarithmic dispersion of Lorentz factor is smaller when the average Lorentz factor is smaller.  This would produce smaller peak frequencies for smaller Lorentz factors.  Since the spectral properties of the flare are similar to X-ray flash spectra, it is tantalizing to infer that X-ray flashes might share this property.  Alternatively, one could attempt to explain the bumps at $>10^4 s$ as being due to even later internal engine activity.  More detailed studies to model the energy budget and the timing of sporadic and late internal engine emission will be necessary to discriminate between these two competing possibilities for the bumps in the lightcurve at times $>10^4 s$.
292: %%% Davide's words end %%%
293: 
294: If one assumes the giant flare was due to a similar process as the initial prompt emission, the peak energy should be roughly proportional to ${L_{iso}}^{1/2}$, with significant spread around the expectation values, as shown for a sample of bursts by \citet{ghi05}.  Qualitatively, this is consistent with the data; the initial prompt emission relative to the giant flare emission peak luminosity is about 2 orders of magnitude higher and the peak energy decreases from ~80 keV to ~3 keV.  The downward shift of peak energy is possibly a bit more than expected by the simple scaling with ${L_{iso}}^{1/2}$, which could, in principle, be influenced by the relative Lorentz factors of the two ejection episodes.  However, the systematic errors due to the differing energy ranges of the initial prompt emission and the giant flare, as well as the measured spread in the peak energy to luminosity relationship, allow for order of magnitude variation.
295: 
296: In addition to flaring, a steepening was observed in the lightcurve beyond ${\sim}1.1\times10^{5}$ s.  One obvious interpretation of this is that a jet break has been observed.  A jet break is a steepening of the lightcurve decay that occurs when the relativistic beaming angle, which is increasing as the fireball Doppler factor is decreasing, begins to exceed the physical opening angle of the jet \citep{rho99}.  One can calculate the jet opening angle as a function of the jet break time, assuming a fireball model expanding into a constant density interstellar medium.  This leads to $\theta_0 = 7.8^{\circ} {t_{5}}^{3/8}{E_{52}}^{-1/8}{n_{ism}}^{1/8}[(1+z)/2]^{-3/8}$, where $t_{5}$ is jet break time in units of $10^{5}$ s, $E_{52}$ is isotropic energy in units of $10^{52}$ erg, $n_{ism}$ is the interstellar medium density with units $cm^{-3}$, and z is the redshift.  Assuming typical parameters and a jet break time of ${\sim}1.1\times10^{5}$ s leads to an opening angle of $\sim8.1^{\circ}$, which is within the typical range of bursts observed and studied with known redshifts \citep{blo03}.  Alternatively, this steeper slope could be interpreted as the end of a period of continuous energy injection that was feeding the afterglow shock, thus creating a shallower decay slope followed by a steepening when the continuous energy injection phase ends.  However, the work of \citet{zha05} suggests that this type of break would lead to a steepening of the lightcurve decay index to $\sim1.2$, whereas the data in this case suggest a steepening to a decay index of $\approx2.8\pm0.8$, which is more indicative of a jet break.  While the model in which the break is caused by an end to continuous energy injection is not ruled out here, it seems as though a jet break is the more likely explanation for the steepening in the lightcurve after ${\sim}1.1\times10^{5}$ s.  The data from this burst, as well as other flaring bursts found in the {\it{Swift}} XRT data, should allow much more rigorous studies of the various models and their predicted temporal and spectral parameters.
297: 
298: It is also possible, within the error bars of the temporal power law decay indices, that the underlying afterglow decay index was steeper ($\alpha\sim1.0$) throughout the whole curve and that the entire lightcurve, between the start of the giant flare and the final data point on Figure 1, was due to internal engine flaring and energy injection.  This scenario seems less likely since the features of the lightcurve and spectra before and after the giant flare match each other well and since it $\it{requires}$ even later internal engine activity.  This scenario is mentioned since it is possible within the error bars of the data; however, the data certainly do not require or suggest this interpretation.
299: 
300: \section{Conclusions}
301: 
302: The complex lightcurve of GRB 050502B has many interesting features.  The most interesting of these is a giant flare with a fast rise/decay that began at 345 $\pm$ 30 s, well after the nominal 17.5 $\pm$ 0.2 s prompt GRB phase.  This is the largest X-ray flare ever detected after the apparent cessation of prompt emission.  After compiling all of the evidence, we come to the conclusion that the simplest explanation for this flare is continued activity in the internal engine of the GRB, not associated with the afterglow external shock.  This evidence includes: 1) The temporal decay index before and after the flare are identical, indicating that the afterglow had already begun before the flare, 2) the rise time and decay time of the flare are very fast, thus the flare is difficult (although not impossible) to explain with mechanisms associated with the external shock, 3) there is even faster time structure near the peak of the flare in the band above 1 keV, 4) the spectra during the giant flare are represented better by a Band function or cutoff power law model, rather than a simple power law, 5) the spectra before and after the flare are consistent with an afterglow that has already begun before the flare and continues with approximately the same spectral index after the flare, whereas the spectra during the flare is significantly harder, 6) based on recent data there appear to be many other similar flares, although not as intense as this one, with even faster time profiles (suggesting extended internal engine activity) in up to $\sim$1/2 of the {\it{Swift}} detected GRBs.
303: 
304: The two late bumps in the lightcurve (at $> 10^{4}$ s) are not as well constrained so conclusions are not as firm.  They could be due to either more internal engine activity, such as that which created the giant flare, or they could be due to another process associated with the afterglow shock.  If one or both of these bumps is due to re-energization of the afterglow shock due to the same internal engine ejection episode that created the giant flare at $\sim$345 s, then this ejecta must have been emitted with a Lorentz factor $\Gamma_2\lesssim20$, and it must have been travelling slower than the primary ejecta that created the BAT detected prompt emission.  However, the limits on $\Gamma_2$ are obviously dependent on the presumption that the bumps at $>10^4 s$ are due to re-energization of the afterglow shock by the same ejecta responsible for the giant flare.  Although this presumption is consistent with the data, it is not the only possible explanation, as stated earlier.  We can also conclude that there was a steepening of the lightcurve at some time during or after the late bumps (i.e. after $\sim5\times10^{4}$ s).  This steepening could have been a jet break, or it could have been the end of a phase of continuous energy injection into the afterglow shock front.
305: 
306: This GRB, and the associated X-ray flare, can be most easily explained within the framework of the standard GRB fireball model \citep{mes97}, provided that there is some mechanism to feed the internal engine activity for extended time periods.  Although "Type I" collapsar models with prompt black hole formation cannot explain late time internal engine activity \citep{mac01}, the fallback of material onto the central black hole after a stellar collapse could last for long time periods \citep{woo93, mac01} and lead to late internal engine activity, albeit with significantly reduced luminosity.  Continued energy release due to dynamics of a magnetized disk around a black hole, as described by \citet{kat97}, and/or continued and sporadic emission due to fragmentation and subsequent accretion during the collapse of a rapidly rotating stellar core, as described by \citet{kin05}, could both explain observations of extended production of internal shocks.
307: 
308: In the time period since the analysis of the data from this GRB, {\it{Swift}} has detected several more GRBs with X-ray flares \citep{nou05}.  In the near future, it will be possible to use samples of many GRBs with X-ray flares to test models of long timescale prompt emission. 
309: 
310: \acknowledgments
311: 
312: %% To help institutions obtain information on the effectiveness of their
313: %% telescopes, the AAS Journals has created a group of keywords for telescope
314: %% facilities. A common set of keywords will make these types of searches
315: %% significantly easier and more accurate. In addition, they will also be
316: %% useful in linking papers together which utilize the same telescopes
317: %% within the framework of the National Virtual Observatory.
318: %% See the AASTeX Web site at http://www.journals.uchicago.edu/AAS/AASTeX
319: %% for information on obtaining the facility keywords.
320: 
321: %% After the acknowledgments section, use the following syntax and the
322: %% \facility{} macro to list the keywords of facilities used in the research
323: %% for the paper.  Each keyword will be checked against the master list during
324: %% copy editing.  Individual instruments can be provided in parentheses,
325: %% after the keyword, but they will not be verified.
326: 
327: %Facilities: \facility{{\it{Swift}}}.
328: 
329: %% The reference list follows the main body and any appendices.
330: %% Use LaTeX's thebibliography environment to mark up your reference list.
331: %% Note \begin{thebibliography} is followed by an empty set of
332: %% curly braces.  If you forget this, LaTeX will generate the error
333: %% "Perhaps a missing \item?".
334: %%
335: %% thebibliography produces citations in the text using \bibitem-\cite
336: %% cross-referencing. Each reference is preceded by a
337: %% \bibitem command that defines in curly braces the KEY that corresponds
338: %% to the KEY in the \cite commands (see the first section above).
339: %% Make sure that you provide a unique KEY for every \bibitem or else the
340: %% paper will not LaTeX. The square brackets should contain
341: %% the citation text that LaTeX will insert in
342: %% place of the \cite commands.
343: 
344: %% We have used macros to produce journal name abbreviations.
345: %% AASTeX provides a number of these for the more frequently-cited journals.
346: %% See the Author Guide for a list of them.
347: 
348: %% Note that the style of the \bibitem labels (in []) is slightly
349: %% different from previous examples.  The natbib system solves a host
350: %% of citation expression problems, but it is necessary to clearly
351: %% delimit the year from the author name used in the citation.
352: %% See the natbib documentation for more details and options.
353: 
354: \begin{thebibliography}{}
355: 
356: \bibitem[Arnaud et~al.\ (2005)]{arn05} Arnaud, K., Dorman, B., Gordon, C. 2005, Xspec User's Guide Version 12.2
357: 
358: \bibitem[Band et~al.\ (1993)]{ban93} Band, D., Matteson, J., Ford, L., et~al.\ 1993, \apj, 413, 281
359: 
360: \bibitem[Barthelmy et~al.\ (2004)]{bar04} Barthelmy, S., et~al.\ 2004, Proc. of SPIE, 5165, 175
361: 
362: \bibitem[Bloom et~al.\ (2003)]{blo03} Bloom, J.S., Frail, D.A., \& Kulkarni, S.R. 2003, \apj, 594, 674
363: 
364: \bibitem[Burrows et~al.\ (2005a)]{bur05a} Burrows, D.N., Hill, J.E., Nousek, J.A., et~al.\ 2005a, \ssr, in press; astro-ph/0508071
365: 
366: \bibitem[Burrows et~al.\ (2005b)]{bur05b} Burrows, D.N., Romano, P., Falcone, A., et~al.\ 2005b, Science, Vol. 309, Issue 5742, 1833
367: 
368: \bibitem[Cash (1979)]{cas79} Cash, W. 1979, \apj, 228, 939
369: 
370: \bibitem[Cenko et~al.\ (2005)]{cen05} Cenko, S.B., Fox, D.B., Rich, J., et~al.\ 2005, GCN Circular 3358
371: 
372: \bibitem[Connaughton (2002)]{con02} Connaughton, V. 2002, \apj, 567, 1028
373: 
374: \bibitem[Cummings et~al.\ (2005)]{cum05} Cummings, J., Barbier, L., Barthelmy, S., et~al.\ 2005, GCN Circular 3339
375: 
376: \bibitem[Dickey \& Lockman (1990)]{dic90} Dickey, J.M. \& Lockman, F.J. 1990, Ann. Rev. Astron. \& Astrophys., 28, 215
377: 
378: \bibitem[Falcone et~al.\ (2005)]{fal05} Falcone, A., Burrows, D.N., Chester, M., et~al.\ 2005, GCN Circular 3330
379: 
380: \bibitem[Frontera et~al.\ (2004)]{fro04} Frontera, F., et~al.\ 2004, \apj, 614, 301
381: 
382: \bibitem[Galli \& Piro (2005)]{gal05} Galli, A. \& Piro, L. 2005, submitted to Astron. \& Astrophys.; astro-ph/0510852
383: 
384: \bibitem[Gehrels et~al.\ (2004)]{geh04} Gehrels, N., Chincarini, G., Giommi, P., et~al.\ 2004, \apj, 611, 1005
385: 
386: \bibitem[Ghirlanda et~al.\ (2005)]{ghi05} Ghirlanda, G., Ghisellini, G., Firmani, C., Celotti, A., Bosnjak, Z. 2005, \mnras, 360, L45
387: 
388: \bibitem[Ghisellini et~al.\ (2000)]{ghi00} Ghisellini, G., Celotti, A., Lazzati, D. 2000, \mnras, 313, L1
389: 
390: \bibitem[in't Zand et al.\ (2003)]{int03} in't Zand, J.J.M., Heise, J., Kippen, R.M., et al. 2003, Proceedings of 3rd Rome Workshop, ASP Vol. 312, 18; astro-ph/0305361
391: 
392: \bibitem[Ioka et~al.\ (2005)]{iok05} Ioka, K., Kobayashi, S., \& Zhang, B. 2005, \apj, accepted; astro-ph/0409376
393: 
394: \bibitem[Katz (1997)]{kat97} Katz, J.I. 1997, \apj, 490, 633
395: 
396: \bibitem[King et~al.\ (2005)]{kin05} King, A., O'Brien, P.T., Goad, M.R., et~al.\ 2005, \apjl, accepted; astro-ph/0508126
397: 
398: \bibitem[Kobayashi et~al.\ (2005)]{kob05} Kobayashi, S., Zhang, B., M\'{e}sz\'{a}ros, P., \& Burrows, D. 2005, \apjl, submitted; astro-ph/0506157
399: 
400: \bibitem[Lazzati \& Perna(2002)]{laz02} Lazzati, D., \& Perna, R. 2002, \mnras, 330, 383 
401: 
402: \bibitem[Lazzati \&  Perna(2003)]{laz03} Lazzati, D., \& Perna, R. 2003, \mnras, 340, 694
403: 
404: \bibitem[MacFadyen et al (2001)]{mac01} MacFadyen, A.I., Woosley, S.E., \& Heger, A. 2001, \apj, 550, 410
405: 
406: \bibitem[Meegan et~al.\ (1996)]{mee96} Meegan, C.A., et~al.\ 1996, \apjs, 106, 65
407: 
408: \bibitem[M\'{e}sz\'{a}ros \& Rees (1997)]{mes97} M\'{e}sz\'{a}ros, P. \& Rees, M.J. 1997, \apj, 476, 232
409: 
410: \bibitem[M\'{e}sz\'{a}ros (2002)]{mes02} M\'{e}sz\'{a}ros, P. 2002, Ann. Rev. Astron. \& Astrophys.,40, 137
411: 
412: \bibitem[Morrison and McCammon (1983)]{mor83} Morrison, R., \& McCammon, D. 1983, \apj,270, 119
413: 
414: \bibitem[Nousek \& Shue (1989)]{nou89} Nousek, J.A. \& Shue, D.R. 1989, \apj,342, 1207
415: 
416: \bibitem[Nousek et~al.\ (2005)]{nou05} Nousek, J.A., Kouveliotou, C., Grupe, D., et~al.\ 2005, \apj, submitted; astro-ph/0508332
417: 
418: \bibitem[Pagani et~al.\ (2005)]{pag05} Pagani, C., Falcone, A., Burrows, D.N., et~al.\ 2005, GCN Circular 3333
419: 
420: \bibitem[Piro et~al.\ (2005)]{pir05} Piro, L., et~al.\ 2005, \apj, 623, 314
421: 
422: \bibitem[Piran (2005)]{piran05} Piran, T. 2005, Rev. Mod. Phys., 76, 1143
423: 
424: \bibitem[Rhoads (1999)]{rho99} Rhoads, J.E. 1999, \apj, 525, 737
425: 
426: \bibitem[Romano et~al.\ (2005)]{romano05} Romano, P., et~al.\ 2005, in preparation
427: 
428: \bibitem[Roming et~al.\ (2005)]{rom05} Roming, P., et~al.\ 2005, \ssr, in press; astro-ph/0507413
429: 
430: \bibitem[Van Paradijs et~al.\ (2000)]{van00} van Paradijs, J., Kouveliotou, C., \& Wijers, R.A.M.J. 2000, Ann. Rev. Astron. \& Astrophys.,38, 379
431: 
432: \bibitem[Watson et~al.\ (2003)]{wat03} Watson, D., Reeves, J.N., Hjorth, J., Jakobsson, P., \& Pederson, K. 2003, \apjl, 595, L29
433: 
434: \bibitem[Woosley (1993)]{woo93} Woosley, S.E. 1993, \apj, 405, 273
435: 
436: \bibitem[Zhang \& M\'{e}sz\'{a}ros (2004)]{zha04} Zhang, B. \& M\'{e}sz\'{a}ros, P. 2004, Int. Journ. of Mod. Phys. A, 19, 2385
437: 
438: \bibitem[Zhang et~al.\ (2005)]{zha05} Zhang, B., Fan, Y.Z., Dyks, J., et al. 2005, \apj, submitted; astro-ph/0508321
439: 
440: 
441: \end{thebibliography}
442: 
443: %% The following command ends your manuscript. LaTeX will ignore any text
444: %% that appears after it.
445: 
446: \end{document}
447: 
448: %%
449: %% End of file `sample.tex'.
450: