1 |
konec |
1.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 |
konec |
1.5 |
#include "DataFormats/TrackReco/interface/TrackFwd.h"
|
15 |
|
|
#include "DataFormats/TrackReco/interface/Track.h"
|
16 |
|
|
|
17 |
konec |
1.1 |
|
18 |
|
|
#include <vector>
|
19 |
konec |
1.4 |
#include <string>
|
20 |
konec |
1.1 |
|
21 |
|
|
namespace edm { class Event; class EventSetup; }
|
22 |
|
|
|
23 |
|
|
class Analysis {
|
24 |
|
|
public:
|
25 |
|
|
|
26 |
|
|
Analysis(const edm::ParameterSet& conf);
|
27 |
|
|
~Analysis();
|
28 |
konec |
1.3 |
|
29 |
|
|
const SimTrack * bestTrack(const edm::Event& ev) const;
|
30 |
|
|
|
31 |
|
|
void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass);
|
32 |
konec |
1.1 |
|
33 |
konec |
1.5 |
void checkEfficiency(const reco::TrackCollection & tracks);
|
34 |
konec |
1.1 |
void checkEfficiency(const OrderedSeedingHits& candidates);
|
35 |
konec |
1.4 |
void checkAlgoEfficiency1(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& );
|
36 |
|
|
void checkAlgoEfficiency2(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& );
|
37 |
konec |
1.1 |
|
38 |
konec |
1.2 |
static void print(const SimTrack & track) ;
|
39 |
konec |
1.4 |
static std::string print(const ctfseeding::SeedingHit & hit);
|
40 |
konec |
1.1 |
private:
|
41 |
|
|
unsigned int matchedHits(unsigned int trackId, const SeedingHitSet& hits);
|
42 |
|
|
bool select(const SimTrack & track) const;
|
43 |
konec |
1.4 |
bool compareHitSets(const SeedingHitSet& hits1, const SeedingHitSet& hits2) const;
|
44 |
konec |
1.1 |
|
45 |
|
|
private:
|
46 |
|
|
edm::ParameterSet theConfig;
|
47 |
|
|
|
48 |
|
|
const edm::Event * theEvent;
|
49 |
|
|
const edm::EventSetup * theSetup;
|
50 |
|
|
|
51 |
|
|
TrackerHitAssociator * theAssociator;
|
52 |
|
|
std::vector<SimTrack> theSimTracks;
|
53 |
|
|
|
54 |
|
|
TH1D *hEffPt_N, *hEffPt_D, *hEffAlgoPt_N, *hEffAlgoPt_D;
|
55 |
|
|
TH1D *hEffEta_N, *hEffEta_D, *hEffAlgoEta_N, *hEffAlgoEta_D;
|
56 |
|
|
TH1D *hEffPhi_N, *hEffPhi_D;
|
57 |
|
|
TH1D *hPurePt_N, *hPurePt_D;
|
58 |
konec |
1.2 |
|
59 |
konec |
1.1 |
TFile * rootFile;
|
60 |
|
|
|
61 |
konec |
1.2 |
|
62 |
konec |
1.1 |
};
|
63 |
|
|
|