#include <Py8toJetInput.h>
Definition at line 13 of file Py8toJetInput.h.
Py8toJetInput::Py8toJetInput |
( |
| ) |
|
|
inline |
virtual Py8toJetInput::~Py8toJetInput |
( |
| ) |
|
|
inlinevirtual |
const std::vector< fastjet::PseudoJet > Py8toJetInput::fillJetAlgoInput |
( |
const Event & |
event, |
|
|
const Event & |
workEvent, |
|
|
const lhef::LHEEvent * |
lhee = nullptr , |
|
|
const std::vector< int > * |
partonList = nullptr |
|
) |
| |
|
virtual |
Reimplemented in Py8toJetInputHEPEVT.
Definition at line 7 of file Py8toJetInput.cc.
References dataset::end, PVValHelper::eta, spr::find(), fJetEtaMax, fJetInput, lhef::LHEEvent::getHEPEUP(), mps_fire::i, ID_PHOTON, ID_TOP, dqmiolumiharvest::j, lhef::HEPEUP::MOTHUP, edm::shift, and mps_update::status.
Referenced by JetMatchingHook::doVetoPartonLevel().
13 Event workEventJet = workEvent;
17 std::set<int> typeSet[3];
23 for (
size_t i = 0;
i < 3;
i++) {
25 for (
size_t j = 0;
j < typeIdx[
i].size();
j++) {
32 int pos = typeIdx[
i][
j];
35 for (
int ip = 2; ip < pos; ip++) {
40 if (hepeup.
MOTHUP[ip].first == hepeup.
MOTHUP[ip].second) {
46 typeSet[
i].insert(pos);
59 for (
int i = 0;
i < workEventJet.size(); ++
i) {
60 if (!workEventJet[
i].isFinal())
67 int id = workEventJet[
i].idAbs();
69 workEventJet[
i].statusNeg();
75 int idx = workEventJet[
i].daughter1();
82 if (typeSet[1].
find(idx) != typeSet[1].
end() || typeSet[2].
find(idx) != typeSet[2].
end()) {
83 workEventJet[
i].statusNeg();
92 idx =
event[idx].mother1();
95 }
else if (iType == 1) {
97 if (typeSet[1].
find(idx) != typeSet[1].
end())
103 workEventJet[
i].statusNeg();
108 idx =
event[idx].mother1();
141 for (
int i = 0;
i < workEventJet.size();
i++) {
144 if (workEventJet[
i].
status() < 0)
157 fastjet::PseudoJet partTmp = workEventJet[
i];
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const HEPEUP * getHEPEUP() const
std::vector< std::pair< int, int > > MOTHUP
static unsigned int const shift
int Py8toJetInput::getAncestor |
( |
int |
pos, |
|
|
const Event & |
fullEvent, |
|
|
const Event & |
workEvent |
|
) |
| |
|
protected |
Definition at line 164 of file Py8toJetInput.cc.
References funct::abs(), counter, and mps_update::status.
Referenced by Py8toJetInputHEPEVT::fillJetAlgoInput().
165 int parentId = fullEvent[pos].mother1();
166 int parentPrevId = 0;
169 while (parentId > 0) {
170 if (parentId == fullEvent[counter].mother2())
172 parentPrevId = parentId;
174 parentId = fullEvent[parentPrevId].mother1();
182 if ((parentId < parentPrevId) || parentId < fullEvent[counter].mother2())
185 if (
abs(fullEvent[counter].
status()) == 22 ||
abs(fullEvent[counter].
status()) == 23) {
191 parentPrevId = parentId;
192 parentId = fullEvent[parentPrevId].mother1();
194 }
else if (parentId > parentPrevId ||
203 if (
abs(fullEvent[parentId].
status()) == 22 ||
abs(fullEvent[parentId].
status()) == 23)
207 if (
abs(fullEvent[parentId].
status()) < 22)
Abs< T >::type abs(const T &t)
static std::atomic< unsigned int > counter
void Py8toJetInput::setJetEtaMax |
( |
double |
max | ) |
|
|
inline |
double Py8toJetInput::fJetEtaMax |
|
protected |
std::vector<fastjet::PseudoJet> Py8toJetInput::fJetInput |
|
protected |