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 ( double  zcut,
double  dcut_fctr,
double  exp_min,
double  exp_max,
double  rigidity,
double  truncation_fctr = 0. 
)
inline

Definition at line 16 of file QjetsPlugin.h.

References SurveyInfoScenario_cff::seed, and SetRandSeed().

16  : _rand_seed_set(false),
17  _zcut(zcut),
18  _dcut_fctr(dcut_fctr),
19  _exp_min(exp_min),
20  _exp_max(exp_max),
22  _truncation_fctr(truncation_fctr),
23  _rnEngine(nullptr)
24  {};
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 14 of file QjetsPlugin.cc.

Referenced by SetRNEngine().

14  {
15  string desc("Qjets pruning plugin");
16  return desc;
17 }
double QjetsPlugin::R ( ) const
override

Definition at line 10 of file QjetsPlugin.cc.

Referenced by SetRNEngine().

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

Definition at line 19 of file QjetsPlugin.cc.

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

Referenced by SetRNEngine().

19  {
21  if(_rand_seed_set)
22  qjets.SetRandSeed(_seed);
23  qjets.Cluster(cs);
24 }
double _dcut_fctr
Definition: QjetsPlugin.h:13
auto_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 SurveyInfoScenario_cff::seed.

Referenced by QjetsPlugin().

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 26 of file QjetsPlugin.h.

References fwrapper::cs, description(), R(), run_clustering(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

26  {
27  _rnEngine=rnEngine;
28  };
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.

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.