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.7 by konec, Tue Apr 15 22:31:14 2008 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 8 | Line 10 | class TrackerHitAssociator;
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  
24   namespace edm { class Event; class EventSetup; }
25  
19
26   class Analysis {
27   public:
28  
29    Analysis(const edm::ParameterSet& conf);
30    ~Analysis();
31  
32 <  const SimTrack * bestTrack(const edm::Event& ev) const;
32 >  const SimTrack * bestTrack() const;
33 >  const SimVertex * vertex(const SimTrack * track) const;
34  
35 <  void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass);
35 >  void init(const edm::Event& ev, const edm::EventSetup& es, TrackerHitAssociator * ass = 0);
36  
37 +  void checkEfficiency(const reco::TrackCollection & tracks);
38    void checkEfficiency(const OrderedSeedingHits& candidates);
39 <  void checkAlgoEfficiency(const ctfseeding::SeedingLayerSets& layersSets, const OrderedSeedingHits& candidates);
39 >  void checkAlgoEfficiency1(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& );
40 >  void checkAlgoEfficiency2(const ctfseeding::SeedingLayerSets&, const OrderedSeedingHits& );
41  
42    static void print(const SimTrack & track) ;
43 +  static std::string print(const ctfseeding::SeedingHit & hit);
44   private:
45    unsigned int matchedHits(unsigned int trackId, const SeedingHitSet& hits);
46    bool select(const SimTrack & track) const;
47 +  bool compareHitSets(const SeedingHitSet& hits1, const SeedingHitSet& hits2) const;
48  
49   private:
50    edm::ParameterSet theConfig;
# Line 43 | Line 54 | private:
54  
55    TrackerHitAssociator * theAssociator;
56    std::vector<SimTrack> theSimTracks;
57 +  std::vector<SimVertex> theSimVertices;
58  
59    TH1D *hEffPt_N, *hEffPt_D, *hEffAlgoPt_N, *hEffAlgoPt_D;
60    TH1D *hEffEta_N, *hEffEta_D, *hEffAlgoEta_N, *hEffAlgoEta_D;
61    TH1D *hEffPhi_N, *hEffPhi_D;
62    TH1D *hPurePt_N, *hPurePt_D;
63  
52  TFile * rootFile;
53
64  
65   };
66  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines