12 tagAlgo_(conf.getParameter<int>(
"tagAlgo")),
13 ptMin_(conf.getParameter<double>(
"jetPtMin")),
14 centralEtaCut_(conf.getParameter<double>(
"centralEtaCut")),
15 verbose_(conf.getParameter<bool>(
"verbose"))
44 new fastjet::CMSTopTagger()
49 new fastjet::HEPTopTagger()
54 new fastjet::JHTopTagger()
59 fastjet::JetDefinition::Plugin *
plugin =
new fastjet::SISConePlugin(0.6, 0.75);
60 fastjet::JetDefinition NsubJetDef(plugin);
61 fjNSUBTagger_ = std::auto_ptr<fastjet::RestFrameNSubjettinessTagger>(
62 new fastjet::RestFrameNSubjettinessTagger(NsubJetDef)
98 vector<fastjet::PseudoJet> centralJets;
99 for (
unsigned int i = 0;
i < inclusiveJets.size();
i++) {
102 centralJets.push_back(inclusiveJets[
i]);
109 fastjet::RestFrameNSubjettinessTagger & NSUBTagger = *
fjNSUBTagger_;
112 vector<fastjet::PseudoJet>::iterator jetIt = centralJets.begin(), centralJetsEnd = centralJets.end();
114 for ( ; jetIt != centralJetsEnd; ++jetIt ) {
116 if (
verbose_)
cout <<
"CMS FJ jet pt: " << (*jetIt).perp() << endl;
118 fastjet::PseudoJet taggedJet;
123 else cout <<
"NOT A VALID TAGGING ALGORITHM CHOICE!" << endl;
125 if (taggedJet != 0)
fjJets_.push_back(taggedJet);
T getParameter(std::string const &) const
std::auto_ptr< CATopJetAlgorithm > legacyCMSTopTagger_
auto_ptr< JetDefinition::Plugin > plugin
std::vector< fastjet::PseudoJet > fjJets_
#define DEFINE_FWK_MODULE(type)
std::auto_ptr< fastjet::CMSTopTagger > fjCMSTopTagger_
The algorithm to do the work.
std::auto_ptr< fastjet::HEPTopTagger > fjHEPTopTagger_
std::auto_ptr< fastjet::JHTopTagger > fjJHUTopTagger_
std::vector< fastjet::PseudoJet > fjInputs_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
ClusterSequencePtr fjClusterSeq_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual void runAlgorithm(edm::Event &iEvent, const edm::EventSetup &iSetup)
T perp() const
Magnitude of transverse component.
std::auto_ptr< fastjet::RestFrameNSubjettinessTagger > fjNSUBTagger_
AreaDefinitionPtr fjAreaDefinition_
boost::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
JetDefPtr fjJetDefinition_