68 muPtCut_(params.getParameter<double>(
"muPtCut")),
69 muEtaCut_(params.getParameter<double>(
"muEtaCut")),
70 tauPtCut_(params.getParameter<double>(
"tauPtCut")),
71 tauEtaCut_(params.getParameter<double>(
"tauEtaCut")),
72 elPtCut_(params.getParameter<double>(
"elPtCut")),
73 elEtaCut_(params.getParameter<double>(
"elEtaCut")),
74 gammaPtCut_(params.getParameter<double>(
"gammaPtCut")),
75 gammaEtaCut_(params.getParameter<double>(
"gammaEtaCut")),
80 jetPtCut_(params.getParameter<double>(
"jetPtCut")),
81 jetEtaCut_(params.getParameter<double>(
"jetEtaCut")),
82 genHTcut_(params.getParameter<double>(
"genHTcut")) {}
98 int veryloosegamma = 0;
100 for (std::vector<reco::GenParticle>::const_iterator it = gps->begin(); it != gps->end(); ++it) {
103 if (fabs(gp.
pdgId()) == 15) {
108 if (fabs(gp.
pdgId()) == 13) {
116 if (fabs(gp.
pdgId()) == 11) {
124 if (fabs(gp.
pdgId()) == 22) {
136 if (fabs(gp.
pdgId()) == 1000024) {
139 if (decaylength > 300) {
148 if (looseel + loosemu + loosegamma > 1) {
151 if (loosegamma > 0 && veryloosegamma > 0) {
155 for (std::vector<reco::GenJet>::const_iterator it = generatedJets->begin(); it != generatedJets->end(); ++it) {
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
int pdgId() const final
PDG identifier.
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
double eta() const final
momentum pseudorapidity
virtual double vx() const =0
x coordinate of vertex position
double vy() const override
y coordinate of vertex position
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double veryloosegammaPtCut_
std::vector< GenJet > GenJetCollection
collection of GenJet objects
double pt() const final
transverse momentum
virtual double vy() const =0
y coordinate of vertex position
~ModelpMSSMFilter() override
edm::EDGetTokenT< reco::GenJetCollection > token2_
edm::EDGetTokenT< reco::GenParticleCollection > token_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
Jets made from MC generator particles.
ModelpMSSMFilter(const edm::ParameterSet &)
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
size_t numberOfDaughters() const override
number of daughters
Power< A, B >::type pow(const A &a, const B &b)
double vx() const override
x coordinate of vertex position