58 iEvent.
getByLabel(
"cosmicSuperClusters",
"CosmicBarrelSuperClusters", bccHandle);
61 LogWarning(
"EcalSkim") << BarrelClusterCollection <<
" not available in event " << ievt;
68 iEvent.
getByLabel(
"cosmicSuperClusters",
"CosmicEndcapSuperClusters", eccHandle);
72 LogWarning(
"EcalSkim") << EndcapClusterCollection <<
" not available";
80 bool accepted =
false;
81 bool acceptedEB =
false;
82 bool acceptedEE =
false;
86 for (reco::SuperClusterCollection::const_iterator clus = clusterCollectionEB->begin(); clus != clusterCollectionEB->end(); ++clus)
88 if ( clus->energy() >= EnergyCutEB )
97 for (reco::SuperClusterCollection::const_iterator clus = clusterCollectionEE->begin(); clus != clusterCollectionEE->end(); ++clus)
99 if ( clus->energy() >= EnergyCutEE )
107 if (acceptedEB||acceptedEE) accepted =
true;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
virtual bool filter(edm::Event &, const edm::EventSetup &) override
EcalSkim(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const