-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJet.h
executable file
·34 lines (25 loc) · 859 Bytes
/
Jet.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
#ifndef Jet_h
#define Jet_h
#include "TLorentzVector.h"
class Jet {
public:
Jet(TLorentzVector& lorentzVec00, double& eta00, double& btag_disc00, double& threeD00, unsigned int jetIndex00)
: lorentzVec_(lorentzVec00), eta_(eta00), btag_disc_(btag_disc00), threeD_(threeD00), jetIndex_(jetIndex00) {};
~Jet() {}
//void set_btagged(bool btagged) { btagged_ = btagged; }
TLorentzVector& lorentzVec() { return lorentzVec_; }
double eta() {return eta_; }
unsigned int ijet() { return jetIndex_; }
double btag_disc() { return btag_disc_; }
double threeD() {return threeD_; }
private:
TLorentzVector lorentzVec_;
double eta_;
double btag_disc_;
double threeD_;
unsigned int jetIndex_;
};
bool JetPTSorter(Jet jet1, Jet jet2) {
return jet1.lorentzVec().Pt() > jet2.lorentzVec().Pt();
}
#endif