CMS 3D CMS Logo

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
BMTFTokens.h
l1t::UnpackerMap
std::map< int, std::shared_ptr< Unpacker > > UnpackerMap
Definition: PackingSetup.h:25
l1t::stage2::BMTFSetup::registerConsumes
std::unique_ptr< PackerTokens > registerConsumes(const edm::ParameterSet &cfg, edm::ConsumesCollector &cc) override
Definition: BMTFSetup.cc:10
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
l1t::stage2::BMTFSetup::firstKalmanFwVer
const unsigned int firstKalmanFwVer
Definition: BMTFSetup.h:42
ProducesCollector.h
l1t::PackerMap
std::map< std::pair< int, int >, Packers > PackerMap
Definition: PackingSetup.h:23
BMTFPackerOutput.h
BMTFCollections.h
PackingSetup.h
l1t::stage2::BMTFSetup::getPackers
PackerMap getPackers(int fed, unsigned int fw) override
Definition: BMTFSetup.cc:17
edm::ParameterSet
Definition: ParameterSet.h:47
l1t::PackingSetup
Definition: PackingSetup.h:27
l1t
delete x;
Definition: CaloConfig.h:22
l1t::stage2::BMTFSetup
Definition: BMTFSetup.h:16
fw
Definition: estimate_field.h:12
l1t::stage2::BMTFSetup::fillDescription
void fillDescription(edm::ParameterSetDescription &desc) override
Definition: BMTFSetup.cc:15
cc
SiStripSourceConfigTier0_cff.stage2
stage2
Definition: SiStripSourceConfigTier0_cff.py:71
l1t::stage2::BMTFSetup::getCollections
std::unique_ptr< UnpackerCollections > getCollections(edm::Event &e) override
Definition: BMTFSetup.cc:42
Packer.h
looper.cfg
cfg
Definition: looper.py:296
BMTFUnpackerOutput.h
l1t::stage2::BMTFSetup::boardIdPerSlot
const std::map< int, int > boardIdPerSlot
Definition: BMTFSetup.h:26
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ProducesCollector
Definition: ProducesCollector.h:43
Unpacker.h
l1t::stage2::BMTFSetup::getUnpackers
UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override
Definition: BMTFSetup.cc:46
amc
Definition: AMCSpec.h:8
l1t::stage2::BMTFSetup::firstNewInputsFwVer
const unsigned int firstNewInputsFwVer
Definition: BMTFSetup.h:41
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
l1t::stage2::BMTFSetup::registerProducts
void registerProducts(edm::ProducesCollector) override
Definition: BMTFSetup.cc:35
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37