LAT Software Overview: ACD, TKR, and CALStart for Wed., 02/18/09 Gleam Diagram/Digi/Leon p.7. Start with:
package ldfReader
package LdfEvent
The ldfEvent package defines the LDF-specific TDS classes The LdfConverter package handles ldf or ebf input, either raw or "FITSified", storing digis in the usual place in the TDS. It depends on the ldfReader package to parse the input file.The LDF Online's library EventSummary::marker routine is used to determine if the retrieved event is a data event or not. A marker == 0 denotes a data event (from Jim Panette 6/22/2004) non-zero makrers are non-data events..where marker == 5 is a "sweep event"...whatever that means.. package LdfConverter
Transient Data Store: Event package AcdRecon
Gleam ROOT Outputs: Gleam Ntuple Outputs: Summary Ntuples (Merit and Analysis): Latest Versions The LAT identifies and measures the flux of cosmic Gamma-rays with energies from ~10 MeV to ~300 GeV. Gamma-rays: pass undetected through the anticoincidence detector; convert to electron-positron pairs in the tracker; and deposit their energies in the calorimeter (CAL). The instrument triggers when a track segment traverses any three contiguous silicon layers. Key LAT Hardware Components
Onboard Electronics System includes:
Note: Heavy ion events are collected in parallel to photons for science data, thanks to a flexible trigger logic that is able to select different type of events and activate specific readout modes. Heavy ions are triggered by a special high level discriminator in the ACD and followed to the CAL using TKR information. Anticoincidence DetectorSee Goddard's LAT: ACD Publications and Presentations The ACD issues a trigger veto if it's threshold is exceeded, which serves as a "throttle" on the LAT's hardware event trigger. Segmentation. The anti-coincidence detector (ACD) consists of 89 plastic scintillator tile segments, which surround the top and sides of the LAT and achieves an efficiency of 99.97 for charged particle detection (i.e., events caused by electrons, protons, or heavier nuclei striking the LAT). Charged Particle Detection vs. Backsplash. Charged particles striking the LAT produce "tracks", or signals that are "lined up" in the segments of the TKR and CAL. If an event is caused by a charged particle, the track will also point towards the ACD segment that was struck. However, when a high-energy gamma-ray strikes the LAT, it can produce secondary photons that "splash" out of the CAL and can trigger an ACD file, and the track from this "backsplash" will not line up with the ACD tile that was struck by the gamma-ray. Therefore, the coincident presence of backsplash may be the valuable signature of a high-energy gamma-ray, in which case, the veto signal issued by the ACD whenever a tile is struck is ignored, end the event is read out of the LAT, stored in the LAT's solid-state recorder (SSR), and ultimately transmitted to the ground software for further analysis.
TrackerThe Tracker consists of 16 identical tower modules arranged in a 4x4 array. Each tower has a 36x36 cm surface area and is equipped with 18 x and 18 y planes of silicon-strip detectors and tungsten foils acting as gamma-ray converters. The detectors are supported by a carbon composite structure composed of a stack of 19 panels called trays. Thickness of the tungsten foils is 3% radiation length for the upper 12 trays (light-converter trays), and 18% for the next 4 trays (thick-converter trays). The last 3 trays do not have tungsten foils. Each tray is rotated 90 degrees with respect to the one above or below. Detectors on the bottom of a tray combine with those on the top of the tray below to form a 90 degree stereo x,y pair with a 2 mm gap between them and with the tungsten converter foils located just above. All but the top and bottom trays of the tower have silicon strip detectors on both the upper and lower faces. Hence, charged particles pass through up to 36 layers of position-sensitive detectors, leaving behind tracks pointing back toward the origin of the gamma-ray. The ray's energy is then measured by the calorimeter, located beneath each tracker. By measuring total energy, it is then possible to compute the distance of the source. Photons are detected as discrete "events", consisting of the tracks (energy deposit) left by ionizing particles in different parts of the instrument. These events need to be classified as incident charged particles or photon-induced particle pairs. The ability to separate charged particles from gamma-ray pair events determines the level of background contaminating the sample. ============== Instrument Triggering and Onboard Data Flow:Hardware Trigger. The hardware trigger, based on prescribed combinations of special signals from each tower, initiates readout. Function:
Onboard Processing:
Trigger and Filter Rates SummaryTrigger:
Filter:
=========== Background Flux: ??? Geometry detail includes:
Background Flux CalculationNote to self: LAT-Rochester-1.pdf pp. 4-5; Also see Background Flux Review - J. ormes et al., LAT-TD-08316-01:
Simulation (Based on GEANT4)See: LAT-Rochester-1.pdf pp 6; Interaction Physics: ???
Propagation:
Information from actual LAT tests:
Overall Deadtime Effects: ??? Instrument Response:
================ TkrRecon Services There are three+ services in the TkrRecon package:
See Doxygen (latest): Tkr Recon Pattern Recognition and Fitting
================================ See Doxygen (latest): CalRecon Measuring Energy Deposit in the CALThree methods are used to measure the energy deposit in the calorimeter:
See Doxygen (latest): AcdRecon ACD AnalysisThe ACD is approximately 99.97% efficient for minimum-ionizing particles (MIPs). However, there are places where, because of gaps in the ACD coverage, charged tracks may fail to produce a signal in any tile. The ACD analysis identifies these gaps to remove sources fo background. TkrReconAlgClustering:
Track Fitting and Vertexing:
Iterative TKR Reconstruction Algorithms: Data Processing Steps (from Inst. Data Analysis Primer):Raw data sets (LDF.FITS) are translated into FITS format, which is readable by the reconstruction digi.root reconstruction software. Digi.root data is then processed with calibration software to generate the calibration constants files. The constants files are loaded into the primary SAS database (???) , which provides a format-independent interface to allow the reconstruction software to retrieve constants when needed. The reconstruction software produces calibrated data files (recon.root). ========================================================== Alignment Constants File: Elements subject to alignment:
Example (for simulation):
??????????
???How it's done:
==========================================================
Ground-based Software
Data Flow: MOC to ISOCGleam Reconstruction ApplicationData Flow in the Gaudi Framework An I/O and analysis package called ROOT allows C++ objects to be stored inside a file. The ROOT I/O package is designed to create compact files, as well as allow for efficient access to the data. The tree structure of the ROOT files allows a subset of the branches to be manipulated, reducing the amount of I/O required. A C++ script extracts likely photon events and creates a new truncated ROOT file. (See Fig. 1, "Logical structure of the raw data stored in ROOT".) ROOT files containing data (whether from the satellite, simulation software, or some other source, e.g., beam test data) all have the same internal structure, allowing I/O and low-level analysis routines to be shared. Detailed Monte Carlo truth, detector digitization, and reconstruction data are stored in ROOT files. (See Fig. 2, "Data flow from simulations and the ??? through reconstruction".)
ReconEvent reconstruction:
Note: Tracks that extrapolate to a fired ACD tile can be identified. TKER TowerA tracker tower consist of strips of silicon detectors arranged in pairs, with each element of the pair providing a separate measurement in one direction (X or Y) perpendicular to the tower axis. Reconstruction is initally done in separate Z-X and Z-Y projections. Projections are associated with each other whenever possible by matching tracks with respect to length and starting positions. Multiple Coulomb Scattering (MS). In the absence of interactions, particle trajectories would be straight lines. However, the converter foils needed to produce the interactions (as well as the rest of the material in the detector), cause the particle to under go multiple Coulomb scattering (MS) as they traverse the tracker, complicating both pattern recognition (i.e., finding the particles) and track fitting (determining the particle trajectories), particularly for low-energy electrons and positrons. Pattern recognition must therefore be sensitive to particles whose trajectories depart significantly from straight lines. The presence of multiple scattering also has implications for the fitting procedure. Without MS, deviations from a straight line are due solely to meeasurement errors, which occur independently at each measurement plane and are distributed about the true straight track. In the presence of MS, there are real random deviations from a straight line,and these deviations are correlated from one plane to the next. For example, if an individual particle scatters to the right at one plane, it is more likely to end up to the right of the original undeviated path than to the left. Covariance Matrix. These correlations can be quantified in a covariance matrix of the measurements, which is caluclated from the momentum of the particle and the amount of scattering materal between the layers. The dimension of this matrix is the number of measurements. Solving for the track parameters in terms of the mesurements involves inverting this matrix. If ther is no MS, the matrix is diagonal, and the inversion is trivial; MS introduces off-diagonal elements, which complicates the inversion. Kalman Filter (KF). The Kalman Filter technique can be useful in both stages of particle reconstruction. First, the initial position, direction, and energy of the particle is estimated. The energy of the particle is based on the response of the calorimeter, and the starting point and direction are derived by looking for three successive hits that line up within some limits. From this starting point, the track is extrapolated in a straight line to the next layer. Using the estimate of the energy and the amount of material traversed, a decision is made whether the hit in the next layer is within a distance from the extrapolated track allowed by the expected multiple scattering and the uncertainty of the initial estimate. If so, the hit is added to the track, and the position and direction of the track at this plane are modified, incorporating the information from the newly added hit. The modified track is now extrapolated to the next plane, and the process continues until there are no more planes with hits. All the correlations between layers have been properly taken into account but, at each step, only MS between two successive planes need be considered, and the covariance matrix required is that of the parameters. The track parameters at the last hit have now been calculated using the information from all the preceding hits. To get the best estimate of the initial direction of the photon, however, it is necessary to know the parameters at the first hit, close to the point where the photon converts to an electron-positron pair. Smoothing. At this point, smoothing is applied, i.e., the KF is "run backwards" from the last plane to the first, using the appropriate matrices. After smoothing, the track parameters, and their errors have been calculated at each of the measurement planes; in particular, the first plane.
CalorimeterA high-energy photon traversing material loses its energy by an initial pair-production process The calorimeter provides information about the total energy of the shower, as well as the position and direction , and shape of the shower; or of the penetrating nucleus or muon. It consiststs of eight layers of ten CsI(TI) crystals ("logs") in a hodoscopic arrangement, e.e., alternatively oriented in X and Y directions, to provide an image of the electromagnetic shower. It is designed to measure photon energies from 20 MeV to 300 GeV and beyond. To comfortably contain photons with energies in the 100-GeV range requires a calorimeter at least twenty radiation lengths thick. However, weight constraints forced limiting Fermi's calorimeter to only ten radiation lengths in thickness; thus, it cannot provide good shower containment for high-energy photons, even though they are very precious for several astrophysics topics. The mean fraction of the shower contained at 300 GeV is about 30% for photons at normal incidence, at which the energy observed is very different from the incident energy; the shower development fluctuations become larger, and the resolution quickly decreases. Correcting for Shower Leakage: Method 1 (Shower-profiling). Fit a mean shower profile to observed longitudinal profile. The profile-fitting method proves to be an efficient way to correct for shower leakage, especially at low-incidence angles when the shower maximum is not contained. After the correction is applied, the resolution (as determined from a simulation) is 18% for on-axis TeV photons – animprovement by a factor of two over the result of correcting the energy with a response function based on path length and energy alone. Correcting for Shower Leakage: Method 2 (Leakage-correction). Use the correlation between the escaping energy and the energy deposited in the last layer of the calorimeter. The last layer carries the most important information concerning the leaking energy: the total number of particles escaping through the back should be nearly proportional to the energy deposited in the last layer. Both correction methods significantly improve the resolution. The correlation method is more robust, since it does not rely on fitting individual showers, but its validity is limited to relatively well-contained showers, making it difficult to use at more than 70 GeV for low-incidence-angle events. There is still some room for improvement in energy reconstruction especially by correcting for losses in the passive material between the different calorimeter modules and out the sides. Event SelectionBackground rejection performs the function of particle identification, determining whether the incoming particle was a photon.With the hich charged-particle flux in space, shower fluctuations in background interactions can mimic photon showers in non-negligible numbers. Cuts are a pplied to the events to suppress the background. Description of an implementation of a set of simple and intuitive cuts basted partly on previous experience with EGRET: First, all events are reconstructed, but only events in which none of the ACD tiles fired are considered. (Note: This cut could be applied before any reconstruction, but reconstructing all events is useful in comparing the data with simulations.) The cut eliminates 90% of triggered events. Most of the rejected events consist of charged particles, but a few legitimate photons are also rejected if, for example, one of the particles in the shower exits the detector through the sides or top, and fires an ACD tile. Next, the reconstructed tracks are tested for track quality, formed from a combination of goodness-of-fit, length of track, and number of gaps on the track. Also, an energy-dependent cut removes events with tracks that undergo an excessive amount of scattering. Finally, it is required that there be a downward-going vee in both views, and that both tracks in the vee extrapolate to the calorimeter. (This will introduce some inefficiency for high-energy photons, and for highly asymmetric electron-positron pairs. Vees with opening angles that are too large, >60o, are rejected. Such vees generally come from photons with energies below the range of interest.) ===== Other development paths: additional cuts involving extra particles in the event and extra hits not associated with tracks. ======= looking at the spatial distribution of energy in the calorimeter as a way of distinguishing electromagnetic from hadronic showers, and from the showers of photons traveling upward through the instrument. Fig. 4 shows a photon that converts in the tracker and deposits energy in the calorimeter. "a reconstructed photon. Note the vee in the tracker, the energy deposited in the calorimeter, and the absence of any signals in the ACD. Event Reconstruction in a Nutshell - Toby (Baseline-Preliminary Design Review, Jan 9, 2002)
|