Go to the documentation of this file.00001 #ifndef GeneratorInterface_PartonShowerVeto_JetMatching_h
00002 #define GeneratorInterface_PartonShowerVeto_JetMatching_h
00003
00004 #include <memory>
00005 #include <vector>
00006 #include <string>
00007 #include <set>
00008
00009 #include <boost/shared_ptr.hpp>
00010
00011
00012
00013
00014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00015
00016 #include "fastjet/ClusterSequence.hh"
00017
00018
00019 namespace lhef {
00020
00021 class LHERunInfo;
00022 class LHEEvent;
00023 class JetInput;
00024
00025 }
00026
00027 namespace gen {
00028
00029 class JetMatching {
00030 public:
00031 JetMatching(const edm::ParameterSet ¶ms);
00032 virtual ~JetMatching();
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 virtual void init(const lhef::LHERunInfo* runInfo);
00061 virtual bool initAfterBeams() { return true; }
00062 virtual void beforeHadronisation(const lhef::LHEEvent* event);
00063 virtual void beforeHadronisationExec();
00064
00065
00066
00067 virtual int match( const lhef::LHEEvent* partonLevel, const std::vector<fastjet::PseudoJet>* jetInput ) = 0;
00068
00069
00070
00071
00072
00073 virtual std::set<std::string> capabilities() const;
00074
00075 void resetMatchingStatus() { fMatchingStatus = false; }
00076 bool isMatchingDone() { return fMatchingStatus; }
00077
00078 virtual const std::vector<int>* getPartonList() { return 0; }
00079 virtual double getJetEtaMax() const = 0;
00080
00081
00082
00083
00084
00085 static std::auto_ptr<JetMatching> create(
00086 const edm::ParameterSet ¶ms);
00087
00088 protected:
00089 bool fMatchingStatus;
00090
00091
00092
00093 };
00094
00095 }
00096
00097
00098 #endif // GeneratorCommon_PartonShowerVeto_JetMatching_h