![]() |
![]() |
00001 #ifndef ESDATAFORMATTERV1_1_H 00002 #define ESDATAFORMATTERV1_1_H 00003 00004 #include <iostream> 00005 #include <vector> 00006 #include <bitset> 00007 #include <sstream> 00008 #include <map> 00009 00010 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h" 00011 #include "DataFormats/EcalDigi/interface/ESDataFrame.h" 00012 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h" 00013 #include "DataFormats/FEDRawData/interface/FEDRawData.h" 00014 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00015 00016 #include "EventFilter/ESDigiToRaw/interface/ESDataFormatter.h" 00017 00018 class ESDigiToRaw; 00019 00020 class ESDataFormatterV1_1 : public ESDataFormatter { 00021 00022 public : 00023 00024 typedef ESDataFormatter::DetDigis DetDigis; 00025 typedef ESDataFormatter::Digis Digis; 00026 00027 typedef ESDataFormatter::Word8 Word8; 00028 typedef ESDataFormatter::Word16 Word16; 00029 typedef ESDataFormatter::Word32 Word32; 00030 typedef ESDataFormatter::Word64 Word64; 00031 00032 ESDataFormatterV1_1(const edm::ParameterSet& ps); 00033 ~ESDataFormatterV1_1(); 00034 00035 void DigiToRaw(int fedId, Digis & digis, FEDRawData& fedRawData); 00036 00037 00038 private : 00039 00040 00041 00042 protected : 00043 00044 static const int bDHEAD, bDH, bDEL, bDERR, bDRUN, bDRUNTYPE, bDTRGTYPE, bDCOMFLAG, bDORBIT; 00045 static const int bDVMINOR, bDVMAJOR, bDCH, bDOPTO; 00046 static const int sDHEAD, sDH, sDEL, sDERR, sDRUN, sDRUNTYPE, sDTRGTYPE, sDCOMFLAG, sDORBIT; 00047 static const int sDVMINOR, sDVMAJOR, sDCH, sDOPTO; 00048 static const int bKEC, bKFLAG2, bKBC, bKFLAG1, bKET, bKCRC, bKCE, bKID, bFIBER, bKHEAD1, bKHEAD2; 00049 static const int sKEC, sKFLAG2, sKBC, sKFLAG1, sKET, sKCRC, sKCE, sKID, sFIBER, sKHEAD1, sKHEAD2; 00050 static const int bHEAD, bE1, bE0, bSTRIP, bPACE, bADC2, bADC1, bADC0; 00051 static const int sHEAD, sE1, sE0, sSTRIP, sPACE, sADC2, sADC1, sADC0; 00052 00053 00054 }; 00055 00056 #endif