1 |
konec |
1.1 |
#ifndef DetEfficiencyManager_h
|
2 |
|
|
#define DetEfficiencyManager_h
|
3 |
|
|
|
4 |
|
|
#include <stdint.h>
|
5 |
|
|
#include <cmath>
|
6 |
|
|
#include <string>
|
7 |
|
|
#include <vector>
|
8 |
|
|
#include "UserCode/L1RpcTriggerAnalysis/interface/DetEfficiency.h"
|
9 |
|
|
|
10 |
|
|
class DetEfficiencyManager {
|
11 |
|
|
public:
|
12 |
|
|
DetEfficiencyManager() {}
|
13 |
|
|
void addDetHit(uint32_t rawId);
|
14 |
|
|
void addDetSimHit(uint32_t rawId);
|
15 |
|
|
void addDetMuon(uint32_t rawId);
|
16 |
|
|
const std::vector<DetEfficiency> & dets() const { return theDets; }
|
17 |
|
|
void print() const;
|
18 |
|
|
unsigned int allDetHit() const;
|
19 |
|
|
unsigned int allDetMuon() const;
|
20 |
|
|
private:
|
21 |
|
|
std::vector<DetEfficiency> theDets;
|
22 |
|
|
std::vector<DetEfficiency>::iterator checkDet(uint32_t rawId);
|
23 |
|
|
|
24 |
|
|
};
|
25 |
|
|
|
26 |
|
|
#endif
|