ATLAS Offline Software
graphics
VP1
VP1Plugins
VP1MCPlugin
src
VP1MCChannel.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// //
7
// Implementation of class VP1MCChannel //
8
// //
9
// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10
// //
11
// Initial version: May 2007 //
12
// //
14
15
#include "
VP1MCPlugin/VP1MCChannel.h
"
16
#include "ui_mcchannelwidgetform.h"
17
#include "
VP1MCSystems/VP1MCSystem.h
"
18
#include <QLabel>
19
20
//_________________________________________________________
21
VP1MCChannel::VP1MCChannel
()
22
:
IVP1ChannelWidget
(
VP1CHANNELNAMEINPLUGIN
(
VP1MCChannel
,
"MC"
),
23
"This channel simply shows the MC Tree, provided by the VP1MCSystem."
,
24
"Joseph.Boudreau@cern.ch, Riccardo.Maria.Bianchi@cern.ch"
),
25
m_treeWidget(0)
26
{
27
}
28
29
30
//_________________________________________________________
31
// Empty destructor
32
// Note: we need to have this in the .cpp,
33
// instead of having it in the header file,
34
// to let the destroyer of the unique_ptr know about the
35
// size of the object to be deleted, so we can keep using
36
// the forward declaration in the header and the Pimpl idiom.
37
//
38
// Nice source about this:
39
// - https://ortogonal.github.io/cpp/forward-declaration-and-smart-pointers/
40
VP1MCChannel::~VP1MCChannel
() {}
41
42
43
//_________________________________________________________
44
void
VP1MCChannel::init
()
45
{
46
m_mcsystem
.reset (
new
VP1MCSystem
());
47
registerSystem
(
m_mcsystem
.get());
48
49
}
50
51
//_________________________________________________________
52
void
VP1MCChannel::create
() {
53
54
//Setup this widget
55
Ui::MCChannelWidgetForm ui;
56
ui.setupUi(
this
);
57
m_treeWidget
= ui.treeWidget;
58
registerController
(
m_mcsystem
->controllerWidget());
59
60
m_mcsystem
->setTree(
m_treeWidget
);
61
62
}
63
IVP1ChannelWidget::registerSystem
void registerSystem(IVP1System *)
Definition:
IVP1ChannelWidget.cxx:221
VP1MCChannel::m_treeWidget
QTreeWidget * m_treeWidget
Definition:
VP1MCChannel.h:45
IVP1ChannelWidget::registerController
void registerController(QWidget *)
Definition:
IVP1ChannelWidget.cxx:210
VP1CHANNELNAMEINPLUGIN
#define VP1CHANNELNAMEINPLUGIN(cls, nme)
Definition:
IVP1ChannelWidget.h:139
VP1MCChannel::init
void init()
Definition:
VP1MCChannel.cxx:44
VP1MCChannel
Definition:
VP1MCChannel.h:31
VP1MCChannel::m_mcsystem
std::unique_ptr< VP1MCSystem > m_mcsystem
Definition:
VP1MCChannel.h:46
VP1MCSystem.h
VP1MCChannel::VP1MCChannel
VP1MCChannel()
Definition:
VP1MCChannel.cxx:21
VP1MCChannel.h
IVP1ChannelWidget
Definition:
IVP1ChannelWidget.h:34
VP1MCChannel::create
void create()
Definition:
VP1MCChannel.cxx:52
VP1MCSystem
Definition:
VP1MCSystem.h:25
VP1MCChannel::~VP1MCChannel
virtual ~VP1MCChannel()
Definition:
VP1MCChannel.cxx:40
Generated on Thu Nov 7 2024 21:31:42 for ATLAS Offline Software by
1.8.18