25 minNumberOfjets = iConfig.
getParameter<
int>(
"MinNumberOfJets");
33 scToken = consumes<SuperClusterCollection>(iConfig.
getParameter<
InputTag>(
"SuperClusterBarrelCollection"));
34 scEEToken = consumes<SuperClusterCollection>(iConfig.
getParameter<
InputTag>(
"SuperClusterEndCapCollection"));
35 minNumberOfSuperClusters = iConfig.
getParameter<
int>(
"MinNumberOfSuperClusters");
44 <<
" Number_events_read " <<
nEvents 45 <<
" Number_events_kept " << nSelectedEvents
46 <<
" Efficiency " << ((double)nSelectedEvents)/((double)
nEvents + 0.01) << std::endl;
62 CaloJetCollection::const_iterator ijet;
63 for(ijet = jets.begin(); ijet!= jets.end(); ijet++){
64 if(ijet->pt() > jetEtMin &&
65 ijet->eta() > jetEtaMin &&
79 for(reco::SuperClusterCollection::const_iterator scIt = SCs.begin();
80 scIt!= SCs.end(); scIt++){
82 double scEt = scIt->energy() * TMath::Sin(scIt->position().theta());
83 double _eta = scIt->position().eta();
84 if(scEt > scEtMin && _eta > scEtaMin && _eta < scEtaMax) nSC++;
94 for(reco::SuperClusterCollection::const_iterator scIt = SCs.begin();
95 scIt!= SCs.end(); scIt++){
97 double scEt = scIt->energy() * TMath::Sin(scIt->position().theta());
98 double _eta = scIt->position().eta();
99 if(scEt > scEtMin && _eta > scEtaMin && _eta < scEtaMax) nSC++;
104 bool accepted =
false;
105 if(nJets >= minNumberOfjets || nSC >=minNumberOfSuperClusters) {
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaProbeSelector(const edm::ParameterSet &)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
T const * product() const
virtual bool filter(edm::Event &, const edm::EventSetup &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects