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

UsefulAnitaEvent – The Calibrated Useful Anita Event object. More...

#include <UsefulAnitaEvent.h>

Public Member Functions

 UsefulAnitaEvent ()
 Default constructor.
 
 UsefulAnitaEvent (CalibratedAnitaEvent *calibratedPtr, WaveCalType::WaveCalType_t calType=WaveCalType::kDefault)
 Assignment constructor from a CalibratedAnitaEvent.
 
 UsefulAnitaEvent (RawAnitaEvent *eventPtr, WaveCalType::WaveCalType_t calType, PrettyAnitaHk *theHk=0)
 Assignment constructor using PrettyAnitaHk for the temperature calibration. See WaveCalType for calibration options.
 
 UsefulAnitaEvent (RawAnitaEvent *eventPtr, WaveCalType::WaveCalType_t calType, RawAnitaHeader *theHd)
 Assignment constructor using RawAnitaHeader for the c3p0Num to do the temperature calibration using the 125MHz clock. See WaveCalType for calibration options.
 
 UsefulAnitaEvent (RawAnitaEvent *eventPtr, WaveCalType::WaveCalType_t calType, Double_t surfTemp)
 Assignment constructor using surfTemp for the temperature calibration. See WaveCalType for calibration options.
 
 UsefulAnitaEvent (RawAnitaEvent *eventPtr, WaveCalType::WaveCalType_t calType, RawAnitaHeader *theHd, std::vector< Double_t > *rcoInfo, std::vector< Double_t > *clockPhiInfo, std::vector< Double_t > *tempFactorInfo, Int_t clockProblemInfo, Int_t clockSpikeInfo, Int_t rfSpikeInfo)
 Assignment constructor using calibInfo from makeCalibratedEventInfo in anitaTreeMaker for thermal corrections. See WaveCalType for calibration options.
 
virtual ~UsefulAnitaEvent ()
 Destructor.
 
int calibrateEvent (WaveCalType::WaveCalType_t calType)
 Work horse member function called by constructor.
 
TGraph * getGraphFromSurfAndChan (int surf, int chan) const
 Returns a voltage-time waveform for given SURF and channel.
 
TGraph * getGraph (int chanIndex) const
 Returns a voltage-time waveform for given channel index.
 
TGraph * getGraph (int ant, AnitaPol::AnitaPol_t pol) const
 Returns a voltage time waveform for given ant-pol.
 
TGraph * getGraph (AnitaRing::AnitaRing_t ring, int phi, AnitaPol::AnitaPol_t pol) const
 Returns a voltage-time waveform for given ring-phi-pol.
 
TGraph * getDeconvolvedALFA ()
 
Int_t guessRco (int chanIndex)
 Looks at clock channel to try and guess which RCO phase we are in.
 
Int_t getRcoCorrected (int chanIndex)
 Returns firmware RCO after correcting for latch delay (and factor of -1 for different definitions of which phase getRCO and guessRCO return) More...
 
std::vector< Double_t > getClockAlignment (std::vector< Int_t > listOfClockNums)
 For calibration.
 
Int_t checkIfTreatingCalibratedEventAsRawEvent (RawAnitaEvent *rawEventPtr, const char *funcName)
 Prints a verbose error message if you're calling the wrong constructor type.
 
Bool_t getAlfaFilterFlag ()
 a list to store the spikey RF channel.
 
Bool_t setAlfaFilterFlag (Bool_t newBoolianFlag)
 
- Public Member Functions inherited from RawAnitaEvent
 RawAnitaEvent ()
 Default constructor.
 
 RawAnitaEvent (PedSubbedEventBody_t *psBody)
 Assignment constructor.
 
 RawAnitaEvent (PedSubbedEventBodyVer11_t *psBody)
 Ver11 Assignment constructor.
 
 RawAnitaEvent (PedSubbedEventBodyVer10_t *psBody)
 Ver10 Assignment constructor.
 
 ~RawAnitaEvent ()
 Destructor.
 
Int_t getLabChip (Int_t chanIndex) const
 Returns the LABRADOR number.
 
