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) {}
double _dcut_fctr
Definition: QjetsPlugin.h:13
CLHEP::HepRandomEngine * _rnEngine
Definition: QjetsPlugin.h:14
double _rigidity
Definition: QjetsPlugin.h:13
double _zcut
Definition: QjetsPlugin.h:13
bool _rand_seed_set
Definition: QjetsPlugin.h:10
double _exp_max
Definition: QjetsPlugin.h:13
double _truncation_fctr
Definition: QjetsPlugin.h:13
double _exp_min
Definition: QjetsPlugin.h:13

Member Function Documentation

◆ description()

string QjetsPlugin::description ( ) const
override

Definition at line 12 of file QjetsPlugin.cc.

References submitPVResolutionJobs::desc.

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

◆ 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.

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

17  {
19  if (_rand_seed_set)
20  qjets.SetRandSeed(_seed);
21  qjets.Cluster(cs);
22 }
double _dcut_fctr
Definition: QjetsPlugin.h:13
CLHEP::HepRandomEngine * _rnEngine
Definition: QjetsPlugin.h:14
double _rigidity
Definition: QjetsPlugin.h:13
double _zcut
Definition: QjetsPlugin.h:13
unsigned int _seed
Definition: QjetsPlugin.h:11
Definition: Qjets.h:28
bool _rand_seed_set
Definition: QjetsPlugin.h:10
double _exp_max
Definition: QjetsPlugin.h:13
double _truncation_fctr
Definition: QjetsPlugin.h:13
double _exp_min
Definition: QjetsPlugin.h:13

◆ SetRandSeed()

void QjetsPlugin::SetRandSeed ( unsigned int  seed)

Definition at line 5 of file QjetsPlugin.cc.

References fileCollector::seed.

5  {
6  _rand_seed_set = true;
7  _seed = seed;
8 }
unsigned int _seed
Definition: QjetsPlugin.h:11
bool _rand_seed_set
Definition: QjetsPlugin.h:10

◆ SetRNEngine()

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

Definition at line 28 of file QjetsPlugin.h.

References _rnEngine.

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

28 { _rnEngine = rnEngine; };
CLHEP::HepRandomEngine * _rnEngine
Definition: QjetsPlugin.h:14

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.