CMS 3D CMS Logo

Validation.h
Go to the documentation of this file.
1 #ifndef RecoTracker_MkFitCore_standalone_Validation_h
2 #define RecoTracker_MkFitCore_standalone_Validation_h
3 
7 
8 namespace mkfit {
9 
10  class Event;
11 
12  // Fit Validation objects -- mplex only
13  struct FitVal {
14  public:
15  FitVal() {}
16  FitVal(float ppz,
17  float eppz,
18  float ppphi,
19  float eppphi,
20  float upt,
21  float eupt,
22  float umphi,
23  float eumphi,
24  float umeta,
25  float eumeta)
26  : ppz(ppz),
27  eppz(eppz),
28  ppphi(ppphi),
29  eppphi(eppphi),
30  upt(upt),
31  eupt(eupt),
32  umphi(umphi),
33  eumphi(eumphi),
34  umeta(umeta),
35  eumeta(eumeta) {}
36 
37  // first p or u = propagated or updated
38  // middle: p or m/nothing = position or momentum
39  // begining: e = error (already sqrt)
40  float ppz, eppz, ppphi, eppphi;
42  };
43 
44  class Validation {
45  public:
46  virtual ~Validation() {}
47 
48  virtual void alignTracks(TrackVec&, TrackExtraVec&, bool) {}
49 
50  virtual void resetValidationMaps() {}
51  virtual void resetDebugVectors() {}
52 
53  virtual void collectFitInfo(const FitVal&, int, int) {}
54 
55  virtual void setTrackExtras(Event& ev) {}
56  virtual void makeSimTkToRecoTksMaps(Event&) {}
57  virtual void makeSeedTkToRecoTkMaps(Event&) {}
58  virtual void makeRecoTkToRecoTkMaps(Event&) {}
59  virtual void makeCMSSWTkToRecoTksMaps(Event&) {}
60  virtual void makeSeedTkToCMSSWTkMap(Event&) {}
61  virtual void makeCMSSWTkToSeedTkMap(Event&) {}
63 
64  virtual void setTrackScoresDumbCMSSW(Event&) {}
65 
66  virtual void fillEfficiencyTree(const Event&) {}
67  virtual void fillFakeRateTree(const Event&) {}
68  virtual void fillConfigTree() {}
69  virtual void fillCMSSWEfficiencyTree(const Event&) {}
70  virtual void fillCMSSWFakeRateTree(const Event&) {}
71  virtual void fillFitTree(const Event&) {}
72 
73  virtual void saveTTrees() {}
74 
75  static Validation* make_validation(const std::string&, const TrackerInfo*);
76 
77  protected:
78  Validation();
79  };
80 
81 } // end namespace mkfit
82 #endif
std::vector< TrackExtra > TrackExtraVec
virtual void resetValidationMaps()
Definition: Validation.h:50
virtual void fillEfficiencyTree(const Event &)
Definition: Validation.h:66
virtual void setTrackScoresDumbCMSSW(Event &)
Definition: Validation.h:64
virtual void saveTTrees()
Definition: Validation.h:73
virtual void makeSimTkToRecoTksMaps(Event &)
Definition: Validation.h:56
virtual void setTrackExtras(Event &ev)
Definition: Validation.h:55
static Validation * make_validation(const std::string &, const TrackerInfo *)
Definition: Validation.cc:5
virtual void alignTracks(TrackVec &, TrackExtraVec &, bool)
Definition: Validation.h:48
virtual void fillCMSSWFakeRateTree(const Event &)
Definition: Validation.h:70
virtual void resetDebugVectors()
Definition: Validation.h:51
virtual void makeSeedTkToCMSSWTkMap(Event &)
Definition: Validation.h:60
virtual void makeCMSSWTkToRecoTksMaps(Event &)
Definition: Validation.h:59
float eumeta
Definition: Validation.h:41
virtual void makeSeedTkToRecoTkMaps(Event &)
Definition: Validation.h:57
virtual void makeRecoTkToSeedTkMapsDumbCMSSW(Event &)
Definition: Validation.h:62
std::vector< Track > TrackVec
float eppphi
Definition: Validation.h:40
FitVal(float ppz, float eppz, float ppphi, float eppphi, float upt, float eupt, float umphi, float eumphi, float umeta, float eumeta)
Definition: Validation.h:16
virtual void makeCMSSWTkToSeedTkMap(Event &)
Definition: Validation.h:61
virtual ~Validation()
Definition: Validation.h:46
virtual void makeRecoTkToRecoTkMaps(Event &)
Definition: Validation.h:58
float eumphi
Definition: Validation.h:41
virtual void collectFitInfo(const FitVal &, int, int)
Definition: Validation.h:53
virtual void fillFakeRateTree(const Event &)
Definition: Validation.h:67
virtual void fillCMSSWEfficiencyTree(const Event &)
Definition: Validation.h:69
virtual void fillConfigTree()
Definition: Validation.h:68
virtual void fillFitTree(const Event &)
Definition: Validation.h:71