Int_t getRCO (Int_t chanIndex) const
 Returns the RCO phase.
 
Int_t getFirstHitBus (Int_t chanIndex) const
 Returns the firstHitbus value for the channel.
 
Int_t getLastHitBus (Int_t chanIndex) const
 Returns the lastHitbus value for the channel.
 
Int_t getWrappedHitBus (Int_t chanIndex) const
 Return the wrapped hitbus flag for the channel. When the HITBUS is wrapped the waveform runs from firstHitbus+1 to lastHitbus-1, otherwise it runs from lastHitbus+1 to firstHitbus-1 (crossing the 259–>0 boudnary).
 
Int_t getLatestSample (Int_t chanIndex)
 Returns the latest sample in the waveform.
 
Int_t getEarliestSample (Int_t chanIndex)
 Returns the earliest sample in the waveform.
 
 ClassDef (RawAnitaEvent, 11)
 

Static Public Member Functions

static int getChanIndex (int surf, int chan)
 Utility function.
 

Public Attributes

Int_t fFromCalibratedAnitaEvent
 Flag used in determining whether the event came from a CalibratedAnitaEvent.
 
UInt_t fC3poNum
 Used to monitor the clock period.
 
Int_t gotCalibTemp
 Flag to check if we are using the temperature calibration.
 
Double_t calibTemp
 Value for the temperature calibration.
 
WaveCalType::WaveCalType_t fCalType
 The calibration type requested.
 
int fNumPoints [12 *9]
 Number of poins per channel.
 
double fVolts [12 *9][260]
 Array of unwrapped (unless kNoCalib) voltages for each channel.
 
double fTimes [12 *9][260]
 Array of unwrapped (unless kNoCalib) times for each channel.
 
int fCapacitorNum [12 *9][260]
 Array of capacitor numbers.
 
UInt_t fLastEventGuessed
 Internal variable to see if we've already tried to guess the RCO and temp correction factors for this event.
 
Int_t fRcoArray [12]
 An array to store the guessed at RCO values.
 
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't update temp correction. RCO guessing may also be negatively affected by this.
 
Int_t fClockSpike
 Flag raised if the ADC value is too large or small in clock.
 
Int_t fRFSpike
 Flag raised if the ADC value is too large or small in RF.
 
Double_t fClockPhiArray [12]
 An array to store the derived clock calibration numbers (from aligning the clocks)
 
std::vector< int > SpikeyRFChannelList
 
- Public Attributes inherited from RawAnitaEvent
UInt_t whichPeds
 Timestamp of pedestals used in subtraction.
 
UInt_t eventNumber
 Event number from software.
 
UInt_t surfEventId [12]
 SURF Event Id's.
 
UChar_t chanId [12 *9]
 
UChar_t chipIdFlag [12 *9]
 chipIdFlag More...
 
UChar_t firstHitbus [12 *9]
 First sample of the hitbus. More...
 
UChar_t lastHitbus [12 *9]
 Last sample of the hitbus. More...
 
Short_t xMax [12 *9]
 Maximum value in ADCs???
 
Short_t xMin [12 *9]
 Minimum value in ADCs???
 
Float_t mean [12 *9]
 Mean of the waveform.
 
Float_t rms [12 *9]
 RMS of the waveform.
 
Short_t data [12 *9][260]
 The pedestal subtracted waveform data. Note that these arrays must be unwrapped and calibrated to become UsefulAnitaEvent objects.
 

Detailed Description

UsefulAnitaEvent – The Calibrated Useful Anita Event object.

The ROOT implementation of the calibrated useful anita event

Definition at line 31 of file UsefulAnitaEvent.h.

Inheritance diagram for UsefulAnitaEvent:
Inheritance graph
[legend]
Collaboration diagram for UsefulAnitaEvent:
Collaboration graph
[legend]

Member Function Documentation

Int_t UsefulAnitaEvent::getRcoCorrected ( int  chanIndex)

Returns firmware RCO after correcting for latch delay (and factor of -1 for different definitions of which phase getRCO and guessRCO return)

< Factor of -1 in definition...

Definition at line 252 of file UsefulAnitaEvent.cxx.


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