7 #include <HepMC/GenEvent.h>
24 extern void alveto_(
int *ipveto);
36 applyMatching(params.getParameter<bool>(
"applyMatching")),
51 std::set<std::string>
result;
52 result.insert(
"psFinalState");
53 result.insert(
"hepevt");
54 result.insert(
"pythia6");
64 std::vector<std::string> headerLines = runInfo->
findHeader(
"AlpgenUnwParFile");
65 if (headerLines.empty())
67 <<
"In order to use Alpgen jet matching, "
68 "the input file has to contain the corresponding "
69 "Alpgen headers." << std::endl;
72 header.
parse(headerLines.begin(), headerLines.end());
106 for(std::map<AlpgenHeader::Parameter, double>::const_iterator
iter =
125 <<
"Run not initialized in JetMatchingAlpgen"
155 <<
"Run not initialized in JetMatchingAlpgen"
160 <<
"Event not initialized in JetMatchingAlpgen"
182 std::strncpy(csho,
"PYT", 3);
T getParameter(std::string const &) const
int match(const lhef::LHEEvent *partonLevel, const std::vector< fastjet::PseudoJet > *jetInput)
void alshcd_(char csho[3])
void beforeHadronisation(const lhef::LHEEvent *event)
std::set< std::string > capabilities() const
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
void init(const lhef::LHERunInfo *runInfo)
JetMatchingAlpgen(const edm::ParameterSet ¶ms)
static const unsigned int nparam
std::vector< std::string > findHeader(const std::string &tag) const
volatile std::atomic< bool > shutdown_flag false
void alveto_(int *ipveto)