CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( 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),
24  _rigidity(rigidity),
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

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 }
double QjetsPlugin::R ( ) const
override

Definition at line 10 of file QjetsPlugin.cc.

10 { return 0.; }
void QjetsPlugin::run_clustering ( fastjet::ClusterSequence &  cs) const
override

Definition at line 17 of file QjetsPlugin.cc.

References Qjets::Cluster(), 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
unique_ptr< ClusterSequence > cs
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
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
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

double QjetsPlugin::_dcut_fctr
private

Definition at line 13 of file QjetsPlugin.h.

double QjetsPlugin::_exp_max
private

Definition at line 13 of file QjetsPlugin.h.

double QjetsPlugin::_exp_min
private

Definition at line 13 of file QjetsPlugin.h.

bool QjetsPlugin::_rand_seed_set
private

Definition at line 10 of file QjetsPlugin.h.

double QjetsPlugin::_rigidity
private

Definition at line 13 of file QjetsPlugin.h.

CLHEP::HepRandomEngine* QjetsPlugin::_rnEngine
private

Definition at line 14 of file QjetsPlugin.h.

Referenced by SetRNEngine().

unsigned int QjetsPlugin::_seed
private

Definition at line 11 of file QjetsPlugin.h.

int QjetsPlugin::_truncated_length
private

Definition at line 12 of file QjetsPlugin.h.

double QjetsPlugin::_truncation_fctr
private

Definition at line 13 of file QjetsPlugin.h.

double QjetsPlugin::_zcut
private

Definition at line 13 of file QjetsPlugin.h.