ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/konec/interface/Analysis.h
Revision: 1.3
Committed: Mon Aug 27 21:03:02 2007 UTC (17 years, 8 months ago) by konec
Content type: text/plain
Branch: MAIN
Changes since 1.2: +4 -1 lines
Log Message:
ZZ

File Contents

# Content
1 #include "FWCore/ParameterSet/interface/ParameterSet.h"
2
3 #include "SimDataFormats/Track/interface/SimTrack.h"
4 #include "RecoTracker/TkSeedingLayers/interface/SeedingLayerSets.h"
5
6 class SeedingHitSet;
7 class TrackerHitAssociator;
8 class OrderedSeedingHits;
9 class TrackingRegion;
10 class TH1D;
11 class TFile;
12 class TProfile;
13
14
15 #include <vector>
16
17 namespace edm { class Event; class EventSetup; }
18
19
20 class Analysis {
21 public:
22
23 Analysis(const edm::ParameterSet& conf);
24 ~Analysis();
25
26 const SimTrack * bestTrack(const edm::Event& ev) const;
27
28 void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass);
29
30 void checkEfficiency(const OrderedSeedingHits& candidates);
31 void checkAlgoEfficiency(const ctfseeding::SeedingLayerSets& layersSets, const OrderedSeedingHits& candidates);
32
33 static void print(const SimTrack & track) ;
34 private:
35 unsigned int matchedHits(unsigned int trackId, const SeedingHitSet& hits);
36 bool select(const SimTrack & track) const;
37
38 private:
39 edm::ParameterSet theConfig;
40
41 const edm::Event * theEvent;
42 const edm::EventSetup * theSetup;
43
44 TrackerHitAssociator * theAssociator;
45 std::vector<SimTrack> theSimTracks;
46
47 TH1D *hEffPt_N, *hEffPt_D, *hEffAlgoPt_N, *hEffAlgoPt_D;
48 TH1D *hEffEta_N, *hEffEta_D, *hEffAlgoEta_N, *hEffAlgoEta_D;
49 TH1D *hEffPhi_N, *hEffPhi_D;
50 TH1D *hPurePt_N, *hPurePt_D;
51
52 TFile * rootFile;
53
54
55 };
56