Main Page
Namespaces
Classes
Package Documentation
src
RecoTBCalo
HcalPlotter
scripts
HcalVisualSelector.h
Go to the documentation of this file.
1
#include "
MyHcalClasses.h
"
2
#include "TObject.h"
3
#include "TCanvas.h"
4
#include "TH2.h"
5
6
class
TCanvas;
7
class
TH2;
8
9
class
HcalVisualSelector
{
10
public
:
11
class
Callbacks
{
12
public
:
13
virtual
~Callbacks
() { }
14
virtual
void
plot
(
const
MyHcalDetId
&
id
) = 0;
15
virtual
MyHcalSubdetector
getSubdet
(
int
ieta,
int
depth
) = 0;
16
};
17
18
HcalVisualSelector
(
Callbacks
* cb,
19
int
ieta_lo=-41,
int
ieta_hi=41,
int
iphi_lo=1,
int
iphi_hi=72);
20
21
void
fill
(
const
MyHcalDetId
&
id
,
double
value
);
22
void
onEvent
(
int
event
,
int
x
,
int
y
, TObject *selected);
23
void
Update
();
24
private
:
25
Callbacks
*
m_cb
;
26
TCanvas*
m_canvas
;
27
TH2*
m_hist
[4];
28
};
29
30
HcalVisualSelector::onEvent
void onEvent(int event, int x, int y, TObject *selected)
MyHcalClasses.h
HcalVisualSelector::Callbacks
Definition:
HcalVisualSelector.h:11
MyHcalDetId
Definition:
MyHcalClasses.h:11
value
Definition:
value.py:1
HcalVisualSelector::HcalVisualSelector
HcalVisualSelector(Callbacks *cb, int ieta_lo=-41, int ieta_hi=41, int iphi_lo=1, int iphi_hi=72)
HcalVisualSelector::Update
void Update()
HcalVisualSelector::m_cb
Callbacks * m_cb
Definition:
HcalVisualSelector.h:25
HcalVisualSelector
Definition:
HcalVisualSelector.h:9
HcalVisualSelector::Callbacks::~Callbacks
virtual ~Callbacks()
Definition:
HcalVisualSelector.h:13
HcalVisualSelector::m_hist
TH2 * m_hist[4]
Definition:
HcalVisualSelector.h:27
DDAxes::y
HcalVisualSelector::Callbacks::getSubdet
virtual MyHcalSubdetector getSubdet(int ieta, int depth)=0
MyHcalSubdetector
MyHcalSubdetector
Definition:
MyHcalClasses.h:4
HcalVisualSelector::Callbacks::plot
virtual void plot(const MyHcalDetId &id)=0
DDAxes::x
HcalVisualSelector::m_canvas
TCanvas * m_canvas
Definition:
HcalVisualSelector.h:26
event
Definition:
event.py:1
HcalVisualSelector::fill
void fill(const MyHcalDetId &id, double value)
egammaForCoreTracking_cff.depth
depth
Definition:
egammaForCoreTracking_cff.py:29
Generated for CMSSW Reference Manual by
1.8.11