Handles everything related to balloon positions, payload orientation over the course of a flight. More...
#include <balloon.hh>
Public Member Functions | |
void | setObservationLocation (Interaction *interaction1, int inu, IceModel *antarctic, Settings *settings1) |
This function sets the observation location. More... | |
void | GetBoresights (Settings *settings1, Anita *anita1, Position r_boresights[Anita::NLAYERS_MAX][Anita::NPHI_MAX]) |
This function gets the boresights. More... | |
void | PickDownwardInteractionPoint (Interaction *interaction1, Anita *anita1, Settings *settings1, IceModel *antarctica1, Ray *ray1, int &beyondhorizon, double len_int_km2, Vector *force_dir=0) |
This function picks downward interaction point. More... | |
void | InitializeBalloon () |
This function initializes the balloon or the specific flight. More... | |
void | ReadAnitaliteFlight () |
This function reads in the ANITA LITE flight. More... | |
void | CenterPayload (double &hitangle_e) |
This function centers the payload. More... | |
void | PickBalloonPosition (Vector straightup, IceModel *antarctica, Settings *settings1, Anita *anita1) |
This function picks the balloon position. More... | |
void | PickBalloonPosition (IceModel *antarctica1, Settings *settings1, int inu, Anita *anita1, double randomNumber) |
This function picks the balloon position. More... | |
int | Getibnposition () |
This function gets ith balloon position. More... | |
double | GetBalloonSpin (double heading) |
This function gets the spin of the balloon whatever that means. More... | |
void | GetAntennaOrientation (Settings *settings1, Anita *anita1, int ilayer, int ifold, Vector &n_eplane, Vector &n_hplane, Vector &n_normal) |
This function gets the antenna orientation. More... | |
void | GetEcompHcompEvector (Settings *settings1, Vector n_eplane, Vector n_hplane, const Vector n_pol, double &e_component, double &h_component, double &n_component) |
This function gets the e-component, h-component and e-vector. More... | |
void | GetEcompHcompkvector (Vector n_eplane, Vector n_hplane, Vector n_normal, const Vector n_exit2bn, double &e_component_kvector, double &h_component_kvector, double &n_component_kvector) |
This function gets the e-component, h-component and k-vector. More... | |
void | GetHitAngles (double e_component_kvector, double h_component_kvector, double n_component_kvector, double &hitangle_e, double &hitangle_h) |
This function gets the hit angles. More... | |
void | SetDefaultBalloonPosition (IceModel *antarctica1) |
This function sets the default balloon position. More... | |
void | setr_bn (double latitude, double longitude) |
This function sets r of the balloon. More... | |
void | AdjustSlacBalloonPosition (int inu) |
This function adjusts the slac balloon position. More... | |
void | GetSlacPositions (Anita *anita1) |
This function gets the slac balloon positions. More... | |
void | GetBoresights (Settings *settings1, Anita *anita1) |
This function gets boresights. More... | |
void | calculate_antenna_positions (Settings *settings1, Anita *anita1) |
This function calculates antenna positions. More... | |
Vector | RotatePayload (Vector ant_pos) |
This function rotates the payload. More... | |
Vector | unRotatePayload (Vector ant_pos) |
This function UN-rotates the payload. More... | |
Public Attributes | |
int | igps |
which balloon position do we use out of the 25000 anitalite GPS positions. | |
int | ibnposition |
double | dtryingposition |
weighting factor: how many equivalent tries each neutrino counts for after having reduced possible interaction positions to within horizon | |
Vector | slacpositions [MAX_POSITIONS] |
string | sslacpositions [MAX_POSITIONS] |
int | islacposition |
TChain * | flightdatachain |
TTreeIndex * | tindex |
unsigned int | realTime_flightdata_temp |
realtime from the flight data file | |
unsigned int | realTime_flightdata |
realtime from the flight data file | |
float | flatitude |
float | flongitude |
float | faltitude |
float | fheading |
float | froll |
float | fpitch |
double | latitude |
double | longitude |
double | altitude |
double | heading |
double | roll |
double | pitch |
double | MINALTITUDE |
minimum altitude balloon needs to be before we consider it a good event to read from the flight data file | |
int | igps_previous |
which entry from the flight data file the previous event was so we can just take the next one. | |
int | REDUCEBALLOONPOSITIONS |
only take every 100th entry in the flight data file | |
int | WHICHPATH |
0=fixed balloon position,1=randomized,2=ANITA-lite GPS data,3=banana plot | |
int | RANDOMIZE_BN_ORIENTATION |
0=fixed balloon orientation,1=randomized | |
double | BN_ALTITUDE |
pick balloon altitude | |
unsigned short | surfTrigBandMask [9][2] |
Ryan's 16 bit masks for 9 surfs. 2x16 bit masks gives 32 channels per surf. | |
float | powerthresh [9][32] |
power threshold in Watts | |
float | meanp [9][32] |
mean power in Watts | |
double | altitude_bn |
double | theta_bn |
double | phi_bn |
theta,phi of balloon wrt south pole | |
Position | r_bn |
position of balloon | |
double | horizcoord_bn |
x component of balloon position | |
double | vertcoord_bn |
y component of balloon position | |
Position | r_boresights [Anita::NLAYERS_MAX][Anita::NPHI_MAX] |
position of antenna boresights | |
Vector | x_axis_rot |
Vector | y_axis_rot |
Vector | z_axis_rot |
Vector | n_bn |
normalized r_bn | |
Vector | n_east |
east, as seen from the balloon position | |
Vector | n_north |
north, as seen from the balloon position | |
double | surface_under_balloon |
distance between center of the earth and the surface of earth under balloon | |
Position | r_bn_shadow |
position of the balloon projected on earth surface - point just below balloon at surface of the earth | |
double | MAXHORIZON |
pick the interaction within this distance from the balloon so that it is within the horizon | |
double | phi_spin |
orientation of the balloon | |
int | NPOINTS |
number of GPS positions we're picking from. | |
int | NPOINTS_MIN |
min and max index for gps positions we want to include in the simulation (to exclude launch and fall). These are set in ReadFlight | |
int | NPOINTS_MAX |
double | latitude_bn_anitalite [100000] |
latitude at times along flightpath, equally distributed among gps data. This is filled with anita or anita-lite data, depending on which the user specifies | |
double | longitude_bn_anitalite [100000] |
same for longitude | |
double | altitude_bn_anitalite [100000] |
same for altitude | |
double | heading_bn_anitalite [100000] |
same for heading of the balloon | |
double | realtime_bn_anitalite [100000] |
same for real life time | |
double | BN_LONGITUDE |
balloon longitude for fixed balloon location | |
double | BN_LATITUDE |
balloon latitude for fixed balloon location | |
double | min_time |
double | max_time |
Static Public Attributes | |
static const int | MAX_POSITIONS =50 |
for the slac beam test | |
Handles everything related to balloon positions, payload orientation over the course of a flight.
Definition at line 30 of file balloon.hh.
void Balloon::AdjustSlacBalloonPosition | ( | int | inu | ) |
This function adjusts the slac balloon position.
move payload around like we did at slac
inu | - |
Definition at line 627 of file balloon.cc.
This function calculates antenna positions.
Long description
settings1 | - |
anita1 | - |
Definition at line 1127 of file balloon.cc.
void Balloon::CenterPayload | ( | double & | hitangle_e | ) |
This function centers the payload.
Long description
hitangle_e | - |
Definition at line 639 of file balloon.cc.
void Balloon::GetAntennaOrientation | ( | Settings * | settings1, |
Anita * | anita1, | ||
int | ilayer, | ||
int | ifold, | ||
Vector & | n_eplane, | ||
Vector & | n_hplane, | ||
Vector & | n_normal | ||
) |
This function gets the antenna orientation.
Long description
settings1 | - |
anita1 | - |
ilayer | - |
ifold | |
n_eplane | - |
n_hplane | - |
n_normal | - |
Definition at line 649 of file balloon.cc.
double Balloon::GetBalloonSpin | ( | double | heading | ) |
This function gets the spin of the balloon whatever that means.
Get the azimuth of the balloon
heading | - |
Definition at line 287 of file balloon.cc.
void Balloon::GetBoresights | ( | Settings * | settings1, |
Anita * | anita1, | ||
Position | r_boresights[Anita::NLAYERS_MAX][Anita::NPHI_MAX] | ||
) |
This function gets the boresights.
This is a long description that I dont know yet
settings1 | - |
anita1 | - |
r_boresights | - [NLAYERS_MAX][NPHI_MAX] |
This function gets boresights.
Long description
settings1 | - |
anita1 | - |
Definition at line 1116 of file balloon.cc.
void Balloon::GetEcompHcompEvector | ( | Settings * | settings1, |
Vector | n_eplane, | ||
Vector | n_hplane, | ||
const Vector | n_pol, | ||
double & | e_component, | ||
double & | h_component, | ||
double & | n_component | ||
) |
This function gets the e-component, h-component and e-vector.
Long description
settings1 | - |
n_eplane | - |
n_hplane | - |
n_pol | |
e_component | - |
h_component | - |
n_component | - |
Definition at line 704 of file balloon.cc.
void Balloon::GetEcompHcompkvector | ( | Vector | n_eplane, |
Vector | n_hplane, | ||
Vector | n_normal, | ||
const Vector | n_exit2bn, | ||
double & | e_component_kvector, | ||
double & | h_component_kvector, | ||
double & | n_component_kvector | ||
) |
This function gets the e-component, h-component and k-vector.
Long description
n_eplane | - |
n_hplane | - |
n_normal | - |
n_exit2bn | - |
e_component_kvector | - |
h_component_kvector | - |
n_component_kvector | - |
Definition at line 690 of file balloon.cc.
void Balloon::GetHitAngles | ( | double | e_component_kvector, |
double | h_component_kvector, | ||
double | n_component_kvector, | ||
double & | hitangle_e, | ||
double & | hitangle_h | ||
) |
This function gets the hit angles.
Long description
e_component_kvector | - |
h_component_kvector | - |
n_component_kvector | - |
hitangle_e | - |
hitangle_h | - |
Definition at line 726 of file balloon.cc.
int Balloon::Getibnposition | ( | ) |
This function gets ith balloon position.
Long description
Definition at line 303 of file balloon.cc.
void Balloon::GetSlacPositions | ( | Anita * | anita1 | ) |
This function gets the slac balloon positions.
Long description
anita1 | - |
Definition at line 917 of file balloon.cc.
void Balloon::InitializeBalloon | ( | ) |
This function initializes the balloon or the specific flight.
This is a long description that I dont know yet
Definition at line 188 of file balloon.cc.
void Balloon::PickBalloonPosition | ( | Vector | straightup, |
IceModel * | antarctica, | ||
Settings * | settings1, | ||
Anita * | anita1 | ||
) |
This function picks the balloon position.
Long description
straightup | - |
antarctica | - |
settings1 | - |
anita1 | - |
Definition at line 317 of file balloon.cc.
void Balloon::PickBalloonPosition | ( | IceModel * | antarctica1, |
Settings * | settings1, | ||
int | inu, | ||
Anita * | anita1, | ||
double | randomNumber | ||
) |
This function picks the balloon position.
Position of spot under balloon
antarctica1 | - |
settings1 | - |
inu | - |
anita1 | - |
randomNumber | - |
Definition at line 400 of file balloon.cc.
void Balloon::PickDownwardInteractionPoint | ( | Interaction * | interaction1, |
Anita * | anita1, | ||
Settings * | settings1, | ||
IceModel * | antarctica1, | ||
Ray * | ray1, | ||
int & | beyondhorizon, | ||
double | len_int_km2, | ||
Vector * | force_dir = 0 |
||
) |
This function picks downward interaction point.
This is a long description that I dont know yet
interaction1 | - |
anita1 | - |
settings1 | - |
antarctica1 | - |
ray1 | - |
beyondhorizon | - |
Definition at line 762 of file balloon.cc.
void Balloon::ReadAnitaliteFlight | ( | ) |
This function reads in the ANITA LITE flight.
ANITA Lite is the first prototype ANITA flight
Definition at line 112 of file balloon.cc.
This function rotates the payload.
Rotate from payload coord to earth coord
ant_pos | - |
Definition at line 1164 of file balloon.cc.
void Balloon::SetDefaultBalloonPosition | ( | IceModel * | antarctica1 | ) |
This function sets the default balloon position.
Long description
antarctica1 | - |
Definition at line 75 of file balloon.cc.
void Balloon::setObservationLocation | ( | Interaction * | interaction1, |
int | inu, | ||
IceModel * | antarctic, | ||
Settings * | settings1 | ||
) |
This function sets the observation location.
This is a long description that I dont know yet
interaction1 | - |
inu | - |
antarctic | - |
settings1 | - |
Definition at line 46 of file balloon.cc.
void Balloon::setr_bn | ( | double | latitude, |
double | longitude | ||
) |
This function sets r of the balloon.
Long description
latitude | - |
longitude | - |
Definition at line 742 of file balloon.cc.
This function UN-rotates the payload.
Rotate from earth to payload coord. (undoes RotatePayload)
ant_pos | - |
Definition at line 1221 of file balloon.cc.