CMS 3D CMS Logo

CSCTFSectorProcessor.h

Go to the documentation of this file.
00001 
00008 #ifndef CSCTrackFinder_CSCTFSectorProcessor_h
00009 #define CSCTrackFinder_CSCTFSectorProcessor_h
00010 
00011 #include <vector>
00012 #include <map>
00013 #include <string>
00014 #include <DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h>
00015 #include <DataFormats/L1CSCTrackFinder/interface/TrackStub.h>
00016 #include <DataFormats/L1CSCTrackFinder/interface/CSCTriggerContainer.h>
00017 #include <FWCore/ParameterSet/interface/ParameterSet.h>
00018 
00019 #include <L1Trigger/CSCTrackFinder/interface/CSCSectorReceiverLUT.h>
00020 #include <L1Trigger/CSCTrackFinder/interface/CSCTFSPCoreLogic.h>
00021 #include <L1Trigger/CSCTrackFinder/interface/CSCTFPtLUT.h>
00023 #include <FWCore/Framework/interface/EventSetup.h>
00025 
00026 class CSCTFSectorProcessor
00027 {
00028 public:
00029   CSCTFSectorProcessor(const unsigned& endcap,
00030                        const unsigned& sector,
00031                        const edm::ParameterSet& pset,
00032                        bool tmb07,
00033                        const L1MuTriggerScales* scales,
00034                        const L1MuTriggerPtScale* ptScale );
00035 
00037   void initialize(const edm::EventSetup& c);
00039 
00040   ~CSCTFSectorProcessor();
00041 
00042   bool run(const CSCTriggerContainer<csctf::TrackStub>&);
00043 
00044   CSCTriggerContainer<csc::L1Track> tracks() const { return l1_tracks; }
00045   std::vector<csctf::TrackStub> filteredStubs() const { return stub_vec_filtered; }
00046 
00047   CSCTriggerContainer<csctf::TrackStub> dtStubs() const { return dt_stubs; }
00048 
00049   int minBX() const { return m_minBX; }
00050   int maxBX() const { return m_maxBX; }
00051 
00052   void readParameters(const edm::ParameterSet& pset);
00053 
00054  private:
00055   // disallow copy and assignment
00056   CSCTFSectorProcessor& operator=(const CSCTFSectorProcessor& rhs) { return *this; };
00057   CSCTFSectorProcessor(const CSCTFSectorProcessor& par) {}
00058 
00059   bool initializeFromPSet;
00060   unsigned m_endcap, m_sector, TMB07;
00061   unsigned m_latency;
00062 
00063   // All parameters below are signed to allow for uninitialized (<0) state
00064   int m_bxa_depth, m_allowALCTonly, m_allowCLCTonly, m_preTrigger;
00065   int m_minBX, m_maxBX;
00066   int m_etawin[6], m_etamin[8], m_etamax[8];
00067   int m_mindphip, m_mindeta_accp, m_maxdeta_accp, m_maxdphi_accp;
00068   //  following parameters were moved here from the CSCTFTrackBuilder because they naturally belong here
00069   int QualityEnableME1a, QualityEnableME1b, QualityEnableME1c, QualityEnableME1d, QualityEnableME1e, QualityEnableME1f;
00070   int QualityEnableME2a, QualityEnableME2b, QualityEnableME2c;
00071   int QualityEnableME3a, QualityEnableME3b, QualityEnableME3c;
00072   int QualityEnableME4a, QualityEnableME4b, QualityEnableME4c;
00073   int kill_fiber;
00074   int run_core;
00075   int trigger_on_ME1a, trigger_on_ME1b, trigger_on_ME2, trigger_on_ME3, trigger_on_ME4;
00076   int trigger_on_MB1a, trigger_on_MB1d;
00077   int singlesTrackPt,  singlesTrackOutput;
00078   int rescaleSinglesPhi;
00079 
00080   CSCTriggerContainer<csc::L1Track> l1_tracks; // fully defined L1Tracks
00081   CSCTriggerContainer<csctf::TrackStub> dt_stubs; // Track Stubs to be sent to the DTTF
00082   std::vector<csctf::TrackStub> stub_vec_filtered; // Collectin of stubs after applying kill_fiber and QualityEnable masks
00083 
00084   static const std::string FPGAs[5];
00085 
00086   std::map<std::string, CSCSectorReceiverLUT*> srLUTs_; // indexed by FPGA
00087   CSCTFSPCoreLogic* core_;
00088   CSCTFPtLUT* ptLUT_;
00089 };
00090 
00091 #endif

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