test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetMatching.cc
Go to the documentation of this file.
1 #include <string>
2 #include <memory>
3 
4 #include <boost/shared_ptr.hpp>
5 
10 
13 
15 
17  "GeneratorInterfaceLHEJetMatching");
18 
19 namespace lhef {
20 
22 {
23 }
24 
26 {
27 }
28 
29 void JetMatching::init(const boost::shared_ptr<LHERunInfo> &runInfo)
30 {
31 }
32 
34  const boost::shared_ptr<LHEEvent> &event)
35 {
36 }
37 
38 std::set<std::string> JetMatching::capabilities() const
39 {
40  std::set<std::string> result;
41  result.insert("psFinalState");
42  result.insert("hepmc");
43  return result;
44 }
45 
46 std::auto_ptr<JetMatching> JetMatching::create(
47  const edm::ParameterSet &params)
48 {
49  std::string name = params.getParameter<std::string>("scheme");
50 
51  std::auto_ptr<JetMatching> plugin(
52  Factory::get()->create("JetMatching" + name, params));
53 
54  if (!plugin.get())
55  throw cms::Exception("InvalidJetMatching")
56  << "Unknown scheme \"" << name << "\""
57  " specified for jet matching in LHEProducer."
58  << std::endl;
59 
60  edm::LogInfo("Generator|LHEInterface")
61  << "Using " << name << " for ME/PS jet matching." << std::endl;
62 
63  return plugin;
64 }
65 
66 } // namespace lhef
T getParameter(std::string const &) const
virtual void beforeHadronisation(const boost::shared_ptr< LHEEvent > &event)
Definition: JetMatching.cc:33
auto_ptr< JetDefinition::Plugin > plugin
virtual void init(const boost::shared_ptr< LHERunInfo > &runInfo)
Definition: JetMatching.cc:29
virtual ~JetMatching()
Definition: JetMatching.cc:25
tuple result
Definition: query.py:137
static std::auto_ptr< JetMatching > create(const edm::ParameterSet &params)
Definition: JetMatching.cc:46
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
JetMatching(const edm::ParameterSet &params)
Definition: JetMatching.cc:21
virtual std::set< std::string > capabilities() const
Definition: JetMatching.cc:38
T get(const Candidate &c)
Definition: component.h:55