1 | #ifndef VertexFinder_h
|
---|
2 | #define VertexFinder_h
|
---|
3 |
|
---|
4 | /** \class VertexFinder
|
---|
5 | *
|
---|
6 | * Cluster vertices from tracks
|
---|
7 | *
|
---|
8 | * \authors A. Hart, M. Selvaggi
|
---|
9 | *
|
---|
10 | */
|
---|
11 |
|
---|
12 |
|
---|
13 | #include "classes/DelphesModule.h"
|
---|
14 | #include "classes/DelphesClasses.h"
|
---|
15 | #include <utility>
|
---|
16 | #include <algorithm>
|
---|
17 | #include <stdexcept>
|
---|
18 | #include <iostream>
|
---|
19 | #include <vector>
|
---|
20 | #include <unordered_map>
|
---|
21 |
|
---|
22 | using namespace std;
|
---|
23 |
|
---|
24 | class TObjArray;
|
---|
25 | class Candidate;
|
---|
26 | class TVector3;
|
---|
27 |
|
---|
28 | class VertexFinder: public DelphesModule
|
---|
29 | {
|
---|
30 | public:
|
---|
31 |
|
---|
32 | VertexFinder();
|
---|
33 | ~VertexFinder();
|
---|
34 |
|
---|
35 | void Init();
|
---|
36 | void Process();
|
---|
37 | void Finish();
|
---|
38 |
|
---|
39 | static Bool_t secondDescending (pair<UInt_t, Double_t>, pair<UInt_t, Double_t>);
|
---|
40 | static Bool_t secondAscending (pair<UInt_t, Double_t>, pair<UInt_t, Double_t>);
|
---|
41 |
|
---|
42 | private:
|
---|
43 |
|
---|
44 | void createSeeds ();
|
---|
45 | void growCluster (const UInt_t);
|
---|
46 | Double_t weight (const UInt_t);
|
---|
47 | void addTrackToCluster (const UInt_t, const UInt_t);
|
---|
48 | void removeTrackFromCluster (const UInt_t, const UInt_t);
|
---|
49 |
|
---|
50 | Double_t fSigma;
|
---|
51 | Double_t fMinPT;
|
---|
52 | Double_t fMaxEta;
|
---|
53 | Double_t fSeedMinPT;
|
---|
54 | Int_t fMinNDF;
|
---|
55 | Int_t fGrowSeeds;
|
---|
56 |
|
---|
57 | TObjArray *fInputArray;
|
---|
58 | TIterator *fItInputArray;
|
---|
59 |
|
---|
60 | TObjArray *fOutputArray;
|
---|
61 | TObjArray *fVertexOutputArray;
|
---|
62 |
|
---|
63 | map<UInt_t, map<string, Double_t> > trackIDToDouble;
|
---|
64 | map<UInt_t, map<string, Int_t> > trackIDToInt;
|
---|
65 | map<UInt_t, map<string, Bool_t> > trackIDToBool;
|
---|
66 |
|
---|
67 | map<UInt_t, map<string, Double_t> > clusterIDToDouble;
|
---|
68 | map<UInt_t, map<string, Int_t> > clusterIDToInt;
|
---|
69 | map<UInt_t, map<string, Bool_t> > clusterIDToBool;
|
---|
70 | vector<pair<UInt_t, Double_t> > trackPT;
|
---|
71 | vector<pair<UInt_t, Double_t> > clusterSumPT2;
|
---|
72 |
|
---|
73 | ClassDef(VertexFinder, 1)
|
---|
74 | };
|
---|
75 |
|
---|
76 | #endif
|
---|