13 edm::
InputTag(iConfig.getUntrackedParameter(
"moduleLabel",
std::
string(
"generator")),
"unsmeared"))) {
18 cout <<
"Dijet Resonance Filter Selecting Process = " <<
dijetProcess << endl;
35 <<
"================MCDijetResonance report========================================\n" 36 <<
"Events read " <<
nEvents <<
" Events accepted " <<
nAccepted <<
"\nEfficiency " 38 <<
"\n====================================================================" << std::endl;
51 if (
dijetProcess ==
"ZprimeLightQuarks" && myGenEvent->signal_process_id() != 141) {
56 if (
dijetProcess ==
"QstarQuarkGluon" && myGenEvent->signal_process_id() != 147 &&
57 myGenEvent->signal_process_id() != 148) {
74 for (HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end();
77 if ((*p)->status() == 3 && ((
dijetProcess ==
"ZprimeLightQuarks" && (*p)->pdg_id() == 32) ||
78 (
dijetProcess ==
"QstarQuarkGluon" &&
abs((*p)->pdg_id()) == 4000001) ||
79 (
dijetProcess ==
"QstarQuarkGluon" &&
abs((*p)->pdg_id()) == 4000002))) {
82 int ID1 = (*p)->pdg_id();
84 int ID2 = (*p)->pdg_id();
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~MCDijetResonance() override
edm::EDGetTokenT< edm::HepMCProduct > token_
bool filter(edm::Event &, const edm::EventSetup &) override
Abs< T >::type abs(const T &t)
MCDijetResonance(const edm::ParameterSet &)
const HepMC::GenEvent * GetEvent() const