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.10 by konec, Mon Apr 6 19:34:46 2009 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 + #include <map>
24  
25   namespace edm { class Event; class EventSetup; }
26  
19
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 checkAlgoEfficiency(const ctfseeding::SeedingLayerSets& layersSets, 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 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;
48 +  bool compareHitSets(const SeedingHitSet& hits1, const SeedingHitSet& hits2) const;
49  
50   private:
51    edm::ParameterSet theConfig;
# Line 43 | Line 55 | private:
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   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines