forked from trackreco/mkFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Validation.h
63 lines (48 loc) · 1.78 KB
/
Validation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef _validation_
#define _validation_
#include "Track.h"
namespace mkfit {
class Event;
// Fit Validation objects -- mplex only
struct FitVal
{
public:
FitVal() {}
FitVal(float ppz, float eppz, float ppphi, float eppphi,
float upt, float eupt, float umphi, float eumphi, float umeta, float eumeta) :
ppz(ppz), eppz(eppz), ppphi(ppphi), eppphi(eppphi), upt(upt), eupt(eupt), umphi(umphi), eumphi(eumphi), umeta(umeta), eumeta(eumeta) {}
// first p or u = propagated or updated
// middle: p or m/nothing = position or momentum
// begining: e = error (already sqrt)
float ppz, eppz, ppphi, eppphi;
float upt, eupt, umphi, eumphi, umeta, eumeta;
};
class Validation {
public:
virtual ~Validation() {}
virtual void alignTracks(TrackVec&, TrackExtraVec&, bool) {}
virtual void resetValidationMaps() {}
virtual void resetDebugVectors() {}
virtual void collectFitInfo(const FitVal&, int, int) {}
virtual void setTrackExtras(Event& ev) {}
virtual void makeSimTkToRecoTksMaps(Event&) {}
virtual void makeSeedTkToRecoTkMaps(Event&) {}
virtual void makeRecoTkToRecoTkMaps(Event&) {}
virtual void makeCMSSWTkToRecoTksMaps(Event&) {}
virtual void makeSeedTkToCMSSWTkMap(Event&) {}
virtual void makeCMSSWTkToSeedTkMap(Event&) {}
virtual void makeRecoTkToSeedTkMapsDumbCMSSW(Event&) {}
virtual void setTrackScoresDumbCMSSW(Event &) {}
virtual void fillEfficiencyTree(const Event&) {}
virtual void fillFakeRateTree(const Event&) {}
virtual void fillConfigTree() {}
virtual void fillCMSSWEfficiencyTree(const Event&) {}
virtual void fillCMSSWFakeRateTree(const Event&) {}
virtual void fillFitTree(const Event&) {}
virtual void saveTTrees() {}
static Validation* make_validation(const std::string&);
protected:
Validation();
};
} // end namespace mkfit
#endif