CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/EventFilter/CSCTFRawToDigi/interface/CSCTFUnpacker.h

Go to the documentation of this file.
00001 #ifndef CSCTFUnpacker_h
00002 #define CSCTFUnpacker_h
00003 
00004 #include <FWCore/Framework/interface/EDProducer.h>
00005 #include <FWCore/ParameterSet/interface/ParameterSet.h>
00006 #include <FWCore/Utilities/interface/InputTag.h>
00007 
00008 //CSC Track Finder Raw Data Format
00009 #include "EventFilter/CSCTFRawToDigi/src/CSCTFEvent.h"
00010 
00011 #include <vector>
00012 #include <string>
00013 
00014 class CSCTriggerMapping;
00015 
00016 class CSCTFUnpacker: public edm::EDProducer {
00017 private:
00018         int  m_minBX, m_maxBX;
00019         bool swapME1strips;
00020 
00021         CSCTriggerMapping *mapping; // redundant, but needed
00022 
00023         CSCTFEvent tfEvent; // TF data container
00024 
00025         // geometry may not be properly set in CSC TF data
00026         // make an artificial assignment of each of 12 SPs (slots 6-11 and 16-21) to 12 sectors (1-12, 0-not assigned)
00027         std::vector<int> slot2sector;
00028 
00029         // label of the module which produced raw data
00030         edm::InputTag producer;
00031 
00032 public:
00033         void produce(edm::Event& e, const edm::EventSetup& c);
00034 
00035         CSCTFUnpacker(const edm::ParameterSet& pset);
00036         ~CSCTFUnpacker(void);
00037 };
00038 
00039 #endif