Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /*
0002  * PtAssignmentBase.h
0003  *
0004  *  Created on: Mar 16, 2020
0005  *      Author: kbunkow
0006  */
0007 
0008 #ifndef L1T_OmtfP1_PTASSIGNMENTBASE_H_
0009 #define L1T_OmtfP1_PTASSIGNMENTBASE_H_
0010 
0011 #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/AlgoMuon.h"
0012 #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/IOMTFEmulationObserver.h"
0013 
0014 /*
0015  * base class for the objects providing an alternative pt assignment on top of the OMTF golden pattern (like neural network)
0016  * getPts() is called inside OMTFProcessor<GoldenPatternType>::getFinalcandidates
0017  */
0018 class PtAssignmentBase {
0019 public:
0020   PtAssignmentBase(const OMTFConfiguration* omtfConfig) : omtfConfig(omtfConfig){};
0021   virtual ~PtAssignmentBase();
0022 
0023   virtual std::vector<float> getPts(AlgoMuons::value_type& algoMuon,
0024                                     std::vector<std::unique_ptr<IOMTFEmulationObserver> >& observers) = 0;
0025 
0026 protected:
0027   const OMTFConfiguration* omtfConfig = nullptr;
0028 };
0029 
0030 #endif /* L1T_OmtfP1_PTASSIGNMENTBASE_H_ */