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 
8 
11 
14 
15 
16 namespace gen {
17 
19 {
20  fMatchingStatus=false;
21 }
22 
24 {
25 }
26 
27 void JetMatching::init(const lhef::LHERunInfo* runInfo)
28 {
29 }
30 
32 {
33 }
34 
36 {
37 }
38 
39 std::set<std::string> JetMatching::capabilities() const
40 {
41  std::set<std::string> result;
42  result.insert("psFinalState");
43  result.insert("hepmc");
44  return result;
45 }
46 
47 std::auto_ptr<JetMatching> JetMatching::create(const edm::ParameterSet &params)
48 {
49  std::string scheme = params.getParameter<std::string>("scheme");
50 
51  std::auto_ptr<JetMatching> matching;
52 
53  if (scheme == "Madgraph")
54  {
55  matching.reset(new JetMatchingMadgraph(params));
56  }
57  else if (scheme == "Alpgen")
58  {
59  matching.reset(new JetMatchingAlpgen(params));
60  }
61  else if (scheme == "MLM")
62  {
63  matching.reset();
64  }
65  else
66  throw cms::Exception("InvalidJetMatching")
67  << "Unknown scheme \"" << scheme << "\""
68  " specified for parton-shower matching."
69  << std::endl;
70 
71  if (!matching.get())
72  throw cms::Exception("InvalidJetMatching")
73  << "Port of " << scheme << "scheme \"" << "\""
74  " for parton-shower matching is still in progress."
75  << std::endl;
76 
77  return matching;
78 }
79 
80 } // namespace gen
T getParameter(std::string const &) const
static std::auto_ptr< JetMatching > create(const edm::ParameterSet &params)
Definition: JetMatching.cc:47
virtual void beforeHadronisation(const lhef::LHEEvent *event)
Definition: JetMatching.cc:31
virtual ~JetMatching()
Definition: JetMatching.cc:23
tuple result
Definition: mps_fire.py:84
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
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
virtual std::set< std::string > capabilities() const
Definition: JetMatching.cc:39
JetMatching(const edm::ParameterSet &params)
Definition: JetMatching.cc:18
virtual void beforeHadronisationExec()
Definition: JetMatching.cc:35
virtual void init(const lhef::LHERunInfo *runInfo)
Definition: JetMatching.cc:27