ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/TrackToL1ObjMatcher.h
Revision: 1.3
Committed: Mon Nov 28 18:31:04 2011 UTC (13 years, 5 months ago) by konec
Content type: text/plain
Branch: MAIN
CVS Tags: Artur_11_07_2013_B, Artur_11_07_2013_A, Artur_11_07_2013, Artur_28_06_2013, Mikolaj_cmssw533, Mikolaj_cmssw52x, HEAD
Changes since 1.2: +3 -0 lines
Error occurred while calculating annotation data.
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef TrackToL1ObjMatcher_H
2 #define TrackToL1ObjMatcher_H
3
4 #include "FWCore/ParameterSet/interface/ParameterSet.h"
5 namespace edm { class Event; class EventSetup; }
6 namespace reco { class Muon; }
7 class TrajectoryStateOnSurface;
8
9 class TrackToL1ObjMatcher {
10 public:
11 struct LastResult { bool isValid; float deltaEta, deltaPhi; };
12 public:
13 TrackToL1ObjMatcher(const edm::ParameterSet & cfg);
14 bool operator()(float l1Eta, float l1Phi, const reco::Muon *mu, const edm::Event&ev, const edm::EventSetup& es) const;
15 bool operator()(float l1Eta, float l1Phi, const TrajectoryStateOnSurface & tsos, const edm::Event&ev, const edm::EventSetup& es) const;
16 const LastResult & lastResult() const { return theLastResult; }
17 private:
18 bool compare(float l1Eta, float l1Phi, float stateEta, float statePhi) const;
19 edm::ParameterSet theConfig;
20 mutable LastResult theLastResult;
21 };
22 #endif