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"
139 const HepMC::GenEvent *finalState,
140 bool showeredFinalState)
142 if (!showeredFinalState)
144 <<
"Alpgen matching expected parton shower "
145 "final state." << std::endl;
149 <<
"Run not initialized in JetMatchingAlpgen"
154 <<
"Event not initialized in JetMatchingAlpgen"
176 std::strncpy(csho,
"PYT", 3);
T getParameter(std::string const &) const
int match(const HepMC::GenEvent *partonLevel, const HepMC::GenEvent *finalState, bool showeredFinalState)
JetMatchingAlpgen(const edm::ParameterSet ¶ms)
void alshcd_(char csho[3])
void init(const lhef::LHERunInfo *runInfo)
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
static const unsigned int nparam
void beforeHadronisation(const lhef::LHEEvent *event)
std::vector< std::string > findHeader(const std::string &tag) const
void alveto_(int *ipveto)