CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQM/SiStripCommon/src/ExtractTObject.cc

Go to the documentation of this file.
00001 #include "DQM/SiStripCommon/interface/ExtractTObject.h"
00002 #include "DQMServices/Core/interface/MonitorElement.h"
00003 #include "TNamed.h"
00004 #include "TH1.h"
00005 #include "TH1C.h"
00006 #include "TH1S.h"
00007 #include "TH1I.h"
00008 #include "TH1F.h"
00009 #include "TH1D.h"
00010 #include "TH2.h"
00011 #include "TH2C.h"
00012 #include "TH2S.h"
00013 #include "TH2I.h"
00014 #include "TH2F.h"
00015 #include "TH2D.h"
00016 #include "TProfile.h"
00017 
00018 // -----------------------------------------------------------------------------  
00019 //
00020 template<class T> 
00021 T* ExtractTObject<T>::extract( MonitorElement* me ) {
00022     return me ? dynamic_cast<T*>(me->getRootObject()) : 0;
00023 }
00024 // -----------------------------------------------------------------------------
00025 //
00026 template class ExtractTObject<TH1>;
00027 template class ExtractTObject<TH1C>;
00028 template class ExtractTObject<TH1S>;
00029 template class ExtractTObject<TH1I>;
00030 template class ExtractTObject<TH1F>;
00031 template class ExtractTObject<TH1D>;
00032 template class ExtractTObject<TH2>;
00033 template class ExtractTObject<TH2C>;
00034 template class ExtractTObject<TH2S>;
00035 template class ExtractTObject<TH2I>;
00036 template class ExtractTObject<TH2F>;
00037 template class ExtractTObject<TH2D>;
00038 template class ExtractTObject<TProfile>;
00039