StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StConePars.h
1 // -*- mode: c++;-*-
2 // $Id: StConePars.h,v 1.8 2008/07/06 01:13:43 tai Exp $
3 #ifndef STCONEPARS_H
4 #define STCONEPARS_H
5 
6 #include "StJetPars.h"
7 
8 #include <cmath>
9 
10 class StConePars : public StJetPars {
11 
12 public:
13 
14  StConePars()
15  : mNeta(105)
16  , mNphi(120)
17  , mEtaMin(-3.0)
18  , mEtaMax(3.0)
19  , mPhiMin(-atan(1.0)*4.0)
20  , mPhiMax(atan(1.0)*4.0)
21  , mR(0.7)
22  , mSeedEtMin(0.5)
23  , mAssocEtMin(0.1)
24  , mSplitFraction(0.5)
25  , mDoMinimization(true)
26  , mAddMidpoints(true)
27  , mRequireStableMidpoints(true)
28  , mDoSplitMerge(true)
29  , mDebug(false)
30  { }
31 
32 
33  virtual StJetFinder* constructJetFinder();
34 
36  void setGridSpacing(int nEta, double etaMin, double etaMax,
37  int nPhi, double phiMin, double phiMax)
38  {
39  mNeta = nEta; mEtaMin = etaMin; mEtaMax = etaMax;
40  mNphi = nPhi; mPhiMin = phiMin; mPhiMax = phiMax;
41  }
42 
44  void setSeedEtMin(double v) { mSeedEtMin = v; }
45 
47  void setAssocEtMin(double v) { mAssocEtMin = v; }
48 
50  void setSplitFraction(double v) { mSplitFraction = v; }
51 
53  void setPerformMinimization(bool v) {mDoMinimization=v;}
54 
56  void setAddMidpoints(bool v) {mAddMidpoints=v;}
57 
59  void setDoSplitMerge(bool v) {mDoSplitMerge=v;}
60 
62  void setRequireStableMidpoints(bool v) {mRequireStableMidpoints=v;}
63 
65  void setConeRadius(double v) {mR = v;}
66 
68  void setDebug(bool v) {mDebug = v;}
69 
70  int Neta() const { return mNeta; }
71  int Nphi() const { return mNphi; }
72  double EtaMin() const { return mEtaMin; }
73  double EtaMax() const { return mEtaMax; }
74  double PhiMin() const { return mPhiMin; }
75  double PhiMax() const { return mPhiMax; }
76 
77  double coneRadius() const {return mR;}
78 
79  double seedEtMin() const { return mSeedEtMin; }
80  double assocEtMin() const { return mAssocEtMin; }
81 
82  double splitFraction() const { return mSplitFraction; }
83 
84  bool performMinimization() const {return mDoMinimization;}
85 
86  bool addMidpoints() const {return mAddMidpoints;}
87 
88  bool requiredStableMidpoints() const {return mRequireStableMidpoints;}
89 
90  bool doSplitMerge() const {return mDoSplitMerge;}
91 
92  bool debug() const {return mDebug;}
93 
94  double phiWidth() const { return (PhiMax() - PhiMin())/static_cast<double>(Nphi()); }
95  double etaWidth() const { return (EtaMax() - EtaMin())/static_cast<double>(Neta()); }
96  int deltaPhi() const { return static_cast<int>(floor(coneRadius()/phiWidth())) + 1; }
97  int deltaEta() const { return static_cast<int>(floor(coneRadius()/etaWidth())) + 1; }
98 
99 
100 private:
101 
102  int mNeta;
103  int mNphi;
104  double mEtaMin;
105  double mEtaMax;
106  double mPhiMin;
107  double mPhiMax;
108  double mR;
109  double mSeedEtMin;
110  double mAssocEtMin;
111  double mSplitFraction;
112  bool mDoMinimization;
113  bool mAddMidpoints;
114  bool mRequireStableMidpoints;
115  bool mDoSplitMerge;
116  bool mDebug;
117 
118  ClassDef(StConePars,1)
119 };
120 
121 #endif // STCONEPARS_H
void setConeRadius(double v)
Set cone radius:
Definition: StConePars.h:65
void setAddMidpoints(bool v)
Add seeds at midpoints?
Definition: StConePars.h:56
void setSplitFraction(double v)
split jets if E_shared/E_neighbor&gt;splitFraction
Definition: StConePars.h:50
void setGridSpacing(int nEta, double etaMin, double etaMax, int nPhi, double phiMin, double phiMax)
Set the grid spacing:
Definition: StConePars.h:36
void setDoSplitMerge(bool v)
Do Split/Merge step?
Definition: StConePars.h:59
void setDebug(bool v)
Toggle debug streams on/off.
Definition: StConePars.h:68
void setSeedEtMin(double v)
minimum et threshold to be considered a seed
Definition: StConePars.h:44
void setAssocEtMin(double v)
minimum et threshold to be considered for addition to the seed
Definition: StConePars.h:47
void setRequireStableMidpoints(bool v)
Require stable midpoints?
Definition: StConePars.h:62
void setPerformMinimization(bool v)
Let jet wander to minimum?
Definition: StConePars.h:53