CMS 3D CMS Logo

ExtractTObject.cc
Go to the documentation of this file.
3 #include "TNamed.h"
4 #include "TH1.h"
5 #include "TH1C.h"
6 #include "TH1S.h"
7 #include "TH1I.h"
8 #include "TH1F.h"
9 #include "TH1D.h"
10 #include "TH2.h"
11 #include "TH2C.h"
12 #include "TH2S.h"
13 #include "TH2I.h"
14 #include "TH2F.h"
15 #include "TH2D.h"
16 #include "TProfile.h"
17 
18 // -----------------------------------------------------------------------------
19 //
20 template<class T>
22  return me ? dynamic_cast<T*>(me->getRootObject()) : nullptr;
23 }
24 // -----------------------------------------------------------------------------
25 //
26 template class ExtractTObject<TH1>;
27 template class ExtractTObject<TH1C>;
28 template class ExtractTObject<TH1S>;
29 template class ExtractTObject<TH1I>;
30 template class ExtractTObject<TH1F>;
31 template class ExtractTObject<TH1D>;
32 template class ExtractTObject<TH2>;
33 template class ExtractTObject<TH2C>;
34 template class ExtractTObject<TH2S>;
35 template class ExtractTObject<TH2I>;
36 template class ExtractTObject<TH2F>;
37 template class ExtractTObject<TH2D>;
38 template class ExtractTObject<TProfile>;
39 
TObject * getRootObject(void) const
static T * extract(MonitorElement *me)
long double T