1 |
|
#ifndef TrackToL1ObjMatcher_H |
2 |
|
#define TrackToL1ObjMatcher_H |
3 |
|
|
4 |
– |
#include "UserCode/L1RpcTriggerAnalysis/interface/L1Obj.h" |
4 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
5 |
|
namespace edm { class Event; class EventSetup; } |
6 |
|
class TrajectoryStateOnSurface; |
7 |
|
|
8 |
|
class TrackToL1ObjMatcher { |
9 |
|
public: |
10 |
< |
TrackToL1ObjMatcher(const edm::ParameterSet & cfg) : theConfig(cfg) {} |
11 |
< |
bool operator()(const L1Obj& l1, const TrajectoryStateOnSurface & tsos, const edm::Event&ev, const edm::EventSetup& es) const; |
10 |
> |
struct LastResult { bool isValid; float deltaEta, deltaPhi; }; |
11 |
> |
public: |
12 |
> |
TrackToL1ObjMatcher(const edm::ParameterSet & cfg); |
13 |
> |
bool operator()(float l1Eta, float l1Phi, const TrajectoryStateOnSurface & tsos, const edm::Event&ev, const edm::EventSetup& es) const; |
14 |
> |
const LastResult & lastResult() const { return theLastResult; } |
15 |
|
private: |
16 |
|
edm::ParameterSet theConfig; |
17 |
< |
|
17 |
> |
mutable LastResult theLastResult; |
18 |
|
}; |
19 |
|
#endif |