CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
QjetsPlugin Class Reference

#include <QjetsPlugin.h>

Inheritance diagram for QjetsPlugin:

Public Member Functions

std::string description () const override
 
 QjetsPlugin (double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr=0.)
 
double R () const override
 
void run_clustering (fastjet::ClusterSequence &cs) const override
 
void SetRandSeed (unsigned int seed)
 
void SetRNEngine (CLHEP::HepRandomEngine *rnEngine)
 

Private Attributes

double _dcut_fctr
 
double _exp_max
 
double _exp_min
 
bool _rand_seed_set
 
double _rigidity
 
CLHEP::HepRandomEngine * _rnEngine
 
unsigned int _seed
 
int _truncated_length
 
double _truncation_fctr
 
double _zcut
 

Detailed Description

Definition at line 8 of file QjetsPlugin.h.

Constructor & Destructor Documentation

◆ QjetsPlugin()

QjetsPlugin::QjetsPlugin ( double  zcut,
double  dcut_fctr,
double  exp_min,
double  exp_max,
double  rigidity,
double  truncation_fctr = 0. 
)
inline

Definition at line 17 of file QjetsPlugin.h.

19  : _rand_seed_set(false),
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){};

Member Function Documentation

◆ description()

string QjetsPlugin::description ( ) const
override

Definition at line 12 of file QjetsPlugin.cc.

12  {
13  string desc("Qjets pruning plugin");
14  return desc;
15 }

References submitPVResolutionJobs::desc.

◆ R()

double QjetsPlugin::R ( ) const
override

Definition at line 10 of file QjetsPlugin.cc.

10 { return 0.; }

◆ run_clustering()

void QjetsPlugin::run_clustering ( fastjet::ClusterSequence &  cs) const
override

Definition at line 17 of file QjetsPlugin.cc.

17  {
19  if (_rand_seed_set)
20  qjets.SetRandSeed(_seed);
21  qjets.Cluster(cs);
22 }

References Qjets::Cluster(), fwrapper::cs, and Qjets::SetRandSeed().

◆ SetRandSeed()

void QjetsPlugin::SetRandSeed ( unsigned int  seed)

Definition at line 5 of file QjetsPlugin.cc.

5  {
6  _rand_seed_set = true;
7  _seed = seed;
8 }

References fileCollector::seed.

◆ SetRNEngine()

void QjetsPlugin::SetRNEngine ( CLHEP::HepRandomEngine *  rnEngine)
inline

Definition at line 28 of file QjetsPlugin.h.

28 { _rnEngine = rnEngine; };

References _rnEngine.

Referenced by external::HEPTopTaggerV2_fixed_R::run(), and external::HEPTopTaggerV2::run().

Member Data Documentation

◆ _dcut_fctr

double QjetsPlugin::_dcut_fctr
private

Definition at line 13 of file QjetsPlugin.h.

◆ _exp_max

double QjetsPlugin::_exp_max
private

Definition at line 13 of file QjetsPlugin.h.

◆ _exp_min

double QjetsPlugin::_exp_min
private

Definition at line 13 of file QjetsPlugin.h.

◆ _rand_seed_set

bool QjetsPlugin::_rand_seed_set
private

Definition at line 10 of file QjetsPlugin.h.

◆ _rigidity

double QjetsPlugin::_rigidity
private

Definition at line 13 of file QjetsPlugin.h.

◆ _rnEngine

CLHEP::HepRandomEngine* QjetsPlugin::_rnEngine
private

Definition at line 14 of file QjetsPlugin.h.

Referenced by SetRNEngine().

◆ _seed

unsigned int QjetsPlugin::_seed
private

Definition at line 11 of file QjetsPlugin.h.

◆ _truncated_length

int QjetsPlugin::_truncated_length
private

Definition at line 12 of file QjetsPlugin.h.

◆ _truncation_fctr

double QjetsPlugin::_truncation_fctr
private

Definition at line 13 of file QjetsPlugin.h.

◆ _zcut

double QjetsPlugin::_zcut
private

Definition at line 13 of file QjetsPlugin.h.

QjetsPlugin::_dcut_fctr
double _dcut_fctr
Definition: QjetsPlugin.h:13
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::_zcut
double _zcut
Definition: QjetsPlugin.h:13
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
QjetsPlugin::_truncation_fctr
double _truncation_fctr
Definition: QjetsPlugin.h:13
QjetsPlugin::_exp_min
double _exp_min
Definition: QjetsPlugin.h:13
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Qjets
Definition: Qjets.h:28