CalibratedAnitaEvent.cxx
1 
10 #include "CalibratedAnitaEvent.h"
11 #include "UsefulAnitaEvent.h"
12 #include "AnitaGeomTool.h"
13 #include "PrettyAnitaHk.h"
14 #include "RawAnitaHeader.h"
15 #include "AnitaEventCalibrator.h"
16 #include <TGraph.h>
17 #include <iostream>
18 #include <fstream>
19 #include <cstring>
20 
21 ClassImp(CalibratedAnitaEvent);
22 
23 
24 
25 
27  : RawAnitaEvent()
28 {
29 
30  fClockProblem=0;
31  fClockSpike = 0;
32  fRFSpike = 0;
33  for(int surf=0;surf<NUM_SURF;surf++) {
34  fRcoArray[surf]=0;
35  fClockPhiArray[surf]=0;
36  fTempFactorGuesses[surf]=1;
37  }
38 
39  //Default Constructor
40 }
41 
43  : RawAnitaEvent(*((RawAnitaEvent*)usefulPtr))
44 {
45  fCalType=usefulPtr->fCalType;
46  fClockProblem=usefulPtr->fClockProblem;
47  fClockSpike=usefulPtr->fClockSpike;
48  fRFSpike=usefulPtr->fRFSpike;
49  for(int surf=0;surf<NUM_SURF;surf++) {
50  fRcoArray[surf]=usefulPtr->fRcoArray[surf];
51  fClockPhiArray[surf]=usefulPtr->fClockPhiArray[surf];
52  fTempFactorGuesses[surf]=usefulPtr->fTempFactorGuesses[surf];
53  }
54 }
55 
56 
58  //Default Destructor
59 }
60 
61 
Double_t fClockPhiArray[12]
An array to store the clock offsets.
Double_t fTempFactorGuesses[12]
A holder variable to cling on to the temperature correction factor that we are guessing at...
Int_t fClockProblem
Flag raised if more than 4 upgoing zero crossings in clock, won&#39;t update temp correction. RCO guessing may also be negatively affected by this.
UsefulAnitaEvent – The Calibrated Useful Anita Event object.
Int_t fRcoArray[12]
An array to store the guessed at RCO values;.
CalibratedAnitaEvent – The Calibrated Calibrated Anita Event object.
WaveCalType::WaveCalType_t fCalType
The calibration type used.
virtual ~CalibratedAnitaEvent()
Destructor.
Double_t fTempFactorGuesses[12]
A holder variable to cling on to the temperature correction factor that we are guessing at...
Int_t fRFSpike
Flag raised if the ADC value is too large or small in RF.
WaveCalType::WaveCalType_t fCalType
The calibration type requested.
Int_t fRcoArray[12]
An array to store the guessed at RCO values.
Double_t fClockPhiArray[12]
An array to store the derived clock calibration numbers (from aligning the clocks) ...
CalibratedAnitaEvent()
Default constructor not used.
Int_t fClockSpike
Flag raised if the ADC value is too large or small in clock.
RawAnitaEvent – The Raw ANITA Event Data.
Definition: RawAnitaEvent.h:22