CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BMTFSetup.h
Go to the documentation of this file.
1 #ifndef L1T_PACKER_STAGE2_BMTFSETUP_H
2 #define L1T_PACKER_STAGE2_BMTFSETUP_H
3 
8 
9 #include "BMTFCollections.h"
10 #include "BMTFTokens.h"
11 #include "BMTFUnpackerOutput.h"
12 #include "BMTFPackerOutput.h"
13 
14 namespace l1t {
15  namespace stage2 {
16  class BMTFSetup : public PackingSetup {
17  public:
18  std::unique_ptr<PackerTokens> registerConsumes(const edm::ParameterSet& cfg, edm::ConsumesCollector& cc) override;
20  PackerMap getPackers(int fed, unsigned int fw) override;
22  std::unique_ptr<UnpackerCollections> getCollections(edm::Event& e) override;
23  UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override;
24 
25  private:
26  const std::map<int, int> boardIdPerSlot{
27  // {slot, boardId}
28  {1, 1},
29  {3, 2},
30  {5, 3},
31  {7, 4},
32  {9, 5},
33  {11, 6}, // Top Crate
34  {2, 7},
35  {4, 8},
36  {6, 9},
37  {8, 10},
38  {10, 11},
39  {12, 12} // Bottom Crate
40  };
41  const unsigned int firstNewInputsFwVer = 0x92300120;
42  const unsigned int firstKalmanFwVer = 0x95000160;
43  };
44  } // namespace stage2
45 } // namespace l1t
46 
47 #endif
tuple cfg
Definition: looper.py:296
std::unique_ptr< PackerTokens > registerConsumes(const edm::ParameterSet &cfg, edm::ConsumesCollector &cc) override
Definition: BMTFSetup.cc:10
const unsigned int firstKalmanFwVer
Definition: BMTFSetup.h:42
PackerMap getPackers(int fed, unsigned int fw) override
Definition: BMTFSetup.cc:17
std::map< int, std::shared_ptr< Unpacker > > UnpackerMap
Definition: PackingSetup.h:25
double amc
Definition: hdecay.h:20
void fillDescription(edm::ParameterSetDescription &desc) override
Definition: BMTFSetup.cc:15
std::unique_ptr< UnpackerCollections > getCollections(edm::Event &e) override
Definition: BMTFSetup.cc:42
const std::map< int, int > boardIdPerSlot
Definition: BMTFSetup.h:26
UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override
Definition: BMTFSetup.cc:46
std::map< std::pair< int, int >, Packers > PackerMap
Definition: PackingSetup.h:23
const unsigned int firstNewInputsFwVer
Definition: BMTFSetup.h:41
void registerProducts(edm::ProducesCollector) override
Definition: BMTFSetup.cc:35