11 #ifdef ANITA_UTIL_EXISTS 104 void MakeArrayforFFT(
double *vsignalarray_e,
double *vsignal_e_forfft,
double phasedelay,
bool useconstantdelay);
248 void BoxAverage(
double *array,
const int n,
int navg);
249 int GetRx(
int ilayer,
int ifold);
365 void myconvlv(
double *timedomain_forconvl,
const int NFOUR,
double *
fdiode,
double &maxdiodeconvl,
double &onediodeconvl,
double *power_noise,
double *diodeconv);
384 void Banding(
int iband,
double *vmmhz);
385 void RFCMs(
int ilayer,
int ifold,
double *vmmhz);
495 void AntennaGain(
Settings *settings1,
double hitangle_e,
double hitangle_h,
double e_component,
double h_component,
int k,
double &vsignalarray_e,
double &vsignalarray_h);
507 double GetDiffraction(
int ilayer,
double zenith_angle,
int ifreq);
557 void calculate_single_offset(
const unsigned center_phi_sector_index,
const double angle_phi,
const double angle_theta,
double hypothesis_offset[][3]);
558 void calculate_single_offset(
const unsigned center_phi_sector_index,
const unsigned index_phi,
const unsigned index_theta,
double hypothesis_offset[][3]);
581 void fill_coherent_waveform_sum_tree(
unsigned inu,
unsigned center_phi_sector,
Settings* settings1,
double rms_noise,
double actual_rms,
unsigned window_start,
unsigned window_end,
double deg_theta,
double deg_phi,
double actual_deg_theta,
double actual_deg_phi, vector <double>& summed_wfm, vector <double>& power_of_summed_wfm,
double power);
591 #ifdef ANITA_UTIL_EXISTS 592 RFSignal *fSignalChainResponseDigitizerTuffs[2][3][16][7];
593 RFSignal *fSignalChainResponseTriggerTuffs[2][3][16][7];
594 void readImpulseResponseDigitizer(
Settings *settings1);
595 void readImpulseResponseTrigger(
Settings *settings1);
596 void calculateImpulseResponsesRatios(
Settings *settings1);
597 void readTuffResponseDigitizer(
Settings *settings1);
598 void readTuffResponseTrigger(
Settings *settings1);
599 void readTriggerEfficiencyScanPulser(
Settings *settings1);
600 void readNoiseFromFlight(
Settings *settings1);
601 void getQuickTrigNoiseFromFlight(
Settings *settings1,
double justNoise[
HALFNFOUR],
int ipol,
int iant,
int ituff);
602 TGraph *RayleighFits[2][48];
605 TGraph *gPulseAtAmpa;
606 RFSignal *fSignalChainResponseDigitizer[2][3][16];
607 RFSignal *fSignalChainResponseTrigger[2][3][16];
642 #endif //ICEMC_ANITA_HH double freq_noise[5][NPOINTS_NOISE]
Definition: anita.hh:427
vector< vector< vector< double > > > hypothesis_angles
Definition: anita.hh:549
double cwst_power
Definition: anita.hh:580
double phases_rfcm_banding[2][5][HALFNFOUR/2]
Definition: anita.hh:341
double hhGaintoHeight[NFREQ]
Definition: anita.hh:503
void GetArrivalTimesBoresights(const Vector rf_direction[NLAYERS_MAX][NPHI_MAX])
Definition: anita.cc:4025
UShort_t thresholds[2][48]
thresholds as read from the surf file: first index is pol, second is antenna number (only working for...
Definition: anita.hh:150
double rms_lab[2]
rms noise at lab chip
Definition: anita.hh:266
double gain_angle[4][NPOINTS_GAIN][7]
Definition: anita.hh:478
vector< vector< int > > vdifferent_offsets
Definition: anita.hh:551
double timedomainnoise_rfcm[2][HALFNFOUR]
Definition: anita.hh:296
double cwst_actual_deg_theta
Definition: anita.hh:568
Int_t trigEffScanApplyRingDelay[5]
Definition: anita.hh:628
int AntennaWaveformtoSurf(int ilayer, int ifold)
Definition: anita.cc:1612
double LAYER_VPOSITION[Anita::NLAYERS_MAX]
position of layers in z relative to vertical center of the payload
Definition: anita.hh:81
int maxbin_fortotal[5]
when it sums the noise and signal together it shortens the waveform
Definition: anita.hh:227
double GaintoHeight(double gain, double freq, double nmedium_receiver)
Definition: anita.cc:2676
void calculateDelaysForEfficiencyScan()
Definition: anita.cc:4661
Int_t trigEffScanPhi
Definition: anita.hh:624
Double_t deadTime
fractional deadTime
Definition: anita.hh:143
int arrayofhits_inanita[3][16][2][HALFNFOUR]
Definition: anita.hh:181
int Match(int ilayer, int ifold, int rx_minarrivaltime)
Definition: anita.cc:189
void getPulserData()
Definition: anita.cc:1316
double timedomainnoise_lab[2][HALFNFOUR]
Definition: anita.hh:297
double phases_lab_long[2][HALFNFOUR]
Definition: anita.hh:346
unsigned cwst_window_start
Definition: anita.hh:564
double cumulat_prob[9]
Definition: anita.hh:289
RX cwst_RXs[48]
Definition: anita.hh:573
void getDifferentOffsets()
Definition: anita.cc:3762
void initializeFixedPowerThresholds(ofstream &foutput)
Definition: anita.cc:569
Double_t deltaTPhaseCentre[2][NLAYERS_MAX][NPHI_MAX]
Relative to photogrammetry + ring offset.
Definition: anita.hh:88
double freq_ampl[NANTENNAS_MAX][NPOINTS_AMPL]
Definition: anita.hh:406
double f_noise[NFOUR/4]
Definition: anita.hh:282
static const unsigned N_SUMMED_PHI_SECTORS
Definition: anita.hh:451
vector< vector< double > > vdifferent_angles
Definition: anita.hh:552
unsigned int realTime_surf_max
max realtime from the surf file
Definition: anita.hh:149
void readAmplification()
Definition: anita.cc:694
double SIMON_DELTA_PHI[NLAYERS_MAX][NPHI_MAX]
measurements by Simon used in analysis ANITA-2
Definition: anita.hh:65
double time_trig[HALFNFOUR]
Definition: anita.hh:179
double diffraction[2][89][NFREQ]
Definition: anita.hh:505
double emfrac_inanita
Definition: anita.hh:222
double v_pulser[NFOUR/4]
Definition: anita.hh:283
static int WhichBand(int ibw, int ipol)
Definition: anita.cc:1631
Float_t maxadcthresh[2][48]
Definition: anita.hh:164
Double_t fRatioTriggerToA3DigitizerFreqDomain[2][3][16][7][400]
Definition: anita.hh:619
int getLabAttn(int NPOINTS_LAB, double *freqlab, double *labattn)
Definition: anita.cc:2639
Vector antenna_positions[2][NLAYERS_MAX *NPHI_MAX]
these are the antenna positions in space in a coordinate system where x=north and y=west and the orig...
Definition: anita.hh:67
Double_t fakeThresholds2[2][48]
Fake thresholds 2 (coming from converting flight scalers to thresholds)
Definition: anita.hh:153
double freqdomain_rfcm_theory[HALFNFOUR/2]
Definition: anita.hh:337
int l3type0trig_anita4lr_inanita[16][HALFNFOUR]
Definition: anita.hh:204
double timedomainnoise_rfcm_banding_long[2][5][HALFNFOUR]
Definition: anita.hh:295
double FREQ_HIGH
highest frequency
Definition: anita.hh:313
Double_t trigEffScanPulseAtAmpaUpsampled[NFOUR]
Definition: anita.hh:631
TGraph * gshort[4]
Definition: anita.hh:39
int arrayofhits_forgaryanderic[3][16][2][HALFNFOUR]
Definition: anita.hh:188
double ston[5]
signal to noise;
Definition: anita.hh:223
double time_long[NFOUR]
Definition: anita.hh:328
unsigned cwst_window_end
Definition: anita.hh:565
double dangle_inanita
Definition: anita.hh:222
double rms_rfcm[2]
rms noise just after rfcm's
Definition: anita.hh:265
Double_t trigEffScanPhiDelay[5]
Definition: anita.hh:626
double NOTCH_MIN
low edge of notch filter. This is set in the input file
Definition: anita.hh:315
double frequency_forgain_measured[NPOINTS_GAIN]
Definition: anita.hh:476
double vhGaintoHeight[NFREQ]
Definition: anita.hh:503
void calculate_antenna_positions(Settings *settings1, double pitch, double roll, double phi_spin, Vector n_north, Vector n_east)
vector< double > cwst_power_of_summed_wfm
Definition: anita.hh:579
This class represents a three-vector. Operators are overloaded to provide for the familiar operations...
Definition: vector.hh:27
double additionalDt
Definition: anita.hh:92
int irx
Definition: anita.hh:246
double scalef1[NFREQ]
Definition: anita.hh:502
double INCLINE_TOPTHREE
Definition: anita.hh:584
TTree * coherent_waveform_sum_tree
Definition: anita.hh:546
Vector cwst_0th_sector_position
Definition: anita.hh:571
static int GetLayer(int rx)
Definition: anita.cc:1594
double total_diodeinput_2_inanita[5][HALFNFOUR]
this is the waveform that is input to the tunnel diode in the second (RCP or horizontal) polarization...
Definition: anita.hh:171
double fdiode_real[5][NFOUR]
Definition: anita.hh:362
static const int NPOL
number of polarizations
Definition: anita.hh:51
double bwslice_min[5]
Definition: anita.hh:540
double diode_real[5][NFOUR]
Definition: anita.hh:361
unsigned int realTime_surf_min
min realtime from the surf file
Definition: anita.hh:148
unsigned N_STEPS_PHI
Definition: anita.hh:448
double l1window
Definition: anita.hh:436
double bwmin
Definition: anita.hh:543
double ampl_notdb[NANTENNAS_MAX][NPOINTS_AMPL]
Definition: anita.hh:408
double timedomain_output_inanita[2][5][HALFNFOUR]
this is just for writing out to the following tree
Definition: anita.hh:177
double bwslice_fwhmnoise[5]
Definition: anita.hh:421
double cwst_threshold
Definition: anita.hh:563
void getDiodeDataAndAttenuation(Settings *settings1, TString outputdir)
Definition: anita.cc:730
double INTEGRATIONTIME
Definition: anita.hh:440
double hadfrac_inanita
Definition: anita.hh:222
int l3type0trig_anita4lr_forgaryanderic[16][HALFNFOUR]
Definition: anita.hh:207
double RRX[Anita::NLAYERS_MAX]
radius that the antenna sits from the axis of the payload (feedpoint)
Definition: anita.hh:87
double avgfreq_rfcm[NFREQ]
Definition: anita.hh:253
void setTimeDependentThresholds(UInt_t realTime_flightdata)
Definition: anita.cc:4084
void myconvlv(double *timedomain_forconvl, const int NFOUR, double *fdiode, double &maxdiodeconvl, double &onediodeconvl, double *power_noise, double *diodeconv)
Definition: anita.cc:2186
double maxt_diode
Definition: anita.hh:358
static const int NANTENNAS_MAX
Definition: anita.hh:58
Double_t trigEffScanPulseAtAmpa[HALFNFOUR]
Definition: anita.hh:630
double ampl[NANTENNAS_MAX][NPOINTS_AMPL]
Definition: anita.hh:407
int tuffIndex
Definition: anita.hh:47
double time[NFOUR/2]
Definition: anita.hh:327
int channels_passing_justNoise[2][5]
channels passing. This is reset for every antenna for every event
Definition: anita.hh:242
int passglobtrig[2]
Definition: anita.hh:305
static const int NTRIG
Definition: anita.hh:57
double extraCableDelays[2][48]
Definition: anita.hh:590
int pol_allowed[2]
Definition: anita.hh:531
double Get_gain_angle(int gain_type, int k, double hitangle)
Definition: anita.cc:2060
double PHI_OFFSET[NLAYERS_MAX]
antenna offset in phi for each layer (radians)
Definition: anita.hh:74
double timedomainsignal_lab[HALFNFOUR]
Definition: anita.hh:132
double cwst_deg_phi
Definition: anita.hh:567
double timedomainsignal_rfcm[HALFNFOUR]
Definition: anita.hh:131
Double_t fakeScalers[2][48]
Fake scalers (coming from converting threhsolds during flight to scalers using threshold scan) ...
Definition: anita.hh:154
TFile * fsignals
Definition: anita.hh:269
void Initialize(Settings *settings1, ofstream &foutput, int inu, TString outputdir)
initialize a bunch of stuff
Definition: anita.cc:249
double bwslice_center[5]
Definition: anita.hh:536
static const unsigned int NUM_COHERENT_ANTENNAS
Definition: anita.hh:547
TH1F * hsignals[5]
s/n (max diode output/mean diode output) for vertical polarization in each band
Definition: anita.hh:278
int GetRx(int ilayer, int ifold)
get antenna number based on which layer and position it is
Definition: anita.cc:197
void calculate_single_offset(const unsigned center_phi_sector_index, const double angle_phi, const double angle_theta, double hypothesis_offset[][3])
Definition: anita.cc:3808
int NTRIGGERLAYERS
Definition: anita.hh:464
double freqdomain_rfcm_banding[5][HALFNFOUR/2]
Definition: anita.hh:331
void GetPhasesFromFFT(double *tmp_fftvhz, double *phases)
Definition: anita.cc:2485
double correl_lab[NPOINTS_BANDS]
Definition: anita.hh:401
RX cwst_aligned_wfms[9]
Definition: anita.hh:574
void labAttn(double *vhz)
Definition: anita.cc:2626
double INCLINE_NADIR
Definition: anita.hh:585
double avgfreqdomain_lab[HALFNFOUR/2]
Definition: anita.hh:338
double arrival_times[2][NLAYERS_MAX *NPHI_MAX]
Definition: anita.hh:373
Double_t deltaT
Definition: anita.hh:621
int whichbin[NFREQ]
Definition: anita.hh:501
double inv_angle_bin_size[6]
Definition: anita.hh:500
Ice thicknesses and water depth.
Definition: icemodel.hh:88
unsigned hypothesis_offsets[16][200][200][4][3]
Definition: anita.hh:548
TTree * tdata
writing data out for the analysers
Definition: anita.hh:273
TFile * fnoise
Definition: anita.hh:115
void GetArrivalTimes(const Vector &rf_direction, Balloon *bn1, Settings *settings1)
Definition: anita.cc:3866
double gain[2][NFREQ]
Definition: anita.hh:489
int count_getnoisewaveforms
Definition: anita.hh:391
double hvGaintoHeight[NFREQ]
Definition: anita.hh:503
void setTrigRequirement(int WHICH)
double freq[NFREQ]
Definition: anita.hh:322
TTree * tglob
Definition: anita.hh:276
TFile * fturf
Definition: anita.hh:136
void setphiTrigMask(UInt_t realTime_flightdata)
Definition: anita.cc:4057
double timedomainnoise_rfcm_long[2][HALFNFOUR]
Definition: anita.hh:298
static int AntennaNumbertoSurfNumber(int ilayer, int ifold)
Definition: anita.cc:1619
int imaxbin[5]
Definition: anita.hh:226
Int_t trigEffScanRingsUsed[3]
Definition: anita.hh:629
This class is a 3-vector that represents a position on the Earth's surface.
Definition: position.hh:26
TTree * turfratechain
Definition: anita.hh:134
double time_centered[NFOUR/2]
Definition: anita.hh:330
void setphiTrigMaskAnita3(UInt_t realTime_flightdata)
unsigned int realTime_surf
realtime from the surf file
Definition: anita.hh:147
void MakeArrayforFFT(double *vsignalarray_e, double *vsignal_e_forfft, double phasedelay, bool useconstantdelay)
Definition: anita.cc:2508
void GetNoiseWaveforms()
Definition: anita.cc:2381
~Anita()
Definition: anita.cc:175
static const int HALFNFOUR
Definition: anita.hh:119
double signal_vpol_inanita[5][HALFNFOUR]
this is the signal waveform in the vertical polarization, before converting to LCP, RCP where applicable
Definition: anita.hh:127
double DEADTIME
Definition: anita.hh:445
int antennatosurf[32]
Definition: anita.hh:525
double labattn[NPOINTS_LAB]
Definition: anita.hh:515
double peak_rx_rfcm_lab[2]
peaks of the previous arrays
Definition: anita.hh:235
double phase
Definition: anita.hh:431
double cwst_deg_theta
Definition: anita.hh:566
Double_t trigEffScanAmplitudeAtAmpa[NFREQ]
Definition: anita.hh:632
double LIVETIME
Definition: anita.hh:586
double FREQ_LOW
lowest frequency
Definition: anita.hh:312
double MIN_THETA_HYPOTHESIS
Definition: anita.hh:459
double rms_rfcm_e_single_event
This is in Volts, not mV!
Definition: anita.hh:261
double bwslice_max[5]
Definition: anita.hh:542
double peak_v_banding_rfcm[2][5]
peak V in e/h polarization after rfcm's and banding
Definition: anita.hh:229
Double_t fRatioDigitizerToA3DigitizerFreqDomain[2][3][16][7][400]
Definition: anita.hh:620
int iminbin[5]
this is the minimum bin to start
Definition: anita.hh:225
int NBANDS
number of frequency sub-bands (not counting full band)
Definition: anita.hh:122
static int GetIfold(int rx)
Definition: anita.cc:1604
TFile * coherent_datafile
Definition: anita.hh:545
double f_phases[NFOUR/4]
Definition: anita.hh:281
UShort_t l1TrigMaskH
Definition: anita.hh:142
int flag_e_inanita[5][HALFNFOUR]
Definition: anita.hh:220
double TIMESTEP
Definition: anita.hh:442
double cwst_timesteps[HALFNFOUR]
Definition: anita.hh:572
double LAYER_PHIPOSITION[Anita::NLAYERS_MAX]
phi corresponding to the position of each "layer" on the "payload"
Definition: anita.hh:86
void convert_power_spectrum_to_voltage_spectrum_for_fft(int length, double *spectrum, double domain[], double phase[])
Definition: anita.cc:2364
double timedomain_output_corrected_forplotting[2][6][HALFNFOUR]
this is just for writing out to the following tree
Definition: anita.hh:213
Double_t fTimes[HALFNFOUR]
Definition: anita.hh:615
double PHI_EACHLAYER[NLAYERS_MAX][NPHI_MAX]
phi of the center of each antenna on each layer
Definition: anita.hh:70
double freq_forplotting_long[NFOUR/2]
Definition: anita.hh:326
double peak_rx_rfcm[2]
peak voltage in e/h polarization received by the antenna
Definition: anita.hh:231
double total_vpol_inanita[5][HALFNFOUR]
this is the sum of the signal and noise in the vertical polarization, before converting to LCP...
Definition: anita.hh:129
double v_phases[NFOUR/4]
Definition: anita.hh:284
static const int NPHI_MAX
max number of antennas around in phi (in smex, 16)
Definition: anita.hh:61
Double_t trigEffScanAtt[5]
Definition: anita.hh:625
Anita()
Definition: anita.cc:58
int GAINS
Definition: anita.hh:470
double v_noise[NFOUR/4]
Definition: anita.hh:285
unsigned cwst_event_number
Definition: anita.hh:559
int NCH_PASS
Definition: anita.hh:434
void GetPhases()
Definition: anita.cc:2295
double MAX_THETA_HYPOTHESIS
Definition: anita.hh:460
TTree * tsignals
Definition: anita.hh:270
double total_diodeinput_1_inanita[5][HALFNFOUR]
this is the waveform that is input to the tunnel diode in the first (LCP or vertical) polarization ...
Definition: anita.hh:170
double bwslice_diodemean_fullband_allchan[2][48][7]
Definition: anita.hh:426
int GetRxTriggerNumbering(int ilayer, int ifold)
get antenna number based on which layer and position it is
Definition: anita.cc:208
void fill_coherent_waveform_sum_tree(unsigned inu, unsigned center_phi_sector, Settings *settings1, double rms_noise, double actual_rms, unsigned window_start, unsigned window_end, double deg_theta, double deg_phi, double actual_deg_theta, double actual_deg_phi, vector< double > &summed_wfm, vector< double > &power_of_summed_wfm, double power)
Definition: anita.cc:2685
double bwslice_enoise[5]
Definition: anita.hh:420
Double_t fSignalChainResponseDigitizerFreqDomain[2][3][16][7][400]
Definition: anita.hh:617
static int GetSurfChannel(int antenna, int ibw, int ipol)
Definition: anita.cc:1626
double THERMALNOISE_FACTOR
factor to multiply thermal noise for error analysis
Definition: anita.hh:90
int REQUIRE_CENTRE
Definition: anita.hh:467
void printDifferentOffsets()
Definition: anita.cc:3741
double total_diodeinput_2_allantennas[48][HALFNFOUR]
needs comment
Definition: anita.hh:174
UShort_t l1TrigMask
Definition: anita.hh:141
int bwslice_required[5]
Definition: anita.hh:530
int pol_required[2]
Definition: anita.hh:532
double bandsattn[5][NPOINTS_BANDS]
Definition: anita.hh:398
static const int NBANDS_MAX
max number of bands
Definition: anita.hh:50
Float_t minadcthresh[2][48]
Definition: anita.hh:163
Double_t trigEffScanPulseAtSurf[250][HALFNFOUR]
Definition: anita.hh:633
double attn_bands[5][NPOINTS_BANDS]
Definition: anita.hh:397
double freq_bands[5][NPOINTS_BANDS]
Definition: anita.hh:396
Handles everything related to balloon positions, payload orientation over the course of a flight...
Definition: balloon.hh:30
Reads in and stores input settings for the run.
Definition: Settings.h:35
int inu
Neutrino number.
Definition: anita.hh:78
TTree * tgaryanderic
writing data out for the analysers
Definition: anita.hh:274
double gainhv_measured[NPOINTS_GAIN]
Definition: anita.hh:474
double weight_inanita
Definition: anita.hh:180
Vector ANTENNA_POSITION_START[2][NLAYERS_MAX][NPHI_MAX]
antenna positions from Kurt's measurements
Definition: anita.hh:62
double LAYER_HPOSITION[Anita::NLAYERS_MAX]
distance in horizontal plane between center axis of the "payload" and each "layer".
Definition: anita.hh:85
int channels_passing[2][5]
channels passing. This is reset for every antenna for every event
Definition: anita.hh:241
unsigned int realTime_tr_max
max realtime from the turf rate file
Definition: anita.hh:146
int l3trig_anita4lr_inanita[16][HALFNFOUR]
Definition: anita.hh:205
TFile * fsurf
Definition: anita.hh:137
double freqdomain_rfcm_banding_long[5][HALFNFOUR]
Definition: anita.hh:332
int l1trig_anita3and4_inanita[2][16][HALFNFOUR]
Definition: anita.hh:191
int l1_passing
Definition: anita.hh:243
double peak_rx_signalonly[2]
peak voltage in e/h polarization received by the antenna
Definition: anita.hh:230
Double_t trigEffScanRingDelay[3]
Definition: anita.hh:627
double phases_lab[2][HALFNFOUR]
Definition: anita.hh:345
void normalize_for_nsamples(double *spectrum, double nsamples, double nsamp)
Definition: anita.cc:2356
int l3type1trig_anita4lr_forgaryanderic[16][HALFNFOUR]
Definition: anita.hh:208
double SIMON_DELTA_R[NLAYERS_MAX][NPHI_MAX]
measurements by Simon used in analysis ANITA-2
Definition: anita.hh:64
UShort_t scalers[2][48]
scalers as read from the surf file: first index is pol, second is antenna number (only working for An...
Definition: anita.hh:151
double gainh_measured[NPOINTS_GAIN]
Definition: anita.hh:473
double phases_rfcm_long[2][HALFNFOUR]
Definition: anita.hh:344
unsigned int realTime_tr_min
min realtime from the turf rate file
Definition: anita.hh:145
double scalef2[NFREQ]
Definition: anita.hh:502
double TRIG_TIMESTEP
Definition: anita.hh:447
double phases_rfcm[2][HALFNFOUR/2]
Definition: anita.hh:343
void Set_gain_angle(Settings *settings1, double nmedium_receiver)
Definition: anita.cc:1679
int PERCENTBW
percent bandwidth
Definition: anita.hh:124
int l1_passing_allantennas[48]
Definition: anita.hh:244
static const int NLAYERS_MAX
max number of layers (in smex design, it's 4)
Definition: anita.hh:59
void SetNoise(Settings *settings1, Balloon *bn1, IceModel *antarctica)
Definition: anita.cc:222
int l1trig_anita4lr_forgaryanderic[3][16][HALFNFOUR]
Definition: anita.hh:197
double bwslice_rmsdiode[2][5]
Definition: anita.hh:422
int bwslice_allowed[5]
Definition: anita.hh:529
void BoxAverage(double *array, const int n, int navg)
Definition: anita.cc:2604
int trigRequirements[NLAYERS_MAX]
Definition: anita.hh:521
double impedence
Definition: anita.hh:430
double timedomainnoise_lab_long[2][HALFNFOUR]
Definition: anita.hh:299
double freq_forfft[NFOUR]
Definition: anita.hh:323
double vmmhz_banding_rfcm[NFREQ]
V/m/MHz after banding and rfcms.
Definition: anita.hh:259
int l2trig_anita4lr_inanita[16][3][HALFNFOUR]
Definition: anita.hh:200
double MAX_PHI_HYPOTHESIS
Definition: anita.hh:458
int noiseeventcounter
counts which event we're on so we go in order
Definition: anita.hh:310
unsigned N_STEPS_THETA
Definition: anita.hh:449
int l2trig_anita4lr_forgaryanderic[16][HALFNFOUR]
when it passes 2/3
Definition: anita.hh:202
double cwst_actual_rms
Definition: anita.hh:562
double bwslice_dioderms_fullband_allchan[2][48][7]
Definition: anita.hh:425
static const int NPOINTS_GAIN
Definition: anita.hh:471
double gainv_measured[NPOINTS_GAIN]
Definition: anita.hh:472
double timedomain_output_allantennas[2][48][HALFNFOUR]
this is across all antennas, just the full band
Definition: anita.hh:216
void setDiodeRMS(Settings *settings1, TString outputdir)
Definition: anita.cc:878
double bwslice_meandiode[5]
Definition: anita.hh:423
static const int NPOINTS_NOISE
Definition: anita.hh:412
double vmmhz_banding[NFREQ]
V/m/MHz after banding.
Definition: anita.hh:258
int ntuffs
Definition: anita.hh:635
double peak_rx_rfcm_signalonly[2]
peak voltage in e/h polarization received by the antenna
Definition: anita.hh:233
double THETA_ZENITH[NLAYERS_MAX]
how the antenna is tilted in theta (in radians with 0=up)
Definition: anita.hh:75
Double_t fSignalChainResponseA3DigitizerFreqDomain[2][3][16][400]
Definition: anita.hh:616
TTree * surfchain
Definition: anita.hh:135
int number_all_antennas
this keeps count of the number of antennas for use with timing calculations, etc. ...
Definition: anita.hh:48
unsigned cwst_center_phi_sector
Definition: anita.hh:560
void SetDiffraction()
Definition: anita.cc:1527
unsigned int realTime_turfrate
realtime from the turf rate file
Definition: anita.hh:144
double probability[5]
Definition: anita.hh:419
static const int NFOUR
Definition: anita.hh:118
int iwindow[5]
Definition: anita.hh:360
static const int NTRIGGERLAYERS_MAX
Definition: anita.hh:60
double energythreshold
Definition: anita.hh:456
static const int NTRIGPHISECTORS
Definition: anita.hh:468
void ReadGains()
Definition: anita.cc:1413
UShort_t phiTrigMask
Definition: anita.hh:139
std::string stemp
Definition: anita.hh:36
static const int NPOINTS_AMPL
Definition: anita.hh:405
int TUFFstatus[3]
Definition: anita.hh:634
TF1 fdiode
Definition: anita.hh:357
Double_t fSignalChainResponseTriggerFreqDomain[2][3][16][7][400]
Definition: anita.hh:618
double cumulat_prob_plus1[9]
Definition: anita.hh:290
double bwslice_width[5]
Definition: anita.hh:537
double gainvh_measured[NPOINTS_GAIN]
Definition: anita.hh:475
double avgfreq_rfcm_lab[NFREQ]
Definition: anita.hh:254
double reference_angle[7]
Definition: anita.hh:498
UShort_t phiTrigMaskH
Definition: anita.hh:140
double freq_forfft_long[2 *NFOUR]
Definition: anita.hh:325
void calculate_all_offsets(void)
Definition: anita.cc:3687
double f_pulser[NFOUR/4]
Definition: anita.hh:280
double cwst_rms_noise
Definition: anita.hh:561
void RFCMs(int ilayer, int ifold, double *vmmhz)
Definition: anita.cc:1661
static const int npointThresh
Definition: anita.hh:160
vector< double > cwst_summed_wfm
Definition: anita.hh:578
Float_t threshScanThresh[2][48][npointThresh]
adc thresholds from threshold scan
Definition: anita.hh:161
double NOTCH_MAX
Definition: anita.hh:316
double VNOISE_ANITALITE[NPHI_MAX]
Definition: anita.hh:583
double powerthreshold[5]
Definition: anita.hh:432
int nnoiseevents
total number of noise events we're choosing from
Definition: anita.hh:309
double timedomainnoise_rfcm_banding[2][5][HALFNFOUR]
Definition: anita.hh:294
double avgfreqdomain_lab_long[HALFNFOUR]
Definition: anita.hh:339
void GetPayload(Settings *, Balloon *)
Definition: anita.cc:2715
double cwst_actual_deg_phi
Definition: anita.hh:569
int rx_minarrivaltime
Definition: anita.hh:372
double noisetemp[NANTENNAS_MAX][NPOINTS_AMPL]
Definition: anita.hh:409
static const int nsamp
Definition: anita.hh:441
static const unsigned N_SUMMED_LAYERS
Definition: anita.hh:452
Contains everything about positions within payload and signals it sees for each event, in both the trigger and signal paths.
Definition: anita.hh:32
double vvGaintoHeight[NFREQ]
Definition: anita.hh:503
static const int NPOINTS_BANDS
Definition: anita.hh:394
void getDiodeModel()
Definition: anita.cc:2110
Float_t threshScanScaler[2][48][npointThresh]
scalers from threshold scan
Definition: anita.hh:162
int iturfevent
Definition: anita.hh:158
double VNOISE[NLAYERS_MAX]
Definition: anita.hh:518
int BANDING
Definition: anita.hh:318
double ANTENNA_DOWN[NLAYERS_MAX][NPHI_MAX]
down angles of antennas from Kurt's measurements
Definition: anita.hh:63
double powerthreshold_nadir[5]
Definition: anita.hh:433
double MIN_PHI_HYPOTHESIS
Definition: anita.hh:457
TFile * fdata
Definition: anita.hh:272
void Banding(int j, double *freq_noise, double *powerperfreq, int NPOINTS_NOISE)
Definition: anita.cc:1635
Vector cwst_rf_direction
Definition: anita.hh:570
static const int NFREQ
Definition: anita.hh:53
double GetDiffraction(int ilayer, double zenith_angle, int ifreq)
Definition: anita.cc:1558
int iturf
Definition: anita.hh:156
double phases[5][HALFNFOUR]
Definition: anita.hh:301
double bwslice_vrms[5]
Definition: anita.hh:424
double correl_banding[5][NPOINTS_BANDS]
Definition: anita.hh:400
double flare[4][NFREQ]
Definition: anita.hh:488
int isurf
Definition: anita.hh:157
Double_t fakeThresholds[2][48]
Fake thresholds (coming from converting fake scalers to thresholds)
Definition: anita.hh:152
double freq_forplotting[NFOUR/4]
Definition: anita.hh:324
void AntennaGain(Settings *settings1, double hitangle_e, double hitangle_h, double e_component, double h_component, int k, double &vsignalarray_e, double &vsignalarray_h)
Definition: anita.cc:1467
double integral_vmmhz_foranita
Definition: anita.hh:306
int PHITRIG[NLAYERS_MAX]
Definition: anita.hh:466
double total_diodeinput_1_allantennas[48][HALFNFOUR]
this is across all antennas, just the full band
Definition: anita.hh:173
void FromTimeDomainToIcemcArray(double *vsignalarray, double vhz[NFREQ])
Definition: anita.cc:2494
TTree * tdiode
Definition: anita.hh:116
double freqlab[NPOINTS_LAB]
Definition: anita.hh:513
void readVariableThresholds(Settings *settings1)
Definition: anita.cc:631
void BoxAverageComplex(double *array, const int n, int navg)
Definition: anita.cc:2580
int idelaybeforepeak[5]
Definition: anita.hh:359
int flag_h_inanita[5][HALFNFOUR]
Definition: anita.hh:221
static int SurfChanneltoBand(int isurf)
Definition: anita.cc:1565
void GetArrayFromFFT(double *tmp_fftvhz, double *vhz_rx)
Definition: anita.cc:2464
int GetBeamWidths(Settings *settings1)
Definition: anita.cc:1799
static const int NPOINTS_LAB
Definition: anita.hh:511
double freqdomain_rfcm[HALFNFOUR/2]
Definition: anita.hh:334
int NRX_PHI[NLAYERS_MAX]
number of antennas around in each layer. (radians)
Definition: anita.hh:69
double bwslice_thresholds[5]
Definition: anita.hh:528
double SIGMA_THETA
Definition: anita.hh:588
static int GetAntennaNumber(int ilayer, int ifold)
Definition: anita.cc:1589
double phases_rfcm_banding_long[2][5][HALFNFOUR]
Definition: anita.hh:342
double maxthreshold
Definition: anita.hh:527
double minsignalstrength
Definition: anita.hh:438
int USEPHASES
Definition: anita.hh:462
double freqdomain_rfcm_long[HALFNFOUR]
Definition: anita.hh:335
double bwslice_vnoise[NLAYERS_MAX][5]
Definition: anita.hh:416
int l1trig_anita4lr_inanita[3][16][HALFNFOUR]
Definition: anita.hh:195