Skip to content

Commit

Permalink
Fixing overdoing of EventSetup pointer initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Oct 29, 2014
1 parent 8716079 commit b9e1929
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ TrackerOfflineValidation::~TrackerOfflineValidation()
void
TrackerOfflineValidation::checkBookHists(const edm::EventSetup& es)
{
lastSetup_ = &es;
if(lastSetup_==nullptr){
lastSetup_ = &es;
}
es.get<TrackerDigiGeometryRecord>().get( tkGeom_ );
const TrackerGeometry *newBareTkGeomPtr = &(*tkGeom_);
if (newBareTkGeomPtr == bareTkGeomPtr_) return; // already booked hists, nothing changed
Expand Down

0 comments on commit b9e1929

Please sign in to comment.