#include <vector>
#include <utility>
#include <math.h>
Go to the source code of this file.
◆ getEtaCategory()
| std::pair< int, double > getEtaCategory |
( |
double | eta | ) |
|
Definition at line 48 of file JetFitterPtEtaCategories.h.
49{
50
51 int actualeta=-1;
53
55 actualeta=2;
56
57 }
else if (fabs(
eta)>=0.7&&fabs(
eta)<1.5){
58 actualeta=1;
59
60 } else {
61 actualeta=0;
62
63 }
64
65 return std::pair<int,double>(actualeta,interval);
66}
Scalar eta() const
pseudorapidity method
◆ getNEtaBins()
◆ getNPtBins()
◆ getPtCategory()
| std::pair< int, double > getPtCategory |
( |
double | Pt | ) |
|
Definition at line 16 of file JetFitterPtEtaCategories.h.
17{
18
19 double correctionfactor=1
e3;
20 int actualpT=-1;
22
23 if (fabs(Pt)<25*correctionfactor){
24 actualpT=0;
25 } else if (fabs(Pt)>=25*correctionfactor&&fabs(Pt)<35*correctionfactor) {
26 actualpT=1;
27
28 } else if (fabs(Pt)>=35*correctionfactor&&fabs(Pt)<50*correctionfactor) {
29 actualpT=2;
30
31 } else if (fabs(Pt)>=50*correctionfactor&&fabs(Pt)<80*correctionfactor) {
32 actualpT=3;
33
34 } else if (fabs(Pt)>=80*correctionfactor&&fabs(Pt)<120*correctionfactor) {
35 actualpT=4;
36
37 } else if (fabs(Pt)>=120*correctionfactor&&fabs(Pt)<200*correctionfactor) {
38 actualpT=5;
39
40 } else if (fabs(Pt)>=200*correctionfactor) {
41 actualpT=6;
42
43 }
44
45 return std::pair<int,double>(actualpT,interval);
46}