CMS 3D CMS Logo

L1GlobalTriggerEvmRawToDigi.h

Go to the documentation of this file.
00001 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerEvmRawToDigi_h
00002 #define EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerEvmRawToDigi_h
00003 
00020 // system include files
00021 #include <memory>
00022 #include <iostream>
00023 
00024 // user include files
00025 #include "FWCore/Framework/interface/Frameworkfwd.h"
00026 #include "FWCore/Framework/interface/EDProducer.h"
00027 
00028 #include "FWCore/Framework/interface/Event.h"
00029 #include "FWCore/Framework/interface/MakerMacros.h"
00030 
00031 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00032 #include "FWCore/ParameterSet/interface/InputTag.h"
00033 
00034 // forward declarations
00035 class L1GtfeWord;
00036 class L1GtfeExtWord;
00037 class L1TcsWord;
00038 class L1GtFdlWord;
00039 
00040 class FEDHeader;
00041 class FEDTrailer;
00042 
00043 
00044 // class declaration
00045 class L1GlobalTriggerEvmRawToDigi : public edm::EDProducer
00046 {
00047 
00048 public:
00049 
00051     explicit L1GlobalTriggerEvmRawToDigi(const edm::ParameterSet&);
00052 
00054     virtual ~L1GlobalTriggerEvmRawToDigi();
00055 
00056 private:
00057 
00058     virtual void beginJob();
00059 
00060     virtual void produce(edm::Event&, const edm::EventSetup&);
00061 
00063 
00065     void unpackHeader(const unsigned char*, FEDHeader&);
00066 
00068     void unpackTrailer(const unsigned char*, FEDTrailer&);
00069 
00070 
00072     void dumpFedRawData(const unsigned char*, int, std::ostream&);
00073 
00075     virtual void endJob();
00076 
00077 private:
00078 
00079     L1GtfeExtWord* m_gtfeWord;
00080     L1TcsWord* m_tcsWord;
00081     L1GtFdlWord* m_gtFdlWord;
00082 
00084     edm::InputTag m_evmGtInputTag;
00085 
00088     int m_evmGtFedId;
00089 
00091     boost::uint16_t m_activeBoardsMaskGt;
00092 
00093     // number of bunch crossing to be unpacked
00094     int m_unpackBxInEvent;
00095 
00098     int m_lowSkipBxInEvent;
00099 
00102     int m_uppSkipBxInEvent;
00103 
00105     //
00107     int m_recordLength0;
00108 
00110     int m_recordLength1;
00111 
00113     int m_totalBxInEvent;
00114 
00115 
00117     int m_bstLengthBytes;
00118 
00119 private:
00120 
00122     int m_verbosity;
00123     bool m_isDebugEnabled;
00124 
00125 
00126 
00127 };
00128 
00129 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerEvmRawToDigi_h

Generated on Tue Jun 9 17:34:41 2009 for CMSSW by  doxygen 1.5.4