00001 #include "TrackingTools/DetLayers/interface/DetLayer.h" 00002 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00003 00004 DetLayer::~DetLayer() { delete theNavigableLayer;} 00005 00006 00007 void DetLayer::setNavigableLayer( NavigableLayer* nlp) { 00009 theNavigableLayer = nlp; 00010 00011 //nlp=0 amount to cleaning the link. do nothing further 00012 if (nlp){ 00013 if (nlp->detLayer() != this) { 00014 if (nlp->detLayer() != 0) { 00015 edm::LogWarning("DetLayers") << "DetLayer Warning: my navigable layer does not point to me. " 00016 << " Correcting..." ; 00017 } 00018 theNavigableLayer->setDetLayer( this); 00019 } 00020 }//nlp!=0 00021 } 00022