Main Page
Namespaces
Classes
Package Documentation
src
RecoTBCalo
HcalPlotter
scripts
HcalElectronicsSelector.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
HcalElectronicsSelector
{
10
public
:
11
class
Callbacks
{
12
public
:
13
virtual
~Callbacks
() { }
14
virtual
void
plot
(
const
MyElectronicsId
&
id
) = 0;
15
16
};
17
18
HcalElectronicsSelector
(
Callbacks
* cb,
19
int
htrChan_lo=0,
int
htrChan_hi=24,
int
fpga_lo=-31,
int
fpga_hi=31,
int
crate=0);
20
21
void
fill
(
const
MyElectronicsId
&
id
,
double
value
);
22
void
onEvent
(
int
event
,
int
x
,
int
y
, TObject *selected);
//add crate
23
void
Update
();
24
private
:
25
Callbacks
*
m_cb
;
26
TCanvas*
m_canvas
;
27
TH2*
m_hist
;
28
int
m_crate
;
29
};
30
31
32
HcalElectronicsSelector::fill
void fill(const MyElectronicsId &id, double value)
HcalElectronicsSelector::Callbacks::plot
virtual void plot(const MyElectronicsId &id)=0
HcalElectronicsSelector::m_crate
int m_crate
Definition:
HcalElectronicsSelector.h:28
MyHcalClasses.h
HcalElectronicsSelector::onEvent
void onEvent(int event, int x, int y, TObject *selected)
HcalElectronicsSelector::m_canvas
TCanvas * m_canvas
Definition:
HcalElectronicsSelector.h:26
HcalElectronicsSelector
Definition:
HcalElectronicsSelector.h:9
MyElectronicsId
Definition:
MyHcalClasses.h:20
value
Definition:
value.py:1
HcalElectronicsSelector::Callbacks
Definition:
HcalElectronicsSelector.h:11
HcalElectronicsSelector::Update
void Update()
HcalElectronicsSelector::m_hist
TH2 * m_hist
Definition:
HcalElectronicsSelector.h:27
DDAxes::y
HcalElectronicsSelector::m_cb
Callbacks * m_cb
Definition:
HcalElectronicsSelector.h:25
DDAxes::x
event
Definition:
event.py:1
HcalElectronicsSelector::Callbacks::~Callbacks
virtual ~Callbacks()
Definition:
HcalElectronicsSelector.h:13
HcalElectronicsSelector::HcalElectronicsSelector
HcalElectronicsSelector(Callbacks *cb, int htrChan_lo=0, int htrChan_hi=24, int fpga_lo=-31, int fpga_hi=31, int crate=0)
Generated for CMSSW Reference Manual by
1.8.11