1 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
2 |
|
|
3 |
|
#include "SimDataFormats/Track/interface/SimTrack.h" |
4 |
+ |
#include "SimDataFormats/Vertex/interface/SimVertex.h" |
5 |
+ |
|
6 |
|
#include "RecoTracker/TkSeedingLayers/interface/SeedingLayerSets.h" |
7 |
|
|
8 |
|
class SeedingHitSet; |
10 |
|
class OrderedSeedingHits; |
11 |
|
class TrackingRegion; |
12 |
|
class TH1D; |
13 |
< |
class TFile; |
14 |
< |
class TProfile; |
13 |
> |
|
14 |
> |
#include "DataFormats/TrackReco/interface/TrackFwd.h" |
15 |
> |
#include "DataFormats/TrackReco/interface/Track.h" |
16 |
> |
|
17 |
> |
#include "TObjArray.h" |
18 |
> |
TObjArray gHistos; |
19 |
|
|
20 |
|
|
21 |
|
#include <vector> |
22 |
|
#include <string> |
23 |
+ |
#include <map> |
24 |
|
|
25 |
|
namespace edm { class Event; class EventSetup; } |
26 |
|
|
20 |
– |
|
27 |
|
class Analysis { |
28 |
|
public: |
29 |
|
|
30 |
|
Analysis(const edm::ParameterSet& conf); |
31 |
|
~Analysis(); |
32 |
|
|
33 |
< |
const SimTrack * bestTrack(const edm::Event& ev) const; |
33 |
> |
const SimTrack * bestTrack() const; |
34 |
> |
const SimVertex * vertex(const SimTrack * track) const; |
35 |
|
|
36 |
< |
void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass); |
36 |
> |
void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass = 0); |
37 |
|
|
38 |
+ |
void checkEfficiency(const reco::TrackCollection & tracks); |
39 |
|
void checkEfficiency(const OrderedSeedingHits& candidates); |
40 |
|
void checkAlgoEfficiency1(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& ); |
41 |
|
void checkAlgoEfficiency2(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& ); |
42 |
|
|
43 |
|
static void print(const SimTrack & track) ; |
44 |
< |
static std::string print(const ctfseeding::SeedingHit & hit); |
44 |
> |
static void print(const reco::Track & track) ; |
45 |
|
private: |
46 |
|
unsigned int matchedHits(unsigned int trackId, const SeedingHitSet& hits); |
47 |
|
bool select(const SimTrack & track) const; |
55 |
|
|
56 |
|
TrackerHitAssociator * theAssociator; |
57 |
|
std::vector<SimTrack> theSimTracks; |
58 |
+ |
std::vector<SimVertex> theSimVertices; |
59 |
|
|
60 |
< |
TH1D *hEffPt_N, *hEffPt_D, *hEffAlgoPt_N, *hEffAlgoPt_D; |
60 |
> |
TH1D *hEffPt_N, *hEffPt_D, *hEffLPt_N, *hEffLPt_D, *hEffAlgoPt_N, *hEffAlgoPt_D; |
61 |
|
TH1D *hEffEta_N, *hEffEta_D, *hEffAlgoEta_N, *hEffAlgoEta_D; |
62 |
|
TH1D *hEffPhi_N, *hEffPhi_D; |
63 |
|
TH1D *hPurePt_N, *hPurePt_D; |
64 |
|
|
65 |
< |
TFile * rootFile; |
65 |
> |
typedef std::map<std::string, TH1D* > HMap; |
66 |
> |
HMap hMap; |
67 |
|
|
68 |
|
|
69 |
|
}; |