ARA ROOT Test BEd Software

AraEvent/UsefulIcrrStationEvent.h

00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #ifndef USEFULICRRSTATIONEVENT_H
00010 #define USEFULICRRSTATIONEVENT_H
00011 
00012 //Includes
00013 #include <TObject.h>
00014 #include <TGraph.h>
00015 #include <TH1.h>
00016 #include "araIcrrStructures.h"
00017 #include "araIcrrDefines.h"
00018 #include "RawIcrrStationEvent.h"
00019 #include "AraEventCalibrator.h"
00020 #include "UsefulAraStationEvent.h"
00021 
00023 
00030 class UsefulIcrrStationEvent: public RawIcrrStationEvent, public UsefulAraStationEvent
00031 {
00032  public:
00033    UsefulIcrrStationEvent(); 
00034    UsefulIcrrStationEvent(RawIcrrStationEvent *rawEvent, AraCalType::AraCalType_t calType=AraCalType::kVoltageTime); 
00035    ~UsefulIcrrStationEvent(); 
00036 
00037    Double_t fVolts[NUM_DIGITIZED_ICRR_CHANNELS][MAX_NUMBER_SAMPLES_LAB3]; 
00038    Double_t fTimes[NUM_DIGITIZED_ICRR_CHANNELS][MAX_NUMBER_SAMPLES_LAB3]; 
00039    Int_t fNumPoints[NUM_DIGITIZED_ICRR_CHANNELS]; 
00040    Double_t fVoltsRF[MAX_RFCHANS_PER_ICRR][2*MAX_NUMBER_SAMPLES_LAB3]; 
00041    Double_t fTimesRF[MAX_RFCHANS_PER_ICRR][2*MAX_NUMBER_SAMPLES_LAB3]; 
00042    Int_t fNumPointsRF[MAX_RFCHANS_PER_ICRR]; 
00043 
00044 
00045    Int_t getNumElecChannels() {return NUM_DIGITIZED_ICRR_CHANNELS;}
00046    Int_t getNumRFChannels() {return numRFChans;} //jpd this will need to change to accomodate the extra 4 RF signals diplexed into last 4 Elec channels
00047    TGraph *getGraphFromElecChan(int chan); 
00048    TGraph *getGraphFromRFChan(int chan); 
00049    TGraph *getFFTForRFChan(int chan); 
00050    TH1D *getFFTHistForRFChan(int chan); 
00051    int fillFFTHistoForRFChan(int chan, TH1D *histFFT); 
00052    int guessRCO(int chanIndex); 
00053    int getRCO(int chanIndex) { return guessRCO(chanIndex);} 
00054    TGraph *getFFTForClock(int clock_number); 
00055    TH1D   *getFFTHistForClock(int clock_number); 
00056    int     fillFFTHistoForClock(int clock_number, TH1D *histFFT); 
00057    bool    isCalPulserEvent( ); 
00058 
00059    Int_t getRawRCO(Int_t chanIndex) {
00060      return chan[chanIndex].getRCO();
00061    } 
00062 
00063    Int_t numRFChans;
00064 
00065    AraEventCalibrator *fCalibrator; 
00066 
00067   ClassDef(UsefulIcrrStationEvent,1);
00068 };
00069 
00070 
00071 #endif //USEFULICRRSTATIONEVENT_H

Generated on Wed Aug 8 16:20:07 2012 for ARA ROOT Test Bed Software by doxygen 1.4.7