68 if ( cluster.size() == 0 ) {
69 throw cms::Exception(
"InvalidCluster") <<
"The cluster has no crystals!";
71 DetId id = (cluster.hitsAndFractions()[0]).
first;
78 throw cms::Exception(
"InvalidSubdetector") <<
"The subdetId() " <<
id.subdetId() <<
" does not correspond to EcalBarrel neither EcalEndcap";
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
T const * product() const