Difference between revisions of "RF Beam Bunch Selection"
From GlueXWiki
(→RF- & Beam-Related Classes) |
(→How (Default Tag) RF bunch selection works for an event WITH RF hits (DRFTime)) |
||
Line 40: | Line 40: | ||
# Of these, use tracks with matching SC hits, if any: Vote | # Of these, use tracks with matching SC hits, if any: Vote | ||
# If none, use tracks with matching hits in any detector: BCAL/TOF/FCAL: Vote | # If none, use tracks with matching hits in any detector: BCAL/TOF/FCAL: Vote | ||
+ | # If none, vote with <span style="color:#0000FF">DNeutralShower</span>'s. | ||
# If none, set <span style="color:#0000FF">DEventRFBunch</span>::<span style="color:#008000">dTime</span> to <span style="color:Red">NaN</span> | # If none, set <span style="color:#0000FF">DEventRFBunch</span>::<span style="color:#008000">dTime</span> to <span style="color:Red">NaN</span> | ||
Revision as of 18:23, 23 June 2015
Contents
Discussion / Summary
- During experimental running, the event start time is not measured. We have the (excellent resolution) time of an RF beam bunch (DRFTime), but we don't know which bunch caused the triggered event. RF bunches from the accelerator arrive every 4.008 ns (249.5 MHz), except during the Fall 2014 commissioning run, when they arrived every 2.004 ns (499 MHz). Thus, the time of the event-causing RF bunch is +/- N*4.008 ns (or +/- N*2.004 ns) from this number (N = some integer).
- To select the event-causing RF bunch (DEventRFBunch), the start-counter hit-times for all tracks with good tracking FOM (within +/- 5 sigma) are used. The tracks "vote" on an RF bunch, and the bunch with the most votes gets selected.
- The track and shower times are then compared to this DEventRFBunch time to calculate the PID FOMs.
- However, some junk and accidental tracks will vote, occasionally throwing off the event start time, and causing good events to fail PID cuts. Therefore, during an analysis, the RF bunch is re-selected separately for each particle combination, using only the tracks and showers in that particle combo (DEventRFBunch, "Combo"). The track/shower times from the BCAL/TOF/FCAL/SC are propagated to the beamline and are averaged to select the correct RF bunch.
- The charged track (DChargedTrackHypothesis, "Combo") and neutral particle (DNeutralParticleHypothesis, "Combo") PID FOMs are recomputed using this new RF time. It is these objects that are ultimately saved to the DParticleCombo "PreKinFit" object.
- To select the possible DBeamPhoton's for the particle combinations, their times are compared to the DEventRFBunch for each combo. The cut used is adjustable through the DReaction, but should be no smaller than +/- 1.002 ns. All DBeamPhoton's within this time window originated from the same RF bunch, and thus each could have caused the event. This multiplies the number of particle combinations.
RF- & Beam-Related Classes
For all of the objects below, the time & position are reported for when the beam (would have) reached the target center:
- Tagger Hits:
- DTAGMHit: Hit-level tagger microscope objects.
- DTAGHHit: Hit-level tagger hodoscope (fixed-array) objects.
- Beam photons (Stored in REST):
- DBeamPhoton: built from DTAGMHit and DTAGHHit objects.
- DBeamPhoton, "TRUTH": True (unsmeared) photon energy/time data.
- DBeamPhoton, "MCGEN": The true photon that generated the event (as opposed to the EM background photons)
- RF time (Stored in REST):
- DRFTime: The actual time is +/- 4.008*N ns this value (or +/- 2.004*N for Fall 2014 run). For MC data, the simulated "measured" value is ~0.
- DRFTime, "TRUTH": The true start time of the event (propagated to the target center) (same as DBeamPhoton, "MCGEN")
- RF Bunch:
- DEventRFBunch: The reconstruction software's best guess for the RF bunch (time) that started the event, independent of the reaction being studied.
- DEventRFBunch, "Thrown": The thrown RF bunch.
- DEventRFBunch, "Combo": The reconstruction software's best guess for the RF bunch (time) that started the event for each particle combination of each reaction that is studied.
How (Default Tag) RF bunch selection works for an event WITH RF hits (DRFTime)
- In DEventRFBunch_factory:
- Select good time-based tracks: DTrackTimeBased with greatest Tracking FOM for track, Tracking FOM > +/- 5σ
- Of these, use tracks with matching SC hits, if any: Vote
- If none, use tracks with matching hits in any detector: BCAL/TOF/FCAL: Vote
- If none, vote with DNeutralShower's.
- If none, set DEventRFBunch::dTime to NaN
- Voting:
- Propagate track/shower times to vertex
- Compare times to possible RF bunches, select the bunch with the most votes
- If there is a tie: let DBeamPhoton's vote to break tie
- If still a tie, and voting with tracks:
- Select the bunch with the most total track hits (highest total tracking NDF)
- If still a tie: Select the bunch with the lowest total chisq
- If still a tie, and voting with neutral showers:
- Select the bunch with the highest total shower energy
- If still a tie, and voting with tracks:
How (Default Tag) RF bunch selection works for an event WITHOUT RF hits (DRFTime)
- In DEventRFBunch_factory:
- Use SC hits that have a track match to compute RF time guess, if any
- Times could be modulo 2.004 / 4.008 ns still: line them up (after propagating to beamline)
- Use RF time guess to vote, just as in found-rf-time case
- If none: Set RF time as NaN
How (Combo Tag) RF bunch selection works for each combo
- In DEventRFBunch_factory_Combo:
- For each charged track in the combo, calculate its start time (from BCAL/TOF/FCAL hits), and propagate it to the target center.
- For each photon shower in the combo, calculate its start time (use DVertex position), and propagate it to the target center.
- Ignore massive neutral particles since their β is defined by the start time.
- The above particles vote: the RF bunch time with the most votes wins. The RF bunch times are the DRFTime +/- multiples of 2.004 / 4.008 ns.
- Ties are broken by σΔt