AraEvent/AraRawIcrrRFChannel.h
00001 00002 00003 00004 00005 00006 00007 00008 00009 #ifndef ARARAWICRRRFCHANNEL_H 00010 #define ARARAWICRRRFCHANNEL_H 00011 00012 //Includes 00013 #include <TObject.h> 00014 #include "araIcrrStructures.h" 00015 #include "araIcrrDefines.h" 00016 00018 00022 class AraRawIcrrRFChannel: public TObject 00023 { 00024 public: 00025 AraRawIcrrRFChannel(); 00026 AraRawIcrrRFChannel(IcrrRFChannelFull_t *rfChan); 00027 ~AraRawIcrrRFChannel(); 00028 void fillChannel(IcrrRFChannelFull_t *rfChan); 00029 00031 00034 unsigned char chanId; // chan+9*LAB3 00036 00042 unsigned char chipIdFlag; // Bits 0,1 chipNum; Bit 3 hitBus wrap; 4-7 hitBusOff 00044 00048 unsigned char firstHitbus; // If wrappedHitbus=0 data runs, lastHitbus+1 00050 00054 unsigned char lastHitbus; //to firstHitbus-1 inclusive 00055 00056 UShort_t data[MAX_NUMBER_SAMPLES_LAB3]; 00057 00058 Int_t getLabChip() { 00059 return chipIdFlag&0x3; 00060 } 00061 Int_t getRCO() { 00062 return (chipIdFlag&0x4)>>2; 00063 } 00064 Int_t getFirstHitBus() { 00065 return firstHitbus; 00066 } 00067 Int_t getLastHitBus() { 00068 if(lastHitbus<255) return lastHitbus; 00069 return Int_t(lastHitbus) + Int_t((chipIdFlag)>>4); 00070 } 00071 Int_t getWrappedHitBus() { 00072 return ((chipIdFlag)&0x8)>>3; 00073 } 00074 00075 Int_t getLatestSample(); 00076 Int_t getEarliestSample(); 00077 00078 ClassDef(AraRawIcrrRFChannel,1); 00079 }; 00080 00081 00082 #endif //ARARAWICRRRFCHANNEL_H
Generated on Mon Dec 9 13:20:21 2013 for ARA ROOT v3.13 Software by
