TruthAnitaEvent.cxx
1 
9 #include "TruthAnitaEvent.h"
10 
11 ClassImp(TruthAnitaEvent);
12 
14 {
15 
16  run =-1;
17  realTime = 0;
18  eventNumber = 0;
19  memset(balloonPos,0,sizeof(balloonPos));
20  memset(balloonDir,0,sizeof(balloonDir));
21  memset(nuPos,0,sizeof(nuPos));
22  memset(nuDir,0,sizeof(nuDir));
23  nuMom = 0;
24  showerE= 0;
25  memset(rfExitPos,0,sizeof(rfExitPos));
26  memset(rfExitPos,0,sizeof(rfExitPos));
27  nu_pdg = -999;
28  memset(e_component,0,sizeof(e_component));
29  memset(h_component,0,sizeof(h_component));
30  memset(e_component_k,0,sizeof(e_component_k));
31  memset(h_component_k,0,sizeof(h_component_k));
32  memset(n_component_k,0,sizeof(n_component_k));
33  memset(hitangle_e,0,sizeof(hitangle_e));
34  memset(hitangle_h,0,sizeof(hitangle_h));
35  memset(vmmhz,0,sizeof(vmmhz));
36  vmmhz_max = -999;
37  payloadPhi = -999;
38  payloadTheta = -999;
39 
40  sourceLon = -999;
41  sourceLat = -999;
42  sourceAlt = -999;
43  weight = -1;
44  weight1 = -1;
45  phaseWeight =-1;
46  timeWeight=-1;
47  sourceTimeWeight = -1;
48  projectedArea=-1;
49  RA=-999;
50  dec=-999;
51  objName="None";
52  source_index = -1;
53 
54  memset(fTimes,0,sizeof(fTimes));
55  memset(fSignalAtTrigger,0,sizeof(fSignalAtTrigger));
56  memset(fNoiseAtTrigger,0,sizeof(fNoiseAtTrigger));
57  memset(fSignalAtDigitizer,0,sizeof(fSignalAtDigitizer));
58  memset(fNoiseAtDigitizer,0,sizeof(fNoiseAtDigitizer));
59  memset(fDiodeOutput,0,sizeof(fDiodeOutput));
60  memset(SNRAtTrigger,0,sizeof(SNRAtTrigger));
61  memset(SNRAtDigitizer,0,sizeof(SNRAtDigitizer));
62  maxSNRAtTriggerV = 0;
63  maxSNRAtTriggerH = 0;
66  memset(thresholds,0,sizeof(thresholds));
67  tuffIndex=-1;
68 
69  canary_09f91102 = 0x09f91102;
70  canary_12345 = 0x12345;
71  canary_deadbeef = 0xdeadbeef;
72  canary_c0fefe = 0xc0fefe;
73 
74  weight_prob = 0;
75 
76  //Default Constructor
77 }
78 
80  //Default Destructor
81 
82  if (canary_09f91102 != 0x09f91102) fprintf(stderr,"WARNING: Canary value changed, expected %x, got %x",0x09f91102, canary_09f91102);
83  if (canary_12345 != 0x12345) fprintf(stderr,"WARNING: Canary value changed, expected %x, got %x",0x12345, canary_12345);
84  if (canary_deadbeef != 0xdeadbeef) fprintf(stderr,"WARNING: Canary value changed, expected %x, got %x",0xdeadbeef, canary_deadbeef);
85  if (canary_c0fefe != 0xc0fefe) fprintf(stderr,"WARNING: Canary value changed, expected %x, got %x",0xc0fefe, canary_c0fefe);
86 
87 }
Double_t h_component_k[48]
Component of the e-field along the rx h-plane.
Double_t rfExitPos[5][3]
Position where the RF exits the ice- 5 iterations, 3 dimensions each.
Double_t payloadPhi
Phi of signal in payload coordinates (degrees)
Double_t projectedArea
If in unbiased mode, the appropriate sampling area for this interaction.
Double_t weight
Weight assigned by icemc.
Int_t nu_pdg
Neutrino PDG code.
Double_t sourceLat
RF position when leaving the ice: Latitude (using icemc model)
Double_t showerE
Shower energy.
Double_t timeWeight
Relative Time weight assigned by icemc.
Double_t n_component_k[48]
Component of the e-field along the normal.
Int_t source_index
Name of the source.
Int_t canary_deadbeef
this shoudl always equal 0xdeadbeef
Double_t sourceLon
RF position when leaving the ice: Longitude (using icemc model)
Double_t sourceAlt
RF position when leaving the ice: Altitude (using icemc model)
Double_t fSignalAtDigitizer[12 *9][260]
Array of signal at digitizer.
Double_t sourceTimeWeight
Relative Time weight for the given source assigned by icemc.
TruthAnitaEvent()
Default constructor.
Double_t balloonPos[3]
Balloon position.
Int_t canary_c0fefe
this shoudl always equal 0xc0fefe
Double_t vmmhz[128]
V/m/MHz at balloon (128 frequency bins)
Double_t fNoiseAtDigitizer[12 *9][260]
Array of noise at digitizer.
TString objName
Declination of source.
Double_t fNoiseAtTrigger[12 *9][260]
Array of noise at trigger.
Double_t maxSNRAtTriggerV
Max SNR at trigger V-POL.
Short_t tuffIndex
TUFF configuration index.
Double_t dec
Right ascension of source.
Double_t h_component[48]
H comp along polarization.
UInt_t realTime
unixTime of readout
Double_t hitangle_h[48]
Hit angles rel. to h plane stored for each antenna.
TruthAnitaEvent – The Truth ANITA Event.
Double_t e_component[48]
E comp along polarization.
Double_t weight1
Absorption weight assigned by icemc.
Double_t weight_prob
weight including probability of interacting!
~TruthAnitaEvent()
Destructor.
Double_t nuDir[3]
Neutrino direction.
Double_t e_component_k[48]
Component of e-field along the rx e-plane.
Double_t maxSNRAtDigitizerV
Max SNR at digitizer V-POL.
Double_t nuMom
Neutrino momentum.
Double_t vmmhz_max
Maximum signal at balloon (V/m/MHz)
Double_t payloadTheta
Theta of signal in payload coordinates (degrees)
Double_t SNRAtTrigger[12 *9]
Array of SNR at trigger.
Double_t SNRAtDigitizer[12 *9]
Array of SNR at digitizer.
Double_t maxSNRAtTriggerH
Max SNR at trigger H-POL.
Double_t thresholds[12 *9]
Channel thresholds used in icemc.
Double_t fSignalAtTrigger[12 *9][260]
Array of signal at trigger.
UInt_t eventNumber
Software event number.
Double_t nuPos[3]
Neutrino position.
Double_t hitangle_e[48]
Hit angles rel. to e plane stored for each antenna.
Int_t run
Run number.
Double_t fTimes[12 *9][260]
Array of unwrapped (unless kNoCalib) times for each channel.
Double_t maxSNRAtDigitizerH
Max SNR at digitizer H-POL.
Double_t phaseWeight
Phase weight assigned by icemc.
Double_t fDiodeOutput[12 *9][260]
Array of tunnel diode output.
Double_t balloonDir[3]
Balloon direction.