CMS 3D CMS Logo

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 
16 public:
18  double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr = 0.)
20  _zcut(zcut),
21  _dcut_fctr(dcut_fctr),
22  _exp_min(exp_min),
23  _exp_max(exp_max),
25  _truncation_fctr(truncation_fctr),
26  _rnEngine(nullptr){};
27  void SetRandSeed(unsigned int seed); /* In case you want reproducible behavior */
28  void SetRNEngine(CLHEP::HepRandomEngine* rnEngine) { _rnEngine = rnEngine; };
29  double R() const override;
30  std::string description() const override;
31  void run_clustering(fastjet::ClusterSequence& cs) const override;
32 };
33 #endif
Qjets.h
QjetsPlugin::_dcut_fctr
double _dcut_fctr
Definition: QjetsPlugin.h:13
QjetsPlugin::R
double R() const override
Definition: QjetsPlugin.cc:10
funct::false
false
Definition: Factorize.h:29
QjetsPlugin::_rigidity
double _rigidity
Definition: QjetsPlugin.h:13
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:47
QjetsPlugin::_rnEngine
CLHEP::HepRandomEngine * _rnEngine
Definition: QjetsPlugin.h:14
QjetsPlugin::SetRNEngine
void SetRNEngine(CLHEP::HepRandomEngine *rnEngine)
Definition: QjetsPlugin.h:28
QjetsPlugin::run_clustering
void run_clustering(fastjet::ClusterSequence &cs) const override
Definition: QjetsPlugin.cc:17
QjetsPlugin::_zcut
double _zcut
Definition: QjetsPlugin.h:13
QjetsPlugin::_truncated_length
int _truncated_length
Definition: QjetsPlugin.h:12
fileCollector.seed
seed
Definition: fileCollector.py:127
QjetsPlugin::_rand_seed_set
bool _rand_seed_set
Definition: QjetsPlugin.h:10
qjetsadder_cfi.rigidity
rigidity
Definition: qjetsadder_cfi.py:9
QjetsPlugin::_seed
unsigned int _seed
Definition: QjetsPlugin.h:11
QjetsPlugin::_exp_max
double _exp_max
Definition: QjetsPlugin.h:13
HLT_FULL_cff.zcut
zcut
Definition: HLT_FULL_cff.py:8647
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
QjetsPlugin::description
std::string description() const override
Definition: QjetsPlugin.cc:12
QjetsPlugin::_truncation_fctr
double _truncation_fctr
Definition: QjetsPlugin.h:13
QjetsPlugin::_exp_min
double _exp_min
Definition: QjetsPlugin.h:13
QjetsPlugin::QjetsPlugin
QjetsPlugin(double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr=0.)
Definition: QjetsPlugin.h:17
QjetsPlugin
Definition: QjetsPlugin.h:8
QjetsPlugin::SetRandSeed
void SetRandSeed(unsigned int seed)
Definition: QjetsPlugin.cc:5