CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/Alignment/SurveyAnalysis/src/SurveyInputBase.cc

Go to the documentation of this file.
00001 #include "Alignment/CommonAlignment/interface/Alignable.h"
00002 
00003 #include "Alignment/SurveyAnalysis/interface/SurveyInputBase.h"
00004 
00005 Alignable* SurveyInputBase::theDetector(0);
00006 
00007 SurveyInputBase::~SurveyInputBase()
00008 {
00009   delete theDetector;
00010 
00011   theDetector = 0;
00012 }
00013 
00014 void SurveyInputBase::addComponent(Alignable* comp)
00015 {
00016   if (0 == theDetector)
00017     theDetector = comp;
00018   else
00019     theDetector->addComponent(comp);
00020 }