1 | #ifndef VertexFinder_h
|
---|
2 | #define VertexFinder_h
|
---|
3 |
|
---|
4 | /** \class VertexFinder
|
---|
5 | *
|
---|
6 | * Merges particles from pile-up sample into event
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * $Date: 2013-02-12 15:13:59 +0100 (Tue, 12 Feb 2013) $
|
---|
10 | * $Revision: 907 $
|
---|
11 | *
|
---|
12 | *
|
---|
13 | * \author M. Selvaggi - UCL, Louvain-la-Neuve
|
---|
14 | *
|
---|
15 | */
|
---|
16 |
|
---|
17 | #include "classes/DelphesModule.h"
|
---|
18 | #include "classes/DelphesClasses.h"
|
---|
19 | #include <utility>
|
---|
20 | #include <algorithm>
|
---|
21 | #include <stdexcept>
|
---|
22 | #include <iostream>
|
---|
23 | #include <sstream>
|
---|
24 | #include <vector>
|
---|
25 |
|
---|
26 | using namespace std;
|
---|
27 |
|
---|
28 | class TObjArray;
|
---|
29 | class Candidate;
|
---|
30 | class TVector3;
|
---|
31 |
|
---|
32 | class VertexFinder: public DelphesModule
|
---|
33 | {
|
---|
34 | public:
|
---|
35 |
|
---|
36 | VertexFinder();
|
---|
37 | ~VertexFinder();
|
---|
38 |
|
---|
39 | void Init();
|
---|
40 | void Process();
|
---|
41 | void Finish();
|
---|
42 |
|
---|
43 | static bool secondDescending (pair<unsigned, double>, pair<unsigned, double>);
|
---|
44 | static bool secondAscending (pair<unsigned, double>, pair<unsigned, double>);
|
---|
45 |
|
---|
46 | private:
|
---|
47 |
|
---|
48 | void createSeeds ();
|
---|
49 | void growCluster (const unsigned);
|
---|
50 | double weight (const unsigned);
|
---|
51 | void addTrackToCluster (const unsigned, const unsigned);
|
---|
52 | void removeTrackFromCluster (const unsigned, const unsigned);
|
---|
53 |
|
---|
54 | Double_t fSigma;
|
---|
55 | Double_t fMinPT;
|
---|
56 | Double_t fMaxEta;
|
---|
57 | Double_t fSeedMinPT;
|
---|
58 | Int_t fMinNDF;
|
---|
59 | Int_t fGrowSeeds;
|
---|
60 |
|
---|
61 | TObjArray *fInputArray;
|
---|
62 | TIterator *fItInputArray;
|
---|
63 |
|
---|
64 | TObjArray *fOutputArray;
|
---|
65 | TObjArray *fClusterOutputArray;
|
---|
66 |
|
---|
67 | map<unsigned, map<string, double> > trackIDToDouble;
|
---|
68 | map<unsigned, map<string, int> > trackIDToInt;
|
---|
69 | map<unsigned, map<string, bool> > trackIDToBool;
|
---|
70 |
|
---|
71 | map<unsigned, map<string, double> > clusterIDToDouble;
|
---|
72 | map<unsigned, map<string, int> > clusterIDToInt;
|
---|
73 | map<unsigned, map<string, bool> > clusterIDToBool;
|
---|
74 | vector<pair<unsigned, double> > trackPT;
|
---|
75 | vector<pair<unsigned, double> > clusterSumPT2;
|
---|
76 |
|
---|
77 | ClassDef(VertexFinder, 1)
|
---|
78 | };
|
---|
79 |
|
---|
80 | #endif
|
---|