#include <VP1MCSystem.h>
|
| static bool | verbose () |
| static QString | str (const QString &s) |
| static QString | str (const char *c) |
| static QString | str (const bool b) |
| static QString | str (const QColor &) |
| static QString | str (const SbColor &) |
| static QString | str (const VP1Interval &) |
| static QString | str (const SbVec2d &) |
| static QString | str (const SbVec2f &) |
| static QString | str (const SbVec2s &) |
| static QString | str (const SbVec3d &) |
| static QString | str (const SbVec3f &) |
| static QString | str (const SbVec3s &) |
| static QString | str (const SbVec4d &) |
| static QString | str (const SbVec4f &) |
| static QString | str (short int n) |
| static QString | str (unsigned short int n) |
| static QString | str (long n) |
| static QString | str (ulong n) |
| static QString | str (int n) |
| static QString | str (uint n) |
| static QString | str (qlonglong n) |
| static QString | str (qulonglong n) |
| static QString | str (const double &d) |
| static QString | str (const float &f) |
| static QString | str (const void *) |
| template<class T> |
| static QString | str (const T *t) |
| template<class T> |
| static QString | str (const QFlags< T > &f) |
| template<class T> |
| static QString | str (const HepGeom::BasicVector3D< T > &t) |
| static QString | str (const Amg::Vector3D &t) |
| template<class T> |
| static QString | str (const QList< T > &t) |
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)"),
192{
193}
IVP1System(const QString &name, const QString &information, const QString &contact_info)
◆ ~VP1MCSystem()
| VP1MCSystem::~VP1MCSystem |
( |
| ) |
|
|
virtual |
◆ activeState()
◆ addParticle
| void VP1MCSystem::addParticle |
( |
| ) |
|
|
slot |
Definition at line 284 of file VP1MCSystem.cxx.
284 {
286 m_d->ui.listWidget->addItem(
"<particleName>");
287 m_d->ui.listWidget->setCurrentRow(
m_d->ui.listWidget->count()-1);
288
289
290
291}
void message(const QString &) const
◆ allowUpdateGUI()
| void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ channel()
Definition at line 275 of file IVP1System.cxx.
276{
279 }
280 assert(
m_d->channel);
282}
void messageVerbose(const QString &) const
◆ 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.
206{
207 QWidget * controller = new QWidget;
208 m_d->ui.setupUi(controller);
212 connect (
m_d->ui.listWidget, SIGNAL (itemDoubleClicked (QListWidgetItem *)),
this, SLOT (
editItem (QListWidgetItem *)));
214
215}
void registerController(QWidget *)
void editItem(QListWidgetItem *)
◆ deleteController()
| void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ detectorStore()
Definition at line 318 of file IVP1System.cxx.
319{
321}
static StoreGateSvc * detectorStore()
◆ disallowUpdateGUI()
| void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ editItem
| void VP1MCSystem::editItem |
( |
QListWidgetItem * | item | ) |
|
|
slot |
Definition at line 323 of file VP1MCSystem.cxx.
323 {
324 m_d->ui.listWidget->openPersistentEditor(item);
325}
◆ erase()
| void VP1MCSystem::erase |
( |
| ) |
|
|
virtual |
◆ eventStore()
Definition at line 312 of file IVP1System.cxx.
313{
315}
static StoreGateSvc * 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 |
Definition at line 336 of file IVP1System.cxx.
337{
338 if (receivers(SIGNAL(
sysmessage(QString))) > 0){
340 }
341 else{
343 }
344}
void sysmessage(QString) const
static const char * prefix_msg()
static QString str(const QString &s)
◆ 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.
401{
402 if (addtostart.isEmpty()) {
404 return;
405 }
406 if (addtoend.isEmpty()) {
407 for (const QString& s : l)
409 } else {
410 for (const QString& s : l)
411 message(addtostart+s+addtoend);
412 }
413}
◆ message() [3/3]
| void IVP1System::message |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 362 of file IVP1System.cxx.
363{
364 if (addtoend.isEmpty()) {
365 for (const QString& s : l)
367 } else {
368 for (const QString& s : l)
370 }
371}
◆ messageDebug() [1/3]
| void IVP1System::messageDebug |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 347 of file IVP1System.cxx.
348{
351}
static const char * prefix_debug()
◆ 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.
417{
418 if (addtostart.isEmpty()) {
420 return;
421 }
422 if (addtoend.isEmpty()) {
423 for (const QString& s : l)
425 } else {
426 for (const QString& s : l)
428 }
429}
void messageDebug(const QString &) const
◆ messageDebug() [3/3]
| void IVP1System::messageDebug |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 374 of file IVP1System.cxx.
375{
376 if (addtoend.isEmpty()) {
377 for (const QString& s : l)
379 } else {
380 for (const QString& s : l)
382 }
383}
◆ messageVerbose() [1/3]
| void IVP1System::messageVerbose |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 354 of file IVP1System.cxx.
355{
358}
static const char * prefix_verbose()
◆ 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.
433{
435 return;
436 if (addtostart.isEmpty()) {
438 return;
439 }
440 if (addtoend.isEmpty()) {
441 for (const QString& s : l)
443 } else {
444 for (const QString& s : l)
446 }
447}
◆ messageVerbose() [3/3]
| void IVP1System::messageVerbose |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 386 of file IVP1System.cxx.
387{
389 return;
390 if (addtoend.isEmpty()) {
391 for (const QString& s : l)
393 } else {
394 for (const QString& s : l)
396 }
397}
◆ name()
| const QString & IVP1System::name |
( |
| ) |
const |
|
inherited |
◆ needErase
| void IVP1System::needErase |
( |
| ) |
|
|
signalinherited |
◆ refresh()
Implements IVP1System.
Definition at line 218 of file VP1MCSystem.cxx.
219{
220
221 SG::ConstIterator<McEventCollection>
iter,endColl;
222 if (VP1SGAccessHelper(
this).
retrieve(iter,endColl)) {
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();
229 m_d->tw->insertTopLevelItem(
m_d->tw->topLevelItemCount(), item);
230 m_d->handle(item,*particle);
231 }
232 }
233 }
234 }
235 }
236}
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const GenParticle * ConstGenParticlePtr
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
retrieve(aClass, aKey=None)
◆ registerController()
| void IVP1System::registerController |
( |
QWidget * | w | ) |
|
|
protectedinherited |
Definition at line 224 of file IVP1System.cxx.
225{
228 messageVerbose(
"registerController m_d->canregistercontroller = "+QString(
m_d->canregistercontroller?
"true":
"false"));
230 messageVerbose(
"registerController m_d->controller==0 = "+QString(
m_d->controller==0?
"true":
"false"));
231 messageVerbose(
"registerController w!=0 = "+QString(w!=0?
"true":
"false"));
232 }
233 if (!
m_d->canregistercontroller)
234 message(
"ERROR: Please don't register controllers after create().");
236 message(
"ERROR: Please only register controllers in CONSTRUCTED state.");
237 if (!w) {
238 message(
"ERROR: Attempt to register null controller.");
239 return;
240 }
241 if (
m_d->controller) {
242 message(
"ERROR: Attempt to register controller twice.");
243 return;
244 }
247}
◆ removeParticle
| void VP1MCSystem::removeParticle |
( |
| ) |
|
|
slot |
Definition at line 292 of file VP1MCSystem.cxx.
292 {
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);
299 }
300}
row
Appending html table to final .html summary file.
◆ restoreFromState()
| void VP1MCSystem::restoreFromState |
( |
QByteArray | ba | ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 261 of file VP1MCSystem.cxx.
262{
263 VP1Deserialise
state(ba,
this);
264 if (
state.version()!=0) {
265 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
266 return;
267 }
269 qint32 itemCount=
state.restoreInt();
270 for (
int i=0;
i<itemCount;++
i) {
272 m_d->ui.listWidget->addItem(text);
273 }
275}
virtual void restoreFromState(QByteArray)
QWidget * controllerWidget()
◆ saveState()
| QByteArray VP1MCSystem::saveState |
( |
| ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 246 of file VP1MCSystem.cxx.
247{
251 for (
int i=0;
i<
m_d->ui.listWidget->count();++
i) {
252 m_d->ui.listWidget->setCurrentRow(i);
254 }
257
258}
virtual QByteArray saveState()
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
◆ searchParticles
| void VP1MCSystem::searchParticles |
( |
| ) |
|
|
slot |
Definition at line 301 of file VP1MCSystem.cxx.
301 {
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) {
308 m_d->zeroFormat(
m_d->tw->topLevelItem(i));
309 }
310 }
311
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) {
316 m_d->expand(text,
m_d->tw->topLevelItem(i));
317 }
318 }
319
320
321}
◆ serviceLocator()
| ISvcLocator * IVP1System::serviceLocator |
( |
| ) |
const |
|
inherited |
Definition at line 324 of file IVP1System.cxx.
325{
327}
static ISvcLocator * serviceLocator()
◆ setActiveState()
| void IVP1System::setActiveState |
( |
const ActiveState & | s, |
|
|
const bool & | donttriggererase = true ) |
|
privateinherited |
Definition at line 162 of file IVP1System.cxx.
163{
164
165
166
169 m_d->channel->emitRefreshInfoChanged();
170 return;
171 }
else if (
m_d->activeState==s) {
172 m_d->channel->emitRefreshInfoChanged();
173 return;
174 }
175
176
177 m_d->activeState =
s;
178
180
182 } else {
183
186 }
187 }
188 m_d->channel->emitRefreshInfoChanged();
189}
void inactiveSystemTurnedActive()
◆ setCanRegisterController()
| void IVP1System::setCanRegisterController |
( |
const bool & | c | ) |
|
|
privateinherited |
Definition at line 285 of file IVP1System.cxx.
286{
288 messageVerbose(
"setCanRegisterController called with"+QString(c?
"true":
"false"));
289 }
290 m_d->canregistercontroller=
c;
291}
◆ setChannel()
Definition at line 94 of file IVP1System.cxx.
95{
99 messageVerbose(
"setChannel cw!=0 = "+QString(cw!=0?
"true":
"false"));
100 }
101 assert(!
m_d->channel);
102 assert(cw);
105}
◆ setRefreshing()
| void IVP1System::setRefreshing |
( |
const bool & | b | ) |
|
|
privateinherited |
Definition at line 114 of file IVP1System.cxx.
115{
117 messageVerbose(
"setRefreshing() called with b="+QString(b?
"true":
"false"));
118 }
119 if (b) {
121 } else {
123 }
125}
◆ setState()
| void IVP1System::setState |
( |
const State & | s | ) |
|
|
privateinherited |
Definition at line 141 of file IVP1System.cxx.
142{
143#ifndef NDEBUG
144 assert (
m_d->state != s);
148 }
151 }
154 }
155#endif
158 m_d->channel->emitRefreshInfoChanged();
159}
◆ setTree()
| void VP1MCSystem::setTree |
( |
QTreeWidget * | tw | ) |
|
Definition at line 277 of file VP1MCSystem.cxx.
277 {
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);
283}
◆ state()
◆ storeGate()
Definition at line 119 of file IVP1System.h.
StoreGateSvc * eventStore() const
◆ str() [1/30]
◆ str() [2/30]
| QString VP1String::str |
( |
const bool | b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53{
return b?
"True":
"False"; }
◆ str() [3/30]
| QString VP1String::str |
( |
const char * | c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
| QString VP1String::str |
( |
const double & | d | ) |
|
|
inlinestaticinherited |
Definition at line 81 of file VP1String.h.
81{ return QString::number(d); }
◆ str() [5/30]
| QString VP1String::str |
( |
const float & | f | ) |
|
|
inlinestaticinherited |
Definition at line 82 of file VP1String.h.
82{ return QString::number(f); }
◆ str() [6/30]
◆ str() [7/30]
| QString VP1String::str |
( |
const QColor & | c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
31{
32 return c.isValid() ?
c.name() :
"Invalid";
33}
◆ str() [8/30]
template<class T>
| QString VP1String::str |
( |
const QFlags< T > & | f | ) |
|
|
inlinestaticinherited |
Definition at line 91 of file VP1String.h.
91{ return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }
◆ str() [9/30]
template<class T>
| QString VP1String::str |
( |
const QList< T > & | t | ) |
|
|
inlinestaticinherited |
Definition at line 102 of file VP1String.h.
102{
return "QList of size"+QString::number(
t.size()); }
◆ str() [10/30]
| QString VP1String::str |
( |
const QString & | s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
| QString VP1String::str |
( |
const SbColor & | c | ) |
|
|
staticinherited |
Definition at line 36 of file VP1String.cxx.
37{
39}
static QColor sbcol2qcol(const SbColor &)
◆ 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>
| 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.
49{
50 if (p) {
53
54 return QString (
s.str().c_str());
55 } else {
56 return "NULL";
57 }
58}
◆ str() [22/30]
◆ str() [23/30]
| QString VP1String::str |
( |
int | n | ) |
|
|
inlinestaticinherited |
Definition at line 77 of file VP1String.h.
77{ return QString::number(n); }
◆ str() [24/30]
| QString VP1String::str |
( |
long | n | ) |
|
|
inlinestaticinherited |
Definition at line 75 of file VP1String.h.
75{ return QString::number(n); }
◆ str() [25/30]
| QString VP1String::str |
( |
qlonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 79 of file VP1String.h.
79{ return QString::number(n); }
◆ str() [26/30]
| QString VP1String::str |
( |
qulonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 80 of file VP1String.h.
80{ return QString::number(n); }
◆ str() [27/30]
| QString VP1String::str |
( |
short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 73 of file VP1String.h.
73{ return QString::number(n); }
◆ str() [28/30]
| QString VP1String::str |
( |
uint | n | ) |
|
|
inlinestaticinherited |
Definition at line 78 of file VP1String.h.
78{ return QString::number(n); }
◆ str() [29/30]
| QString VP1String::str |
( |
ulong | n | ) |
|
|
inlinestaticinherited |
Definition at line 76 of file VP1String.h.
76{ return QString::number(n); }
◆ str() [30/30]
| QString VP1String::str |
( |
unsigned short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 74 of file VP1String.h.
74{ return QString::number(n); }
◆ sysmessage
| void IVP1System::sysmessage |
( |
QString | | ) |
const |
|
signalinherited |
◆ toolSvc()
| IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ uncreate()
| void IVP1System::uncreate |
( |
| ) |
|
|
protectedvirtualinherited |
◆ updateGUI()
| void IVP1System::updateGUI |
( |
| ) |
|
|
inherited |
Definition at line 262 of file IVP1System.cxx.
262 {
263
264
265
266
267 if (
m_d->allowupdategui ) {
268 qApp->processEvents();
269 }
270
271
272}
◆ verbose()
| bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 86 of file IVP1System.h.
static const bool s_vp1verbose
◆ m_d
◆ s_vp1verbose
The documentation for this class was generated from the following files: