CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QjetsPlugin.h
Go to the documentation of this file.
1 #ifndef RecoJets_JetAlgorithms_QJETSPLUGIN_h
2 #define RecoJets_JetAlgorithms_QJETSPLUGIN_h
3 #include "fastjet/JetDefinition.hh"
4 #include "fastjet/PseudoJet.hh"
5 #include "fastjet/ClusterSequence.hh"
7 
8 class QjetsPlugin: public fastjet::JetDefinition::Plugin{
9  private:
11  unsigned int _seed;
14  CLHEP::HepRandomEngine* _rnEngine;
15  public:
16  QjetsPlugin(double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr = 0.) : _rand_seed_set(false),
17  _zcut(zcut),
18  _dcut_fctr(dcut_fctr),
19  _exp_min(exp_min),
20  _exp_max(exp_max),
21  _rigidity(rigidity),
22  _truncation_fctr(truncation_fctr),
23  _rnEngine(0)
24  {};
25  void SetRandSeed(unsigned int seed); /* In case you want reproducible behavior */
26  void SetRNEngine(CLHEP::HepRandomEngine* rnEngine){
27  _rnEngine=rnEngine;
28  };
29  double R() const;
30  std::string description() const;
31  void run_clustering(fastjet::ClusterSequence & cs) const;
32 };
33 #endif
void SetRNEngine(CLHEP::HepRandomEngine *rnEngine)
Definition: QjetsPlugin.h:26
double _dcut_fctr
Definition: QjetsPlugin.h:13
auto_ptr< ClusterSequence > cs
std::string description() const
Definition: QjetsPlugin.cc:14
CLHEP::HepRandomEngine * _rnEngine
Definition: QjetsPlugin.h:14
double _rigidity
Definition: QjetsPlugin.h:13
double _zcut
Definition: QjetsPlugin.h:13
int _truncated_length
Definition: QjetsPlugin.h:12
unsigned int _seed
Definition: QjetsPlugin.h:11
bool _rand_seed_set
Definition: QjetsPlugin.h:10
double _exp_max
Definition: QjetsPlugin.h:13
void run_clustering(fastjet::ClusterSequence &cs) const
Definition: QjetsPlugin.cc:19
double _truncation_fctr
Definition: QjetsPlugin.h:13
void SetRandSeed(unsigned int seed)
Definition: QjetsPlugin.cc:5
double R() const
Definition: QjetsPlugin.cc:10
volatile std::atomic< bool > shutdown_flag false
double _exp_min
Definition: QjetsPlugin.h:13
QjetsPlugin(double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr=0.)
Definition: QjetsPlugin.h:16