CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoEcal/EgammaCoreTools/src/EcalTools.cc File Reference

#include "RecoEcal/EgammaCoreTools/interface/EcalTools.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalNextToDeadChannel.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalNextToDeadChannelRcd.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Functions

bool isNextToBoundary (const DetId &id)

Function Documentation

bool isNextToBoundary ( const DetId id)

Definition at line 152 of file EcalTools.cc.

References EcalBarrel, EcalEndcap, EEDetId::isNextToBoundary(), and EBDetId::isNextToBoundary().

Referenced by EcalCleaningAlgo::isNearCrack().

                                      {

  if ( id.subdetId() == EcalBarrel ) 
    return EBDetId::isNextToBoundary(EBDetId(id));
  else  if ( id.subdetId() == EcalEndcap )
    return EEDetId::isNextToBoundary(EEDetId(id));

  return false;
}