15 #include "CorrelationSummaryAnita3.h" 16 #include "AnitaGeomTool.h" 23 #include "AnitaGeomTool.h" 30 AnitaGeomTool *fCSGeomToolAnita3=0;
36 if(!fCSGeomToolAnita3)
37 fCSGeomToolAnita3=AnitaGeomTool::Instance();
45 : eventNumber(teventNumber),centreAntenna(tcentreAnt),deltaT(dt)
50 if(!fCSGeomToolAnita3)
51 fCSGeomToolAnita3=AnitaGeomTool::Instance();
61 for(
int i=0;i< NUM_CORRELATIONS_ANITA3;i++) {
66 for(
int i=0;i< NUM_CORRELATIONS_ANITA3;i++) {
67 fAntPhi[i][0]=fCSGeomToolAnita3->getAntPhiPositionRelToAftFore(
firstAnt[i]);
68 fAntPhi[i][1]=fCSGeomToolAnita3->getAntPhiPositionRelToAftFore(
secondAnt[i]);
81 for(
int i=0;i<numAnts;i++) {
94 Double_t tanThetaW=TMath::Tan(tThetaWave);
95 Double_t part1=
fAntZ[pairInd][0]*tanThetaW -
fAntR[pairInd][0] * TMath::Cos(tPhiWave-
fAntPhi[pairInd][0]);
96 Double_t part2=
fAntZ[pairInd][1]*tanThetaW -
fAntR[pairInd][1] * TMath::Cos(tPhiWave-
fAntPhi[pairInd][1]);
97 return 1e9*((TMath::Cos(tThetaWave) * (part1 - part2))/C_LIGHT);
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.
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.
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).
double maxCorTimes[NUM_CORRELATIONS_ANITA3]
The time of the maximum correlation value for each of the 49 possible correlations (3 top-middle...
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_t fAntZ[NUM_CORRELATIONS_ANITA3][2]
A lookup table for antenna postions.
~CorrelationSummaryAnita3()
Destructor.
int nineAnts[9]
The numbers of the nine central antennas.
Double_t fAntPhi[NUM_CORRELATIONS_ANITA3][2]
A lookup table for antenna postions.
double phiWaveErr
The error on the azimuthal angle of the plane wave (in payload centric coordinates).