Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Balloon Class Reference

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
 

Detailed Description

Handles everything related to balloon positions, payload orientation over the course of a flight.

Definition at line 30 of file balloon.hh.

Collaboration diagram for Balloon:
Collaboration graph
[legend]

Member Function Documentation

void Balloon::AdjustSlacBalloonPosition ( int  inu)

This function adjusts the slac balloon position.

move payload around like we did at slac

Parameters
inu-
Returns
returns void

Definition at line 627 of file balloon.cc.

void Balloon::calculate_antenna_positions ( Settings settings1,
Anita anita1 
)

This function calculates antenna positions.

Long description

Parameters
settings1-
anita1-
Returns
returns void

Definition at line 1127 of file balloon.cc.

void Balloon::CenterPayload ( double &  hitangle_e)

This function centers the payload.

Long description

Parameters
hitangle_e-
Returns
returns void

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

Parameters
settings1-
anita1-
ilayer-
ifold
n_eplane-
n_hplane-
n_normal-
Returns
returns void

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

Parameters
heading-
Returns
returns double

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

Parameters
settings1-
anita1-
r_boresights- [NLAYERS_MAX][NPHI_MAX]
Returns
returns void
void Balloon::GetBoresights ( Settings settings1,
Anita anita1 
)

This function gets boresights.

Long description

Parameters
settings1-
anita1-
Returns
returns void

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

Parameters
settings1-
n_eplane-
n_hplane-
n_pol
e_component-
h_component-
n_component-
Returns
returns void

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

Parameters
n_eplane-
n_hplane-
n_normal-
n_exit2bn-
e_component_kvector-
h_component_kvector-
n_component_kvector-
Returns
returns void

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

Parameters
e_component_kvector-
h_component_kvector-
n_component_kvector-
hitangle_e-
hitangle_h-
Returns
returns void

Definition at line 726 of file balloon.cc.

int Balloon::Getibnposition ( )

This function gets ith balloon position.

Long description

Returns
returns int

Definition at line 303 of file balloon.cc.

void Balloon::GetSlacPositions ( Anita anita1)

This function gets the slac balloon positions.

Long description

Parameters
anita1-
Returns
returns void

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

Returns
returns void

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

Parameters
straightup-
antarctica-
settings1-
anita1-
Returns
returns void

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

Parameters
antarctica1-
settings1-
inu-
anita1-
randomNumber-
Returns
returns void

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

Parameters
interaction1-
anita1-
settings1-
antarctica1-
ray1-
beyondhorizon-
Returns
returns void

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

Returns
returns void

Definition at line 112 of file balloon.cc.

Vector Balloon::RotatePayload ( Vector  ant_pos)

This function rotates the payload.

Rotate from payload coord to earth coord

Parameters
ant_pos-
Returns
returns vector

Definition at line 1164 of file balloon.cc.

void Balloon::SetDefaultBalloonPosition ( IceModel antarctica1)

This function sets the default balloon position.

Long description

Parameters
antarctica1-
Returns
returns void

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

Parameters
interaction1-
inu-
antarctic-
settings1-
Returns
returns void

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

Parameters
latitude-
longitude-
Returns
returns void

Definition at line 742 of file balloon.cc.

Vector Balloon::unRotatePayload ( Vector  ant_pos)

This function UN-rotates the payload.

Rotate from earth to payload coord. (undoes RotatePayload)

Parameters
ant_pos-
Returns
returns vector

Definition at line 1221 of file balloon.cc.


The documentation for this class was generated from the following files: