/
HemisphereViaKt.h
77 lines (57 loc) · 1.74 KB
/
HemisphereViaKt.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef PhysicsTools_Heppy_HemisphereViaKt_h
#define PhysicsTools_Heppy_HemisphereViaKt_h
#include <vector>
#include <iostream>
#include <cmath>
#include <TLorentzVector.h>
#include <TMath.h>
#include <boost/shared_ptr.hpp>
#include <fastjet/internal/base.hh>
//#include "fastjet/ClusterSequence.hh"
#include "fastjet/JetDefinition.hh"
#include "fastjet/ClusterSequence.hh"
#include "fastjet/Selector.hh"
#include "fastjet/PseudoJet.hh"
//FASTJET_BEGIN_NAMESPACE
namespace heppy {
class HemisphereViaKt {
public:
HemisphereViaKt(){};
HemisphereViaKt(std::vector<float> Px_vector,
std::vector<float> Py_vector,
std::vector<float> Pz_vector,
std::vector<float> E_vector);
HemisphereViaKt(std::vector<float> Px_vector,
std::vector<float> Py_vector,
std::vector<float> Pz_vector,
std::vector<float> E_vector,
double ktpower);
// get grouping
std::vector<std::vector<float> > getGrouping();
private:
// the hemisphere separation algorithm
int Reconstruct();
// used to handle the inputs
std::vector<float> Object_Px;
std::vector<float> Object_Py;
std::vector<float> Object_Pz;
std::vector<float> Object_E;
// used to store the exclusive jets
std::vector<float> JetObject_Px;
std::vector<float> JetObject_Py;
std::vector<float> JetObject_Pz;
std::vector<float> JetObject_E;
std::vector<std::vector<float> > JetObjectAll;
std::vector<fastjet::PseudoJet> fjInputs_; // fastjet inputs
std::vector<fastjet::PseudoJet> fjJets_; // fastjet jets
typedef boost::shared_ptr<fastjet::ClusterSequence> ClusterSequencePtr;
ClusterSequencePtr fjClusterSeq_;
double ktpower_;
double rparam_;
int numLoop;
int ktpower;
int status;
int dbg;
};
}
#endif