ATLAS Offline Software
Loading...
Searching...
No Matches
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
16#include "ui_mcchannelwidgetform.h"
18#include <QLabel>
19
20//_________________________________________________________
23 "This channel simply shows the MC Tree, provided by the VP1MCSystem.",
24 "Joseph.Boudreau@cern.ch, Riccardo.Maria.Bianchi@cern.ch"),
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/
41
42
43//_________________________________________________________
45{
46 m_mcsystem.reset (new VP1MCSystem());
48
49}
50
51//_________________________________________________________
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
#define VP1CHANNELNAMEINPLUGIN(cls, nme)
void registerSystem(IVP1System *)
void registerController(QWidget *)
IVP1ChannelWidget(const QString &name, const QString &information, const QString &contact_info)
virtual ~VP1MCChannel()
std::unique_ptr< VP1MCSystem > m_mcsystem
QTreeWidget * m_treeWidget