test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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
 
 QjetsPlugin (double zcut, double dcut_fctr, double exp_min, double exp_max, double rigidity, double truncation_fctr=0.)
 
double R () const
 
void run_clustering (fastjet::ClusterSequence &cs) const
 
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.

16  : _rand_seed_set(false),
17  _zcut(zcut),
18  _dcut_fctr(dcut_fctr),
19  _exp_min(exp_min),
20  _exp_max(exp_max),
21  _rigidity(rigidity),
22  _truncation_fctr(truncation_fctr),
23  _rnEngine(0)
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

Definition at line 14 of file QjetsPlugin.cc.

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

Definition at line 10 of file QjetsPlugin.cc.

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

Definition at line 19 of file QjetsPlugin.cc.

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

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

References _rnEngine.

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.

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.