13 token_(consumes<edm::
HepMCProduct>(edm::
InputTag(iConfig.getUntrackedParameter(
"moduleLabel",std::
string(
"generator")),
"unsmeared")))
19 cout <<
"Dijet Resonance Filter Selecting Process = " <<
dijetProcess << endl;
40 edm::LogVerbatim(
"MCDijetResonanceInfo") <<
"================MCDijetResonance report========================================\n"
42 <<
"\n====================================================================" << std::endl;
53 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
56 if (
dijetProcess ==
"ZprimeLightQuarks" && myGenEvent->signal_process_id() != 141){
61 if (
dijetProcess ==
"QstarQuarkGluon" && myGenEvent->signal_process_id() != 147 && myGenEvent->signal_process_id() != 148){
78 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
79 p != myGenEvent->particles_end(); ++
p )
82 if ( (*p)->status() == 3 && ( (
dijetProcess ==
"ZprimeLightQuarks" && (*p)->pdg_id() == 32) ||
83 (
dijetProcess ==
"QstarQuarkGluon" &&
abs((*p)->pdg_id()) == 4000001) ||
84 (
dijetProcess ==
"QstarQuarkGluon" &&
abs((*p)->pdg_id()) == 4000002) ) )
88 int ID1 = (*p)->pdg_id();
90 int ID2 = (*p)->pdg_id();
T getUntrackedParameter(std::string const &, T const &) const
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::HepMCProduct > token_
Abs< T >::type abs(const T &t)
MCDijetResonance(const edm::ParameterSet &)