CMS 3D CMS Logo

LateralityCoarsedProvider.h
Go to the documentation of this file.
1 #ifndef L1Trigger_DTTriggerPhase2_LateralityCoarsedProvider_h
2 #define L1Trigger_DTTriggerPhase2_LateralityCoarsedProvider_h
3 
5 
6 // ===============================================================================
7 // Previous definitions and declarations
8 // ===============================================================================
9 
15 };
16 
17 // ===============================================================================
18 // Class declarations
19 // ===============================================================================
20 
22 public:
23  // Constructors and destructor
25  ~LateralityCoarsedProvider() override;
26 
27  // Main methods
28  void initialise(const edm::EventSetup &iEventSetup) override;
29  void run(edm::Event &iEvent,
30  const edm::EventSetup &iEventSetup,
31  MuonPathPtrs &inMpath,
32  std::vector<lat_vector> &lateralities) override;
33 
34  void finish() override;
35 
36  // Other public methods
37 
38 private:
39  // Private methods
40  void analyze(MuonPathPtr &inMPath, std::vector<lat_vector> &lateralities);
41  std::vector<short> coarsify_times(MuonPathPtr &inMPath);
42  void fill_lat_combinations();
43  std::vector<std::vector<short>> convertString(std::string chain);
44  // Private attributes
45  const bool debug_;
46  std::vector<lat_coarsed_combination> lat_combinations;
48 };
49 
50 #endif
std::vector< MuonPathPtr > MuonPathPtrs
Definition: MuonPath.h:132
void run(edm::Event &iEvent, const edm::EventSetup &iEventSetup, MuonPathPtrs &inMpath, std::vector< lat_vector > &lateralities) override
int iEvent
Definition: GenABIO.cc:224
short cellLayout[cmsdt::NUM_LAYERS]
void analyze(MuonPathPtr &inMPath, std::vector< lat_vector > &lateralities)
short coarsed_times[cmsdt::NUM_LAYERS]
std::vector< latcomb > lat_vector
std::vector< lat_coarsed_combination > lat_combinations
LateralityCoarsedProvider(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
std::vector< short > coarsify_times(MuonPathPtr &inMPath)
std::shared_ptr< MuonPath > MuonPathPtr
Definition: MuonPath.h:131
constexpr int NUM_LAYERS
Definition: constants.h:358
std::vector< std::vector< short > > convertString(std::string chain)
void initialise(const edm::EventSetup &iEventSetup) override