48 int ievt =
iEvent.id().event();
53 iEvent.getByLabel(
"cosmicSuperClusters",
"CosmicBarrelSuperClusters", bccHandle);
55 LogWarning(
"EcalSkim") << BarrelClusterCollection <<
" not available in event " << ievt;
60 iEvent.getByLabel(
"cosmicSuperClusters",
"CosmicEndcapSuperClusters", eccHandle);
63 LogWarning(
"EcalSkim") << EndcapClusterCollection <<
" not available";
69 bool accepted =
false;
70 bool acceptedEB =
false;
71 bool acceptedEE =
false;
75 for (reco::SuperClusterCollection::const_iterator clus = clusterCollectionEB->begin();
76 clus != clusterCollectionEB->end();
78 if (clus->energy() >= EnergyCutEB) {
86 for (reco::SuperClusterCollection::const_iterator clus = clusterCollectionEE->begin();
87 clus != clusterCollectionEE->end();
89 if (clus->energy() >= EnergyCutEE) {
96 if (acceptedEB || acceptedEE)
T getParameter(std::string const &) const
T const * product() const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
bool filter(edm::Event &, const edm::EventSetup &) override
EcalSkim(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Log< level::Warning, false > LogWarning