|
ATLAS Offline Software
|
#include <VP1MCSystem.h>
Definition at line 25 of file VP1MCSystem.h.
◆ ActiveState
◆ State
Enumerator |
---|
CONSTRUCTED | |
REFRESHED | |
ERASED | |
UNCREATED | |
Definition at line 143 of file IVP1System.h.
◆ VP1MCSystem()
VP1MCSystem::VP1MCSystem |
( |
| ) |
|
Definition at line 187 of file VP1MCSystem.cxx.
189 "System for browsing the MC Event",
190 "Joe Boudreau <boudreau@pitt.edu> (original), Thomas.Kittelmann@cern.ch (VP1 implementation)"),
◆ ~VP1MCSystem()
VP1MCSystem::~VP1MCSystem |
( |
| ) |
|
|
virtual |
◆ activeState()
◆ addParticle
void VP1MCSystem::addParticle |
( |
| ) |
|
|
slot |
Definition at line 284 of file VP1MCSystem.cxx.
286 m_d->
ui.listWidget->addItem(
"<particleName>");
287 m_d->
ui.listWidget->setCurrentRow(
m_d->
ui.listWidget->count()-1);
◆ allowUpdateGUI()
void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ channel()
◆ contact_info()
const QString & IVP1System::contact_info |
( |
| ) |
const |
|
inherited |
◆ controllerWidget()
QWidget * IVP1System::controllerWidget |
( |
| ) |
|
|
inherited |
◆ create()
Implements IVP1System.
Definition at line 205 of file VP1MCSystem.cxx.
207 QWidget * controller =
new QWidget;
208 m_d->
ui.setupUi(controller);
212 connect (
m_d->
ui.listWidget, SIGNAL (itemDoubleClicked (QListWidgetItem *)),
this, SLOT (
editItem (QListWidgetItem *)));
◆ deleteController()
void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ detectorStore()
◆ disallowUpdateGUI()
void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ editItem
void VP1MCSystem::editItem |
( |
QListWidgetItem * |
item | ) |
|
|
slot |
◆ erase()
void VP1MCSystem::erase |
( |
| ) |
|
|
virtual |
◆ eventStore()
◆ inactiveSystemTurnedActive
void IVP1System::inactiveSystemTurnedActive |
( |
| ) |
|
|
signalinherited |
◆ information()
const QString & IVP1System::information |
( |
| ) |
const |
|
inherited |
◆ isRefreshing()
bool IVP1System::isRefreshing |
( |
| ) |
|
|
privateinherited |
◆ message() [1/3]
void IVP1System::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void IVP1System::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 400 of file IVP1System.cxx.
402 if (addtostart.isEmpty()) {
406 if (addtoend.isEmpty()) {
◆ message() [3/3]
void IVP1System::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void IVP1System::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void IVP1System::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 416 of file IVP1System.cxx.
418 if (addtostart.isEmpty()) {
422 if (addtoend.isEmpty()) {
◆ messageDebug() [3/3]
void IVP1System::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void IVP1System::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void IVP1System::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 432 of file IVP1System.cxx.
436 if (addtostart.isEmpty()) {
440 if (addtoend.isEmpty()) {
◆ messageVerbose() [3/3]
void IVP1System::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ name()
const QString & IVP1System::name |
( |
| ) |
const |
|
inherited |
◆ needErase
void IVP1System::needErase |
( |
| ) |
|
|
signalinherited |
◆ refresh()
Implements IVP1System.
Definition at line 218 of file VP1MCSystem.cxx.
223 for (;iter!=endColl;++iter) {
225 for (
e=iter->begin();
e!=iter->end(); ++
e) {
227 if (!
particle->production_vertex() || !
particle->production_vertex()->particles_in_size()) {
228 QTreeWidgetItem *
item =
new QTreeWidgetItem();
◆ registerController()
void IVP1System::registerController |
( |
QWidget * |
w | ) |
|
|
protectedinherited |
Definition at line 224 of file IVP1System.cxx.
231 messageVerbose(
"registerController w!=0 = "+QString(
w!=0?
"true":
"false"));
234 message(
"ERROR: Please don't register controllers after create().");
236 message(
"ERROR: Please only register controllers in CONSTRUCTED state.");
238 message(
"ERROR: Attempt to register null controller.");
242 message(
"ERROR: Attempt to register controller twice.");
◆ removeParticle
void VP1MCSystem::removeParticle |
( |
| ) |
|
|
slot |
Definition at line 292 of file VP1MCSystem.cxx.
294 QList<QListWidgetItem *> selectedItems =
m_d->
ui.listWidget->selectedItems();
295 for (
int i=0;
i<selectedItems.size();++
i) {
296 int row =
m_d->
ui.listWidget->row(selectedItems[
i]);
297 QListWidgetItem *
item =
m_d->
ui.listWidget->takeItem(
row);
◆ restoreFromState()
void VP1MCSystem::restoreFromState |
( |
QByteArray |
ba | ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 261 of file VP1MCSystem.cxx.
264 if (
state.version()!=0) {
265 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
269 qint32 itemCount=
state.restoreInt();
270 for (
int i=0;
i<itemCount;++
i) {
◆ saveState()
QByteArray VP1MCSystem::saveState |
( |
| ) |
|
|
virtual |
◆ searchParticles
void VP1MCSystem::searchParticles |
( |
| ) |
|
|
slot |
Definition at line 301 of file VP1MCSystem.cxx.
303 m_d->
tw->collapseAll();
304 for (
int j=0;j<
m_d->
ui.listWidget->count();++j) {
305 m_d->
ui.listWidget->setCurrentRow(j);
306 QString
text =
m_d->
ui.listWidget->currentItem()->text();
307 for (
int i=0;
i<
m_d->
tw->topLevelItemCount();++
i) {
312 for (
int j=0;j<
m_d->
ui.listWidget->count();++j) {
313 m_d->
ui.listWidget->setCurrentRow(j);
314 QString
text =
m_d->
ui.listWidget->currentItem()->text();
315 for (
int i=0;
i<
m_d->
tw->topLevelItemCount();++
i) {
◆ serviceLocator()
ISvcLocator * IVP1System::serviceLocator |
( |
| ) |
const |
|
inherited |
◆ setActiveState()
◆ setCanRegisterController()
void IVP1System::setCanRegisterController |
( |
const bool & |
c | ) |
|
|
privateinherited |
◆ setChannel()
◆ setRefreshing()
void IVP1System::setRefreshing |
( |
const bool & |
b | ) |
|
|
privateinherited |
◆ setState()
◆ setTree()
void VP1MCSystem::setTree |
( |
QTreeWidget * |
tw | ) |
|
Definition at line 277 of file VP1MCSystem.cxx.
279 m_d->
tw->setColumnCount(5);
280 m_d->
tw->setHeaderLabels((QStringList()<<
"Type"<<
"ID" <<
"Mass (GeV) " <<
"Pt (GeV)"<<
"Eta"<<
"Phi"));
281 m_d->
tw->setAlternatingRowColors (
true );
282 m_d->
tw->setEditTriggers(QAbstractItemView::NoEditTriggers);
◆ state()
◆ storeGate()
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ sysmessage
void IVP1System::sysmessage |
( |
QString |
| ) |
const |
|
signalinherited |
◆ toolSvc()
IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ uncreate()
void IVP1System::uncreate |
( |
| ) |
|
|
protectedvirtualinherited |
◆ updateGUI()
void IVP1System::updateGUI |
( |
| ) |
|
|
inherited |
◆ verbose()
static bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ m_d
◆ s_vp1verbose
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
const QString contact_info
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
void editItem(QListWidgetItem *)
Ui::VP1MCSystemControllerForm ui
void inactiveSystemTurnedActive()
static QString str(const QString &s)
static const bool s_vp1verbose
virtual QByteArray saveState()
void zeroFormat(QTreeWidgetItem *item)
static const char * prefix_msg()
const QString information
StoreGateSvc * eventStore() const
void sysmessage(QString) const
static ISvcLocator * serviceLocator()
static StoreGateSvc * eventStore()
static QColor sbcol2qcol(const SbColor &)
const GenParticle * ConstGenParticlePtr
void messageDebug(const QString &) const
static IToolSvc * toolSvc()
static const char * prefix_debug()
void registerController(QWidget *)
static const char * prefix_verbose()
IVP1ChannelWidget * channel
void handle(QTreeWidgetItem *item, const HepMC::GenParticle &particle)
void expand(const QString &text, QTreeWidgetItem *item)
bool canregistercontroller
static StoreGateSvc * detectorStore()
IVP1System(const QString &name, const QString &information, const QString &contact_info)
void message(const QString &) const
void messageVerbose(const QString &) const
QWidget * controllerWidget()
virtual void restoreFromState(QByteArray)