#include <CATopJetProducer.h>
Public Member Functions | |
CATopJetProducer (const edm::ParameterSet &ps) | |
virtual void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual void | runAlgorithm (edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual | ~CATopJetProducer () |
Private Attributes | |
CATopJetAlgorithm | alg_ |
Definition at line 69 of file CATopJetProducer.h.
CATopJetProducer::CATopJetProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 8 of file CATopJetProducer.cc.
: FastjetJetProducer( conf ), alg_(src_, conf.getParameter<bool> ("verbose"), conf.getParameter<int> ("algorithm"), // 0 = KT, 1 = CA, 2 = anti-KT conf.getParameter<int> ("useAdjacency"), // choose adjacency requirement: // 0 = no adjacency // 1 = deltar adjacency // 2 = modified adjacency // 3 = calotower neirest neigbor based adjacency (untested) conf.getParameter<double>("centralEtaCut"), // eta for defining "central" jets conf.getParameter<double>("jetPtMin"), // min jet pt conf.getParameter<std::vector<double> >("sumEtBins"), // sumEt bins over which cuts may vary. vector={bin 0 lower bound, bin 1 lower bound, ...} conf.getParameter<std::vector<double> >("rBins"), // Jet distance paramter R. R values depend on sumEt bins. conf.getParameter<std::vector<double> >("ptFracBins"), // fraction of hard jet pt that subjet must have (deltap) conf.getParameter<std::vector<double> >("deltarBins"), // Applicable only if useAdjacency=1. deltar adjacency values for each sumEtBin conf.getParameter<std::vector<double> >("nCellBins"), // Applicable only if useAdjacency=3. number of cells to consider two subjets adjacent conf.getParameter<double>("inputEtMin"), // seed threshold - NOT USED conf.getParameter<bool> ("useMaxTower"), // use max tower as adjacency criterion, otherwise use centroid - NOT USED conf.getParameter<double>("sumEtEtaCut"), // eta for event SumEt - NOT USED conf.getParameter<double>("etFrac") // fraction of event sumEt / 2 for a jet to be considered "hard" -NOT USED ) {}
virtual cms::CATopJetProducer::~CATopJetProducer | ( | ) | [inline, virtual] |
Definition at line 75 of file CATopJetProducer.h.
{}
void CATopJetProducer::produce | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Reimplemented from FastjetJetProducer.
Definition at line 32 of file CATopJetProducer.cc.
{ FastjetJetProducer::produce(e, c); }
void CATopJetProducer::runAlgorithm | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Reimplemented from FastjetJetProducer.
Definition at line 37 of file CATopJetProducer.cc.
References alg_, VirtualJetProducer::doAreaFastjet_, VirtualJetProducer::doRhoFastjet_, VirtualJetProducer::fjAreaDefinition_, VirtualJetProducer::fjClusterSeq_, VirtualJetProducer::fjInputs_, VirtualJetProducer::fjJetDefinition_, VirtualJetProducer::fjJets_, CATopJetAlgorithm::run(), and VirtualJetProducer::voronoiRfact_.
{ if ( !doAreaFastjet_ && !doRhoFastjet_) { fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequence( fjInputs_, *fjJetDefinition_ ) ); } else if (voronoiRfact_ <= 0) { fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequenceArea( fjInputs_, *fjJetDefinition_ , *fjAreaDefinition_ ) ); } else { fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequenceVoronoiArea( fjInputs_, *fjJetDefinition_ , fastjet::VoronoiAreaSpec(voronoiRfact_) ) ); } alg_.run( fjInputs_, fjJets_, fjClusterSeq_ ); }
CATopJetAlgorithm cms::CATopJetProducer::alg_ [private] |
Definition at line 82 of file CATopJetProducer.h.
Referenced by runAlgorithm().