Main Page
Namespaces
Classes
Package Documentation
src
DQM
SiStripCommon
src
ExtractTObject.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommon/interface/ExtractTObject.h
"
2
#include "
DQMServices/Core/interface/MonitorElement.h
"
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>
21
T
*
ExtractTObject<T>::extract
(
MonitorElement
* me ) {
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
ExtractTObject.h
MonitorElement::getRootObject
TObject * getRootObject() const
Definition:
MonitorElement.cc:1469
MonitorElement
Definition:
MonitorElement.h:37
MonitorElement.h
ExtractTObject::extract
static T * extract(MonitorElement *me)
Definition:
ExtractTObject.cc:21
ExtractTObject
Definition:
ExtractTObject.h:11
T
long double T
Definition:
Basic3DVectorLD.h:66
Generated for CMSSW Reference Manual by
1.8.11