ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/AnaDigiSpec.h
Revision: 1.1
Committed: Fri May 17 13:04:50 2013 UTC (11 years, 11 months ago) by konec
Content type: text/plain
Branch: MAIN
Log Message:
extenstion for OTF

File Contents

# User Rev Content
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     HMap theCscPos, theCscBend, theDtPos, theDtBend, theRpcBPos, theRpcEPos,;
29     private:
30     typedef std::vector<TH2D*> VHisto;
31     VHisto topN(const HMap & hmap, unsigned int n) const;
32     };
33     #endif
34