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 00029 class UsefulIcrrStationEvent: public RawIcrrStationEvent, public UsefulAraStationEvent 00030 { 00031 public: 00032 UsefulIcrrStationEvent(); 00033 UsefulIcrrStationEvent(RawIcrrStationEvent *rawEvent, AraCalType::AraCalType_t calType=AraCalType::kVoltageTime); 00034 ~UsefulIcrrStationEvent(); 00035 00036 Double_t fVolts[NUM_DIGITIZED_ICRR_CHANNELS][MAX_NUMBER_SAMPLES_LAB3]; 00037 Double_t fTimes[NUM_DIGITIZED_ICRR_CHANNELS][MAX_NUMBER_SAMPLES_LAB3]; 00038 Int_t fNumPoints[NUM_DIGITIZED_ICRR_CHANNELS]; 00039 Double_t fVoltsRF[MAX_RFCHANS_PER_ICRR][2*MAX_NUMBER_SAMPLES_LAB3]; 00040 Double_t fTimesRF[MAX_RFCHANS_PER_ICRR][2*MAX_NUMBER_SAMPLES_LAB3]; 00041 Int_t fNumPointsRF[MAX_RFCHANS_PER_ICRR]; 00042 00043 00044 Int_t getNumElecChannels() {return NUM_DIGITIZED_ICRR_CHANNELS;} 00045 Int_t getNumRFChannels() {return numRFChans;} // 00046 TGraph *getGraphFromElecChan(int chan); 00047 TGraph *getGraphFromRFChan(int chan); 00048 TGraph *getFFTForRFChan(int chan); 00049 TH1D *getFFTHistForRFChan(int chan); 00050 int fillFFTHistoForRFChan(int chan, TH1D *histFFT); 00051 int guessRCO(int chanIndex); 00052 int getRCO(int chanIndex) { return guessRCO(chanIndex);} 00053 TGraph *getFFTForClock(int clock_number); 00054 TH1D *getFFTHistForClock(int clock_number); 00055 int fillFFTHistoForClock(int clock_number, TH1D *histFFT); 00056 bool isCalPulserEvent( ); 00057 bool shortWaveform(); 00058 bool shortWaveform(Int_t labChip); 00059 00060 Int_t getRawRCO(Int_t chanIndex) { 00061 return chan[chanIndex].getRCO(); 00062 } 00063 00064 Int_t numRFChans; 00065 00066 AraEventCalibrator *fCalibrator; 00067 00068 ClassDef(UsefulIcrrStationEvent,2); 00069 }; 00070 00071 00072 #endif //USEFULICRRSTATIONEVENT_H
Generated on Mon Dec 9 13:20:21 2013 for ARA ROOT v3.13 Software by
