AraEvent/RawAtriStationEvent.h
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 #ifndef RAWATRISTATIONEVENT_H 00012 #define RAWATRISTATIONEVENT_H 00013 00014 //Includes 00015 #include <vector> 00016 #include <TObject.h> 00017 #include "RawAraStationEvent.h" 00018 #include "RawAtriStationBlock.h" 00019 #include "araAtriStructures.h" 00020 #include "araSoft.h" 00021 00022 00023 00024 00026 00031 class RawAtriStationEvent: public RawAraStationEvent 00032 { 00033 public: 00034 RawAtriStationEvent(); 00035 RawAtriStationEvent(AraStationEventHeader_t *hdPtr, char *dataBuffer); 00036 RawAtriStationEvent(AraStationEventHeader_t *hdPtr, char *dataBuffer, AraStationId_t forcedStationId); 00037 00038 00039 00040 ~RawAtriStationEvent(); 00041 00042 Int_t getNumChannels() { return 0; } 00043 00044 00045 ULong64_t unixTime; 00046 UInt_t unixTimeUs; 00047 UInt_t eventNumber; 00048 UInt_t ppsNumber; 00049 UInt_t numStationBytes; 00050 UInt_t timeStamp; 00051 00052 UInt_t eventId; 00053 UShort_t versionId; 00054 UShort_t numReadoutBlocks; 00055 00056 UInt_t triggerInfo[MAX_TRIG_BLOCKS]; 00057 UChar_t triggerBlock[MAX_TRIG_BLOCKS]; 00058 00059 UChar_t filterInfo; 00060 00061 std::vector<RawAtriStationBlock> blockVec; 00062 00063 inline static int getPedIndex(int dda, int block, int chan, int sample) 00064 { 00065 return sample+(chan*SAMPLES_PER_BLOCK)+(block*RFCHAN_PER_DDA*SAMPLES_PER_BLOCK)+(dda*BLOCKS_PER_DDA*RFCHAN_PER_DDA*SAMPLES_PER_BLOCK); 00066 } 00067 00068 Int_t getFirstCapArray(Int_t dda); 00069 bool isCalpulserEvent(); 00070 00071 Bool_t isTrigType(Int_t bit); 00072 00073 Bool_t isRFTrigger(){return isTrigType(0);}; 00074 Bool_t isSoftwareTrigger(){return isTrigType(2);}; 00075 Bool_t isTriggerChanHigh(Int_t bit); 00076 Int_t numTriggerChansHigh(); 00077 00078 00079 ClassDef(RawAtriStationEvent,3); 00080 }; 00081 00082 00083 00084 00085 #endif //RAWATRISTATIONEVENT
Generated on Mon Dec 9 13:20:21 2013 for ARA ROOT v3.13 Software by
