27 minNumberOfjets = iConfig.
getParameter<
int>(
"MinNumberOfJets");
37 minNumberOfSuperClusters = iConfig.
getParameter<
int>(
"MinNumberOfSuperClusters");
46 <<
" Number_events_read " <<
nEvents
47 <<
" Number_events_kept " << nSelectedEvents
48 <<
" Efficiency " << ((double)nSelectedEvents)/((double)
nEvents + 0.01) << std::endl;
64 CaloJetCollection::const_iterator ijet;
65 for(ijet = jets.begin(); ijet!= jets.end(); ijet++){
66 if(ijet->pt() > jetEtMin &&
67 ijet->eta() > jetEtaMin &&
68 ijet->eta() < jetEtaMax )
81 for(reco::SuperClusterCollection::const_iterator scIt = SCs.begin();
82 scIt!= SCs.end(); scIt++){
84 double scEt = scIt->energy() * TMath::Sin(scIt->position().theta());
85 double _eta = scIt->position().eta();
86 if(scEt > scEtMin && _eta > scEtaMin && _eta < scEtaMax) nSC++;
96 for(reco::SuperClusterCollection::const_iterator scIt = SCs.begin();
97 scIt!= SCs.end(); scIt++){
99 double scEt = scIt->energy() * TMath::Sin(scIt->position().theta());
100 double _eta = scIt->position().eta();
101 if(scEt > scEtMin && _eta > scEtaMin && _eta < scEtaMax) nSC++;
106 bool accepted =
false;
107 if(nJets >= minNumberOfjets || nSC >=minNumberOfSuperClusters) {
T getParameter(std::string const &) const
EgammaProbeSelector(const edm::ParameterSet &)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
virtual bool filter(edm::Event &, const edm::EventSetup &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects