00001 #ifndef TFHeaderDescription_h 00002 #define TFHeaderDescription_h 00003 00004 #define FEDPMC_TYPE 0xDEF00001 00005 #define FEDEMU_TYPE 0xDEF00003 00006 #define FED9U_TYPE 0xDEF00002 00007 #define FEDTRG_TYPE 0xDEF0DEF0 00008 #include <cstdio> 00009 00010 class TFHeaderDescription { 00011 00012 private: 00013 00014 unsigned long bunchCrossing_; 00015 unsigned long numberOfChannels_; 00016 unsigned long numberOfSamples_; 00017 unsigned long fedType_; 00018 unsigned long fedId_; 00019 unsigned long fedEventNumber_; 00020 00021 public: 00022 00023 void setBunchCrossing(unsigned long t){bunchCrossing_ =t ;} 00024 void setNumberOfChannels(unsigned long t){numberOfChannels_ =t ;} 00025 void setNumberOfSamples(unsigned long t){numberOfSamples_ =t ;} 00026 void setFedType(unsigned long t){fedType_ =t ;} 00027 void setFedId(unsigned long t){fedId_ =t ;} 00028 void setFedEventNumber(unsigned long t){fedEventNumber_ =t ;} 00029 unsigned long getBunchCrossing(){return bunchCrossing_;} 00030 unsigned long getNumberOfChannels(){return numberOfChannels_;} 00031 unsigned long getNumberOfSamples(){return numberOfSamples_;} 00032 unsigned long getFedType(){return fedType_;} 00033 unsigned long getFedId(){return fedId_;} 00034 unsigned long getFedEventNumber(){return fedEventNumber_;} 00035 void Print() 00036 { 00037 printf("Bunch crossing %lx \n Number Of Channels %ld \n Number of Samples %ld \n Fed Type %lx \n Fed Id %lx \n Fed Event Number %ld \n",bunchCrossing_,numberOfChannels_,numberOfSamples_,fedType_,fedId_,fedEventNumber_); 00038 } 00039 00040 }; 00041 00042 #endif