ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/konec/interface/Analysis.h
(Generate patch)

Comparing UserCode/konec/interface/Analysis.h (file contents):
Revision 1.3 by konec, Mon Aug 27 21:03:02 2007 UTC vs.
Revision 1.6 by konec, Mon Nov 26 07:57:27 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines