1 #ifndef RecoJets_JetProducers_plugins_VirtualJetProducer_h
2 #define RecoJets_JetProducers_plugins_VirtualJetProducer_h
18 #include "fastjet/JetDefinition.hh"
19 #include "fastjet/ClusterSequence.hh"
20 #include "fastjet/ClusterSequenceArea.hh"
21 #include "fastjet/PseudoJet.hh"
22 #include "fastjet/GhostedAreaSpec.hh"
26 #include <boost/shared_ptr.hpp>
80 typedef boost::shared_ptr<fastjet::JetDefinition::Plugin>
PluginPtr;
81 typedef boost::shared_ptr<fastjet::JetDefinition>
JetDefPtr;
84 typedef boost::shared_ptr<fastjet::RangeDefinition>
RangeDefPtr;
113 virtual void copyConstituents(
const std::vector<fastjet::PseudoJet>&fjConstituents,
133 template<
typename T >
136 template<
typename T>
142 virtual std::vector<reco::CandidatePtr>
178 std::vector<edm::Ptr<reco::Candidate> >
inputs_;
boost::shared_ptr< fastjet::AreaDefinition > AreaDefinitionPtr
void writeJets(edm::Event &iEvent, edm::EventSetup const &iSetup)
std::string jetType() const
reco::Particle::Point vertex_
virtual std::vector< reco::CandidatePtr > getConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents)
std::vector< fastjet::PseudoJet > fjJets_
virtual void inputTowers()
Base class for all types of Jets.
boost::shared_ptr< fastjet::JetDefinition::Plugin > PluginPtr
std::string puSubtractorName_
std::vector< double > puCenters_
virtual void copyConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents, reco::Jet *jet)
bool makeGenJet(const JetType::Type &fTag)
bool makeBasicJet(const JetType::Type &fTag)
virtual void runAlgorithm(edm::Event &iEvent, const edm::EventSetup &iSetup)=0
void writeCompoundJets(edm::Event &iEvent, edm::EventSetup const &iSetup)
function template to write out the outputs
boost::shared_ptr< fastjet::RangeDefinition > RangeDefPtr
bool makeTrackJet(const JetType::Type &fTag)
bool makePFJet(const JetType::Type &fTag)
virtual bool isAnomalousTower(reco::CandidatePtr input)
static const char * names[]
std::vector< fastjet::PseudoJet > fjInputs_
std::string jetCollInstanceName_
boost::shared_ptr< PileUpSubtractor > subtractor_
std::vector< edm::Ptr< reco::Candidate > > inputs_
virtual ~VirtualJetProducer()
ClusterSequencePtr fjClusterSeq_
virtual void makeProduces(std::string s, std::string tag="")
math::XYZPoint Point
point in the space
std::string jetAlgorithm_
boost::shared_ptr< fastjet::JetDefinition > JetDefPtr
bool useDeterministicSeed_
std::auto_ptr< AnomalousTower > anomalousTowerDef_
ActiveAreaSpecPtr fjActiveArea_
bool makePFClusterJet(const JetType::Type &fTag)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
VirtualJetProducer(const edm::ParameterSet &iConfig)
boost::shared_ptr< fastjet::GhostedAreaSpec > ActiveAreaSpecPtr
AreaDefinitionPtr fjAreaDefinition_
virtual void output(edm::Event &iEvent, edm::EventSetup const &iSetup)
bool makeCaloJet(const JetType::Type &fTag)
static Type byName(const std::string &name)
void offsetCorrectJets(std::vector< fastjet::PseudoJet > &orphanInput)
bool doFastJetNonUniform_
boost::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
JetDefPtr fjJetDefinition_