Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:02

0001 #include <string>
0002 
0003 #include "FWCore/Framework/interface/Event.h"
0004 #include "FWCore/Framework/interface/EventSetup.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 
0007 #include "L1Trigger/L1TMuonEndCapPhase2/interface/EMTFConfiguration.h"
0008 
0009 using namespace emtf::phase2;
0010 
0011 EMTFConfiguration::EMTFConfiguration(const edm::ParameterSet& pset) {
0012   verbosity_ = pset.getUntrackedParameter<int>("Verbosity");
0013 
0014   // Validation
0015   validation_dir_ = pset.getParameter<std::string>("ValidationDirectory");
0016 
0017   // Neural Network
0018   prompt_graph_path_ = pset.getParameter<std::string>("PromptGraphPath");
0019   displ_graph_path_ = pset.getParameter<std::string>("DisplacedGraphPath");
0020 
0021   // Trigger
0022   min_bx_ = pset.getParameter<int>("MinBX");
0023   max_bx_ = pset.getParameter<int>("MaxBX");
0024   bx_window_ = pset.getParameter<int>("BXWindow");
0025 
0026   // Subsystems
0027   csc_en_ = pset.getParameter<bool>("CSCEnabled");
0028   rpc_en_ = pset.getParameter<bool>("RPCEnabled");
0029   gem_en_ = pset.getParameter<bool>("GEMEnabled");
0030   me0_en_ = pset.getParameter<bool>("ME0Enabled");
0031   ge0_en_ = pset.getParameter<bool>("GE0Enabled");
0032 
0033   csc_bx_shift_ = pset.getParameter<int>("CSCInputBXShift");
0034   rpc_bx_shift_ = pset.getParameter<int>("RPCInputBXShift");
0035   gem_bx_shift_ = pset.getParameter<int>("GEMInputBXShift");
0036   me0_bx_shift_ = pset.getParameter<int>("ME0InputBXShift");
0037 
0038   csc_input_ = pset.getParameter<edm::InputTag>("CSCInput");
0039   rpc_input_ = pset.getParameter<edm::InputTag>("RPCInput");
0040   gem_input_ = pset.getParameter<edm::InputTag>("GEMInput");
0041   me0_input_ = pset.getParameter<edm::InputTag>("ME0Input");
0042   ge0_input_ = pset.getParameter<edm::InputTag>("GE0Input");
0043 
0044   // Primitive Selection
0045   include_neighbor_en_ = pset.getParameter<bool>("IncludeNeighborEnabled");
0046 }
0047 
0048 EMTFConfiguration::~EMTFConfiguration() {}
0049 
0050 void EMTFConfiguration::update(const edm::Event& i_event, const edm::EventSetup& i_event_setup) {
0051   // Do Nothing
0052 }