Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:53

0001 #include "RecoJets/JetAlgorithms/interface/QjetsPlugin.h"
0002 
0003 using namespace std;
0004 
0005 void QjetsPlugin::SetRandSeed(unsigned int seed) {
0006   _rand_seed_set = true;
0007   _seed = seed;
0008 }
0009 
0010 double QjetsPlugin::R() const { return 0.; }
0011 
0012 string QjetsPlugin::description() const {
0013   string desc("Qjets pruning plugin");
0014   return desc;
0015 }
0016 
0017 void QjetsPlugin::run_clustering(fastjet::ClusterSequence& cs) const {
0018   Qjets qjets(_zcut, _dcut_fctr, _exp_min, _exp_max, _rigidity, _truncation_fctr, _rnEngine);
0019   if (_rand_seed_set)
0020     qjets.SetRandSeed(_seed);
0021   qjets.Cluster(cs);
0022 }