1 |
#ifndef UserCode_L1RpcTriggerAnalysis_PatternManager_H
|
2 |
#define UserCode_L1RpcTriggerAnalysis_PatternManager_H
|
3 |
|
4 |
class TrackObj;
|
5 |
class HitSpecObj;
|
6 |
class EventObj;
|
7 |
|
8 |
#include "UserCode/L1RpcTriggerAnalysis/interface/GoldenPattern.h"
|
9 |
#include "UserCode/L1RpcTriggerAnalysis/interface/L1Obj.h"
|
10 |
|
11 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
12 |
#include <vector>
|
13 |
#include <utility>
|
14 |
#include <map>
|
15 |
|
16 |
|
17 |
class PatternManager {
|
18 |
|
19 |
public:
|
20 |
typedef std::vector< std::pair<uint32_t, uint32_t> > VDigiSpec;
|
21 |
PatternManager(const edm::ParameterSet &cfg);
|
22 |
|
23 |
~PatternManager();
|
24 |
public:
|
25 |
void run(const EventObj* ev, const TrackObj * simu, const HitSpecObj * hitSpec, const VDigiSpec & higSpec);
|
26 |
L1Obj check(const EventObj* ev, const TrackObj * simu, const HitSpecObj * hitSpec, const VDigiSpec & higSpec);
|
27 |
void endJob();
|
28 |
void beginJob();
|
29 |
|
30 |
private:
|
31 |
edm::ParameterSet theConfig;
|
32 |
|
33 |
unsigned int theEvForPatCounter, theEvUsePatCounter;
|
34 |
|
35 |
std::map< GoldenPattern::Key, GoldenPattern> theGPs;
|
36 |
};
|
37 |
#endif
|