Skip to content

Conversation

@AlanSalcedo
Copy link
Member

@AlanSalcedo AlanSalcedo commented Dec 10, 2024

This pull request introduces cross-polarization (cross-pol) support in the antenna factor calculations. The modifications ensure that both co-pol and cross-pol effective heights, gains, and phases are applied in the simulation framework for all types of events (neutrinos, pulsers, etc).

Key Changes:

  • Updated functions to compute cross-pol gains and effective heights alongside co-pol values.
  • Updated the ApplyAntFactors_Tdomain and related methods to support and apply cross-pol factors.

Note: I tried to keep changes minimal. The only repeated work is having to calculate cross-pol effects in each event type. This repetition of event types is fixed -I believe- in the ongoing multitriggers branch, so I will not pursue it now.

Also, the overall amplitudes of the pulsers will be discussed on the reco/sources call on Dec. 12, 2024. It's a matter of modifying a coefficient.

Usage:

Just add CROSSPOL_RX=1 and/or CROSSPOL_TX=1 to your setup file. They are set to 0 by default to return to the nominal state of the code. Only EVENT_TYPE=12 (REAL PULSER SIMS) requires CROSSPOL_TX=1.

Supporting plots:

Here are the signal-only waveforms for a simple pulser simulation (EVENT_TYPE=11). A simple pulser considers a pulse not emitted by a transmitting antenna (no anttena amplification during transmission):

The order of the images is:
(1) No x-pol
(2) Yes Tx x-pol
(3) Yes Rx x-pol
(4) Yes Tx and Rx x-pol

Because there's no Tx response, we expect (1) = (2), (3)=(4), and x-pol Rx showing in both (3) and (4).

waveform_SIMPLE_PULSER_NO_XPOL
waveform_SIMPLE_PULSER_YES_XPOL_TX
waveform_SIMPLE_PULSER_YES_XPOL_RX
waveform_SIMPLE_PULSER_YES_XPOL_RX_AND_TX

Here are the signal-only waveforms for a real pulser simulation (EVENT_TYPE=12)

The order of the images is:
(1) No x-pol
(2) Yes Rx x-pol
(3) Yes Tx x-pol
(4) Yes Rx and Tx x-pol

We expect (2) to show something on Hpols, (3) to also show something on Hpols but different than (2), and (4) to show the linear addition of the voltages.

waveform_REAL_PULSER_NO_XPOL
waveform_REAL_PULSER_YES_XPOL_RX
waveform_REAL_PULSER_YES_XPOL_TX
waveform_REAL_PULSER_YES_XPOL_RX_AND_TX

More documentation later this week. For now:

I made sure to consider the amplitude after Tx to be that of a vector (because it's an electric field) so the amplitude is sqrt(E_tx_xpol^2 + E_tx_copol^2). At the receiver, the voltages add linearly because we're adding the components of the electric field projected onto their effective heights.

Alan Salcedo Gomez and others added 23 commits December 3, 2024 16:01
…actors_Tdomain*_new everywhere and drop the old function afterward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants