1 |
konec |
1.1 |
#ifndef UserCode_L1RpcTriggerAnalysis_AnaDigiSpec_H
|
2 |
|
|
#define UserCode_L1RpcTriggerAnalysis_AnaDigiSpec_H
|
3 |
|
|
|
4 |
|
|
class TrackObj;
|
5 |
|
|
class HitSpecObj;
|
6 |
|
|
class TObjArray;
|
7 |
|
|
class EventObj;
|
8 |
|
|
class TH2D;
|
9 |
|
|
|
10 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
11 |
|
|
#include <vector>
|
12 |
|
|
#include <utility>
|
13 |
|
|
#include <map>
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
class AnaDigiSpec {
|
19 |
|
|
public:
|
20 |
|
|
typedef std::vector< std::pair<uint32_t, uint32_t> > VDigiSpec;
|
21 |
|
|
AnaDigiSpec(const edm::ParameterSet & cfg) : theConfig(cfg) {}
|
22 |
|
|
void init(TObjArray& histos);
|
23 |
|
|
void run(const EventObj* ev, const TrackObj * simu, const HitSpecObj * hitSpec, const VDigiSpec & higSpec);
|
24 |
|
|
void resume(TObjArray& histos);
|
25 |
|
|
private:
|
26 |
|
|
edm::ParameterSet theConfig;
|
27 |
|
|
typedef std::map< uint32_t, TH2D* > HMap;
|
28 |
konec |
1.2 |
HMap theCscPosB, theCscBendB, theDtPosB, theDtBendB, theRpcBPosB, theRpcEPosB;
|
29 |
|
|
HMap theCscPosE, theCscBendE, theDtPosE, theDtBendE, theRpcBPosE, theRpcEPosE;
|
30 |
konec |
1.1 |
private:
|
31 |
|
|
typedef std::vector<TH2D*> VHisto;
|
32 |
|
|
VHisto topN(const HMap & hmap, unsigned int n) const;
|
33 |
|
|
};
|
34 |
|
|
#endif
|
35 |
|
|
|