Event Correlator
CorrelationSummaryAnita3.h
1 
12 #ifndef CORRELATIONSUMMARYANITA3_H
13 #define CORRELATIONSUMMARYANITA3_H
14 
15 #include "TObject.h"
16 #include "TGraph.h"
17 
18 
19 #define NUM_CORRELATIONS_ANITA3 52
20 
21 
22 
24 
27 class CorrelationSummaryAnita3: public TObject
28 {
29 
30 
31  public:
34 
36 
42  CorrelationSummaryAnita3(int teventNumber, int tcentreAnt, int nineAnts[9], double deltaT=0);
43  void fillErrorsAndFit();
44 
46 
52  Double_t getChiSquared(Double_t tPhiWave, Double_t tThetaWave, Int_t numAnts);
53 
55 
61  Double_t getDeltaTExpected(Double_t tPhiWave, Double_t tThetaWave, Int_t pairInd);
62 
63  void setFitResults(Double_t tPhi, Double_t tTheta, Double_t tPhiErr, Double_t tThetaErr, Double_t tChiSq);
64 
65 
66  //Simple Event Characteristics
69  int nineAnts[9];
70  int nextSixAnts[6];
71  double deltaT;
72 
73 
74  //Correlation Thingies
75 
77 
135  int firstAnt[NUM_CORRELATIONS_ANITA3];
136  int secondAnt[NUM_CORRELATIONS_ANITA3];
137  double maxCorVals[NUM_CORRELATIONS_ANITA3];
138  double maxCorTimes[NUM_CORRELATIONS_ANITA3];
139  double rmsCorVals[NUM_CORRELATIONS_ANITA3];
140 
141 
142 
143 
144  double secondCorVals[NUM_CORRELATIONS_ANITA3][2];
145  double secondCorTimes[NUM_CORRELATIONS_ANITA3][2];
146 
147  //Time Thingies
148  // double deltaT[NUM_CORRELATIONS_ANITA3]; is maxCorTimes
149  double deltaTErr[NUM_CORRELATIONS_ANITA3];
150 
151  //Fit Results
152  double phiWave;
153  double thetaWave;
154  double phiWaveErr;
155  double thetaWaveErr;
156  double chiSq;
157  int ndf;
158 
159  //Antenna postion variables for use in fit
160  Double_t fAntPhi[NUM_CORRELATIONS_ANITA3][2];
161  Double_t fAntR[NUM_CORRELATIONS_ANITA3][2];
162  Double_t fAntZ[NUM_CORRELATIONS_ANITA3][2];
163 
164 
165 
166 
168 };
169 
170 
171 #endif //CORRELATIONSUMMARYANITA3_H
void fillErrorsAndFit()
The worker function that actually does the fitting.
double thetaWave
The elevation angle of the plane wave (in payload centric coordinates).
double thetaWaveErr
The error on the elevation angle of the plane wave (in payload centric coordinates).
void setFitResults(Double_t tPhi, Double_t tTheta, Double_t tPhiErr, Double_t tThetaErr, Double_t tChiSq)
Sets the result of an external fit.
int nextSixAnts[6]
The numbers of the six outside antennas.
double phiWave
The azimuthal angle of the plane wave (in payload centric coordinates).
Double_t fAntR[NUM_CORRELATIONS_ANITA3][2]
A lookup table for antenna postions.
ClassDef(CorrelationSummaryAnita3, 4)
One of ROOT's magic macros.
double secondCorTimes[NUM_CORRELATIONS_ANITA3][2]
The time of the next highest correlation values (tore both left and right vals).
Double_t getChiSquared(Double_t tPhiWave, Double_t tThetaWave, Int_t numAnts)
Tests a given plane wave hypothesis using a either six or ten antennas.
Double_t getDeltaTExpected(Double_t tPhiWave, Double_t tThetaWave, Int_t pairInd)
For a given plane wave hypothesis returns the expected time difference between one of the pairs of an...
int secondAnt[NUM_CORRELATIONS_ANITA3]
The index of the second antenna in the 49 possible pairs (3 top-middle, 3 middle-bottom, 6 left-right, 6 diagonal, 6 outside-centre, 6 outside-neighbour, 4 diagonal with neighbour, 13 top-bottom combinations).
int eventNumber
The eventNumber.
double secondCorVals[NUM_CORRELATIONS_ANITA3][2]
The peak of the next highest correlation values (tore both left and right vals).
double maxCorTimes[NUM_CORRELATIONS_ANITA3]
The time of the maximum correlation value for each of the 49 possible correlations (3 top-middle...
int ndf
The number of degrees of freedom – no frigging idea I just make it up.
This is a poorly thought out class that was meant to be a summary of peaks of the correlations of som...
double deltaTErr[NUM_CORRELATIONS_ANITA3]
The error on each of the 49 deltaTs (no idea right now what this means).
int firstAnt[NUM_CORRELATIONS_ANITA3]
There are 49 correlations formed from a set of 15 antennas (5-phi sectors).
double chiSq
The chi-squared of the fit.
CorrelationSummaryAnita3()
Default constructor.
double maxCorVals[NUM_CORRELATIONS_ANITA3]
The maximum correlation value for each of the 49 possible correlations (3 top-middle, 3 middle-bottom, 6 left-right, 6 diagonal, 6 outside-centre, 6 outside-neighbour, 4 diagonal with neighbour, 13 top-bottom combinations).
Double_t fAntZ[NUM_CORRELATIONS_ANITA3][2]
A lookup table for antenna postions.
int nineAnts[9]
The numbers of the nine central antennas.
Double_t fAntPhi[NUM_CORRELATIONS_ANITA3][2]
A lookup table for antenna postions.
int centreAntenna
The number of the centre antenna.
double rmsCorVals[NUM_CORRELATIONS_ANITA3]
The rms correlation value for each of the 49 possible correlations (3 top-middle, 3 middle-bottom...
double deltaT
The sampling period used.
double phiWaveErr
The error on the azimuthal angle of the plane wave (in payload centric coordinates).