ATLAS Offline Software
Classes | Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
IVP12DSystemSimple Class Reference

#include <IVP12DSystemSimple.h>

Inheritance diagram for IVP12DSystemSimple:
Collaboration diagram for IVP12DSystemSimple:

Classes

class  Imp
 

Public Types

enum  State { CONSTRUCTED =0, REFRESHED, ERASED, UNCREATED }
 
enum  ActiveState { ON =0, OFF }
 

Signals

void itemFromSystemSelected ()
 
void sysmessage (QString) const
 
void inactiveSystemTurnedActive ()
 
void needErase ()
 

Public Member Functions

 IVP12DSystemSimple (const QString &name, const QString &information, const QString &contact_info)
 
virtual void systemcreate (StoreGateSvc *detstore)
 
virtual QWidget * buildController ()
 
virtual void buildPermanentItemCollection (StoreGateSvc *detstore, VP1GraphicsItemCollection *)
 
virtual void buildEventItemCollection (StoreGateSvc *sg, VP1GraphicsItemCollection *)
 
void updateGUI ()
 
virtual void systemerase ()
 
virtual void systemuncreate ()
 
virtual ~IVP12DSystemSimple ()
 
void registerItemCollection (VP1GraphicsItemCollection *)
 
virtual void itemPicked (VP1GraphicsItemCollection *, QGraphicsItem *)
 
virtual void itemGotEvent (VP1GraphicsItemCollection *, QGraphicsItem *, QEvent *)
 
virtual void selectionChanged (VP1GraphicsItemCollection *, QList< QGraphicsItem * >)
 
QSet< VP1GraphicsItemCollection * > getItemCollections ()
 
const QString & name () const
 
const QString & information () const
 
const QString & contact_info () const
 
QWidget * controllerWidget ()
 
virtual QByteArray saveState ()
 
virtual void restoreFromState (QByteArray)
 
void message (const QString &) const
 
void message (const QStringList &, const QString &addtoend="") const
 
void message (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &) const
 
void messageDebug (const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &) const
 
void messageVerbose (const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
StoreGateSvcstoreGate () const
 
StoreGateSvceventStore () const
 
StoreGateSvcdetectorStore () const
 
ISvcLocator * serviceLocator () const
 
IToolSvc * toolSvc () const
 
State state () const
 
ActiveState activeState () const
 

Static Public Member Functions

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)
 

Protected Member Functions

void registerController (QWidget *)
 

Private Slots

void itemPickedPrivate (QGraphicsItem *)
 
void itemGotEventPrivate (QGraphicsItem *, QEvent *)
 
void selectionChangedPrivate (QList< QGraphicsItem * >)
 

Private Member Functions

 IVP12DSystemSimple (const IVP12DSystemSimple &)
 
IVP12DSystemSimpleoperator= (const IVP12DSystemSimple &)
 
void create (StoreGateSvc *detstore)
 
void refresh (StoreGateSvc *storegate)
 
void erase ()
 
void uncreate ()
 
void disallowUpdateGUI ()
 
void allowUpdateGUI ()
 
void setChannel (IVP1ChannelWidget *)
 
IVP1ChannelWidgetchannel () const
 
void deleteController ()
 
void setState (const State &)
 
void setActiveState (const ActiveState &, const bool &donttriggererase=true)
 
bool isRefreshing ()
 
void setRefreshing (const bool &)
 
void setCanRegisterController (const bool &)
 

Private Attributes

Impm_d
 

Static Private Attributes

static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
 

Detailed Description

Definition at line 22 of file IVP12DSystemSimple.h.

Member Enumeration Documentation

◆ ActiveState

enum IVP1System::ActiveState
inherited
Enumerator
ON 
OFF 

Definition at line 144 of file IVP1System.h.

144 { ON=0, OFF };//Whether it is part of the erase/refresh cycle.

◆ State

enum IVP1System::State
inherited
Enumerator
CONSTRUCTED 
REFRESHED 
ERASED 
UNCREATED 

Definition at line 143 of file IVP1System.h.

Constructor & Destructor Documentation

◆ IVP12DSystemSimple() [1/2]

IVP12DSystemSimple::IVP12DSystemSimple ( const QString &  name,
const QString &  information,
const QString &  contact_info 
)

◆ ~IVP12DSystemSimple()

IVP12DSystemSimple::~IVP12DSystemSimple ( )
virtual

Definition at line 50 of file IVP12DSystemSimple.cxx.

51 {
52  delete m_d; m_d=0;
53 }

◆ IVP12DSystemSimple() [2/2]

IVP12DSystemSimple::IVP12DSystemSimple ( const IVP12DSystemSimple )
private

Member Function Documentation

◆ activeState()

IVP1System::ActiveState IVP1System::activeState ( ) const
inherited

Definition at line 135 of file IVP1System.cxx.

136 {
137  return m_d->activeState;
138 }

◆ allowUpdateGUI()

void IVP1System::allowUpdateGUI ( )
privateinherited

Definition at line 256 of file IVP1System.cxx.

257 {
258  m_d->allowupdategui=true;
259 }

◆ buildController()

QWidget * IVP12DSystemSimple::buildController ( )
virtual

Definition at line 20 of file IVP12DSystemSimple.cxx.

20 { return 0; }

◆ buildEventItemCollection()

void IVP12DSystemSimple::buildEventItemCollection ( StoreGateSvc sg,
VP1GraphicsItemCollection  
)
virtual

Definition at line 22 of file IVP12DSystemSimple.cxx.

22 {}

◆ buildPermanentItemCollection()

void IVP12DSystemSimple::buildPermanentItemCollection ( StoreGateSvc detstore,
VP1GraphicsItemCollection  
)
virtual

Definition at line 21 of file IVP12DSystemSimple.cxx.

21 {}

◆ channel()

IVP1ChannelWidget * IVP1System::channel ( ) const
privateinherited

Definition at line 275 of file IVP1System.cxx.

276 {
277  if (VP1Msg::verbose()&&!m_d->channel){
278  messageVerbose("WARNING channel() returning NULL");
279  }
280  assert(m_d->channel);
281  return m_d->channel;
282 }

◆ contact_info()

const QString & IVP1System::contact_info ( ) const
inherited

Definition at line 62 of file IVP1System.cxx.

63 {
64  return m_d->contact_info;
65 }

◆ controllerWidget()

QWidget * IVP1System::controllerWidget ( )
inherited

Definition at line 202 of file IVP1System.cxx.

202  {
203  if (VP1Msg::verbose()) {
204  messageVerbose("controllerWidget()");
205  messageVerbose("registerController m_d->state==ERASED = "+QString(m_d->state==ERASED?"true":"false"));
206  messageVerbose("registerController m_d->state==REFRESHED = "+QString(m_d->state==REFRESHED?"true":"false"));
207  }
208  assert(m_d->state==REFRESHED||m_d->state==ERASED);
209  return m_d->controller;
210  }

◆ create()

void IVP12DSystemSimple::create ( StoreGateSvc detstore)
privatevirtual

Implements IVP1System.

Definition at line 56 of file IVP12DSystemSimple.cxx.

57 {
58  assert(!m_d->wascreated);
59  systemcreate(detstore);
60 
61  QWidget * controller = buildController();
62  if (controller)
63  registerController(controller);
64 
65  bool hasview = m_d->itemcollectionPermanent->isAttachedToView();
66  if (hasview)
69  if (hasview)
71  m_d->wascreated=true;
72 }

◆ deleteController()

void IVP1System::deleteController ( )
privateinherited

Definition at line 213 of file IVP1System.cxx.

214 {
215  if (VP1Msg::verbose()){
216  messageVerbose("deleteController()");
217  }
218  if (m_d->controller)
219  m_d->controller->deleteLater();
220  m_d->controller = 0;
221 }

◆ detectorStore()

StoreGateSvc * IVP1System::detectorStore ( ) const
inherited

Definition at line 318 of file IVP1System.cxx.

319 {
321 }

◆ disallowUpdateGUI()

void IVP1System::disallowUpdateGUI ( )
privateinherited

Definition at line 250 of file IVP1System.cxx.

251 {
252  m_d->allowupdategui=false;
253 }

◆ erase()

void IVP12DSystemSimple::erase ( )
privatevirtual

Implements IVP1System.

Definition at line 94 of file IVP12DSystemSimple.cxx.

95 {
96  assert(m_d->wascreated);
97  assert(m_d->wasrefreshed);
98  systemerase();
100  m_d->wasrefreshed=false;
101 }

◆ eventStore()

StoreGateSvc * IVP1System::eventStore ( ) const
inherited

Definition at line 312 of file IVP1System.cxx.

313 {
314  return VP1AthenaPtrs::eventStore();
315 }

◆ getItemCollections()

QSet< VP1GraphicsItemCollection * > IVP12DSystem::getItemCollections ( )
inherited

Definition at line 55 of file IVP12DSystem.cxx.

56 {
57  return m_d->collections;
58 }

◆ inactiveSystemTurnedActive

void IVP1System::inactiveSystemTurnedActive ( )
signalinherited

◆ information()

const QString & IVP1System::information ( ) const
inherited

Definition at line 56 of file IVP1System.cxx.

57 {
58  return m_d->information;
59 }

◆ isRefreshing()

bool IVP1System::isRefreshing ( )
privateinherited

Definition at line 108 of file IVP1System.cxx.

109 {
110  return m_d->refreshing;
111 }

◆ itemFromSystemSelected

void IVP12DSystem::itemFromSystemSelected ( )
signalinherited

◆ itemGotEvent()

void IVP12DSystem::itemGotEvent ( VP1GraphicsItemCollection ,
QGraphicsItem *  ,
QEvent *   
)
virtualinherited

Definition at line 21 of file IVP12DSystem.cxx.

21 {}

◆ itemGotEventPrivate

void IVP12DSystem::itemGotEventPrivate ( QGraphicsItem *  item,
QEvent *  event 
)
privateslotinherited

Definition at line 70 of file IVP12DSystem.cxx.

71 {
72  VP1GraphicsItemCollection * ic = static_cast<VP1GraphicsItemCollection*>(sender());
73  assert(ic&&ic->interactionMode()==VP1GraphicsItemCollection::EVENTS);
76 }

◆ itemPicked()

void IVP12DSystem::itemPicked ( VP1GraphicsItemCollection ,
QGraphicsItem *   
)
virtualinherited

Definition at line 20 of file IVP12DSystem.cxx.

20 {}

◆ itemPickedPrivate

void IVP12DSystem::itemPickedPrivate ( QGraphicsItem *  item)
privateslotinherited

Definition at line 61 of file IVP12DSystem.cxx.

62 {
63  VP1GraphicsItemCollection * ic = static_cast<VP1GraphicsItemCollection*>(sender());
64  assert(ic&&ic->interactionMode()==VP1GraphicsItemCollection::SINGLEPICKS);
67 }

◆ 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){
339  sysmessage(str);
340  }
341  else{
342  std::cout<<VP1Msg::prefix_msg()<<" ["<<m_d->name.toStdString()<<"]: "<<str.toStdString()<<std::endl;
343  }
344 }

◆ 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()) {
403  message(l,addtoend);
404  return;
405  }
406  if (addtoend.isEmpty()) {
407  for (QString s : l)
408  message(addtostart+s);
409  } else {
410  for (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 (QString s : l)
366  message(s);
367  } else {
368  for (QString s : l)
369  message(s+addtoend);
370  }
371 }

◆ messageDebug() [1/3]

void IVP1System::messageDebug ( const QString &  str) const
inherited

Definition at line 347 of file IVP1System.cxx.

348 {
349  if (VP1Msg::debug())
350  std::cout<<VP1Msg::prefix_debug()<<" ["<<m_d->name.toStdString()<<"]: "<<str.toStdString()<<std::endl;
351 }

◆ 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()) {
419  messageDebug(l,addtoend);
420  return;
421  }
422  if (addtoend.isEmpty()) {
423  for (QString s : l)
424  messageDebug(addtostart+s);
425  } else {
426  for (QString s : l)
427  messageDebug(addtostart+s+addtoend);
428  }
429 }

◆ 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 (QString s : l)
378  messageDebug(s);
379  } else {
380  for (QString s : l)
381  messageDebug(s+addtoend);
382  }
383 }

◆ messageVerbose() [1/3]

void IVP1System::messageVerbose ( const QString &  str) const
inherited

Definition at line 354 of file IVP1System.cxx.

355 {
356  if (VP1Msg::verbose())
357  std::cout<<VP1Msg::prefix_verbose()<<" ["<<m_d->name.toStdString()<<"]: "<<str.toStdString()<<std::endl;
358 }

◆ 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 {
434  if (!VP1Msg::verbose())
435  return;
436  if (addtostart.isEmpty()) {
437  messageVerbose(l,addtoend);
438  return;
439  }
440  if (addtoend.isEmpty()) {
441  for (QString s : l)
442  messageVerbose(addtostart+s);
443  } else {
444  for (QString s : l)
445  messageVerbose(addtostart+s+addtoend);
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 {
388  if (!VP1Msg::verbose())
389  return;
390  if (addtoend.isEmpty()) {
391  for (QString s : l)
392  messageVerbose(s);
393  } else {
394  for (QString s : l)
395  messageVerbose(s+addtoend);
396  }
397 }

◆ name()

const QString & IVP1System::name ( ) const
inherited

Definition at line 50 of file IVP1System.cxx.

51 {
52  return m_d->name;
53 }

◆ needErase

void IVP1System::needErase ( )
signalinherited

◆ operator=()

IVP12DSystemSimple& IVP12DSystemSimple::operator= ( const IVP12DSystemSimple )
private

◆ refresh()

void IVP12DSystemSimple::refresh ( StoreGateSvc storegate)
privatevirtual

Implements IVP1System.

Definition at line 75 of file IVP12DSystemSimple.cxx.

76 {
77  assert(m_d->wascreated);
78  assert(!m_d->wasrefreshed);
79 
80  bool hasview = m_d->itemcollectionEvent->isAttachedToView();
81  if (hasview)
83  updateGUI();
85  updateGUI();
86  if (hasview)
88  updateGUI();
89 
90  m_d->wasrefreshed=true;
91 }

◆ registerController()

void IVP1System::registerController ( QWidget *  w)
protectedinherited

Definition at line 224 of file IVP1System.cxx.

225 {
226  if (VP1Msg::verbose()) {
227  messageVerbose("registerController ");
228  messageVerbose("registerController m_d->canregistercontroller = "+QString(m_d->canregistercontroller?"true":"false"));
229  messageVerbose("registerController m_d->state==CONSTRUCTED = "+QString(m_d->state==CONSTRUCTED?"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  }
234  message("ERROR: Please don't register controllers after create().");
235  if (m_d->state!=CONSTRUCTED)
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  }
245  m_d->controller = w;
246  w->setParent(0);
247 }

◆ registerItemCollection()

void IVP12DSystem::registerItemCollection ( VP1GraphicsItemCollection ic)
inherited

Definition at line 44 of file IVP12DSystem.cxx.

45 {
46  assert(!m_d->collections.contains(ic)
47  &&"IVP12DSystem::registerItemCollection Error: Item collection registered twice");
48  m_d->collections<<ic;
49  connect(ic,SIGNAL(itemPicked(QGraphicsItem*)),this,SLOT(itemPickedPrivate(QGraphicsItem*)));
50  connect(ic,SIGNAL(itemGotEvent(QGraphicsItem*,QEvent*)),this,SLOT(itemGotEventPrivate(QGraphicsItem*,QEvent*)));
51  connect(ic,SIGNAL(selectionChanged(QList<QGraphicsItem*>)),this,SLOT(selectionChangedPrivate(QList<QGraphicsItem*>)));
52 }

◆ restoreFromState()

void IVP1System::restoreFromState ( QByteArray  ba)
virtualinherited

Reimplemented in VP1GeometrySystem, VP1TrackSystem, VP1PrepRawDataSystem, VP1AODSystem, VP1MCSystem, VP1RawDataSystem, VP1PartSpectSystem, VP1BanksSystem, VP1CaloClusterSystem, VP1TrackingGeometrySystem, VP1GuideLineSystem, VP1CaloReadoutSystem, VP1CaloHitLegoSystem, VP1CaloLegoSystem, VP1MissingEtSystem, VP1HVLegoSystem, VP1VertexSystem, VP1CaloCellSystem, and VP1ExtraInputSystem.

Definition at line 302 of file IVP1System.cxx.

303 {
304  if (VP1Msg::verbose()){
305  messageVerbose("base restoreFromState called");
306  }
307  if (!ba.isEmpty())
308  message("Error in IVP1System::restoreFromState: Received non-empty saved state.");
309 }

◆ saveState()

QByteArray IVP1System::saveState ( )
virtualinherited

◆ selectionChanged()

void IVP12DSystem::selectionChanged ( VP1GraphicsItemCollection ,
QList< QGraphicsItem * >   
)
virtualinherited

Definition at line 22 of file IVP12DSystem.cxx.

22 {}

◆ selectionChangedPrivate

void IVP12DSystem::selectionChangedPrivate ( QList< QGraphicsItem * >  items)
privateslotinherited

Definition at line 79 of file IVP12DSystem.cxx.

80 {
81  VP1GraphicsItemCollection * ic = static_cast<VP1GraphicsItemCollection*>(sender());
82  assert(ic&&ic->interactionMode()==VP1GraphicsItemCollection::SELECTIONS);
85 }

◆ serviceLocator()

ISvcLocator * IVP1System::serviceLocator ( ) const
inherited

Definition at line 324 of file IVP1System.cxx.

325 {
327 }

◆ setActiveState()

void IVP1System::setActiveState ( const ActiveState s,
const bool &  donttriggererase = true 
)
privateinherited

Definition at line 162 of file IVP1System.cxx.

163 {
164  //First handle case where we dont actually change state. Only
165  //special consideration is OFF->OFF where we have to do something if
166  //we need to erase:
167  if (m_d->activeState==OFF&&s==OFF&&(m_d->state==REFRESHED||m_d->refreshing)&&!donttriggererase) {
168  needErase();
170  return;
171  } else if (m_d->activeState==s) {
173  return;
174  }
175 
176  //Ok, we know that we are either ON->OFF or OFF->ON.
177  m_d->activeState = s;
178 
179  if (s==ON) {
180  //OFF->ON: We might need a refresh, so send out a signal for the scheduler:
182  } else {
183  //ON->OFF: We might need an erase signal:
184  if ((m_d->state==REFRESHED||m_d->refreshing)&&!donttriggererase) {
185  needErase();
186  }
187  }
189 }

◆ setCanRegisterController()

void IVP1System::setCanRegisterController ( const bool &  c)
privateinherited

Definition at line 285 of file IVP1System.cxx.

286 {
287  if (VP1Msg::verbose()){
288  messageVerbose("setCanRegisterController called with"+QString(c?"true":"false"));
289  }
291 }

◆ setChannel()

void IVP1System::setChannel ( IVP1ChannelWidget cw)
privateinherited

Definition at line 94 of file IVP1System.cxx.

95 {
96  if (VP1Msg::verbose()) {
97  messageVerbose("setChannel ");
98  messageVerbose("setChannel m_d->state==CONSTRUCTED = "+QString(m_d->state==CONSTRUCTED?"true":"false"));
99  messageVerbose("setChannel cw!=0 = "+QString(cw!=0?"true":"false"));
100  }
101  assert(!m_d->channel);
102  assert(cw);
103  assert(m_d->state==CONSTRUCTED);
104  m_d->channel = cw;
105 }

◆ setRefreshing()

void IVP1System::setRefreshing ( const bool &  b)
privateinherited

Definition at line 114 of file IVP1System.cxx.

115 {
116  if (VP1Msg::verbose()){
117  messageVerbose("setRefreshing() called with b="+QString(b?"true":"false"));
118  }
119  if (b) {
120  assert(m_d->state==ERASED);
121  } else {
122  assert(m_d->state==REFRESHED);
123  }
124  m_d->refreshing = b;
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);
145  assert(s!=CONSTRUCTED);
146  if (s==REFRESHED) {
147  assert(m_d->state==ERASED);
148  }
149  if (s==ERASED) {
150  assert(m_d->state==REFRESHED||m_d->state==CONSTRUCTED);
151  }
152  if (s==UNCREATED) {
153  assert(m_d->state==ERASED);
154  }
155 #endif
156  m_d->state = s;
157  if (s==REFRESHED||s==ERASED)
159 }

◆ state()

IVP1System::State IVP1System::state ( ) const
inherited

Definition at line 129 of file IVP1System.cxx.

130 {
131  return m_d->state;
132 }

◆ storeGate()

StoreGateSvc* IVP1System::storeGate ( ) const
inlineinherited

Definition at line 119 of file IVP1System.h.

119 { return eventStore(); }//OBSOLETE NAME. Use eventStore() instead.

◆ str() [1/30]

static QString VP1String::str ( const Amg::Vector3D t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ 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

Definition at line 50 of file VP1String.h.

50 { return c; }

◆ str() [4/30]

static QString VP1String::str ( const double &  d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81 { return QString::number(d); }

◆ str() [5/30]

static QString VP1String::str ( const float &  f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82 { return QString::number(f); }

◆ str() [6/30]

template<class T >
static QString VP1String::str ( const HepGeom::BasicVector3D< T > &  t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ 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 >
static 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 >
static 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]

static QString VP1String::str ( const QString &  s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49 { return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor &  c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37 {
39 }

◆ str() [12/30]

QString VP1String::str ( const SbVec2d &  v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61 { double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [13/30]

QString VP1String::str ( const SbVec2f &  v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62 { float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s &  v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63 { short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d &  v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64 { double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [16/30]

QString VP1String::str ( const SbVec3f &  v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65 { float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s &  v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66 { short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d &  v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67 { double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f &  v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68 { float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ 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.

49 {
50  if (p) {
51  std::ostringstream s;
52  s << p;
53  // Explicitly naming QString here avoids a cppcheck warning.
54  return QString (s.str().c_str());
55  } else {
56  return "NULL";
57  }
58 }

◆ str() [22/30]

QString VP1String::str ( const VP1Interval i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43 {
44  return i.toString();
45 }

◆ str() [23/30]

static QString VP1String::str ( int  n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77 { return QString::number(n); }

◆ str() [24/30]

static QString VP1String::str ( long  n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75 { return QString::number(n); }

◆ str() [25/30]

static QString VP1String::str ( qlonglong  n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79 { return QString::number(n); }

◆ str() [26/30]

static QString VP1String::str ( qulonglong  n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80 { return QString::number(n); }

◆ str() [27/30]

static QString VP1String::str ( short int  n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73 { return QString::number(n); }

◆ str() [28/30]

static QString VP1String::str ( uint  n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78 { return QString::number(n); }

◆ str() [29/30]

static QString VP1String::str ( ulong  n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76 { return QString::number(n); }

◆ str() [30/30]

static 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

◆ systemcreate()

void IVP12DSystemSimple::systemcreate ( StoreGateSvc detstore)
virtual

Definition at line 19 of file IVP12DSystemSimple.cxx.

19 {}

◆ systemerase()

void IVP12DSystemSimple::systemerase ( )
virtual

Definition at line 24 of file IVP12DSystemSimple.cxx.

24 {}

◆ systemuncreate()

void IVP12DSystemSimple::systemuncreate ( )
virtual

Definition at line 23 of file IVP12DSystemSimple.cxx.

23 {}

◆ toolSvc()

IToolSvc * IVP1System::toolSvc ( ) const
inherited

Definition at line 330 of file IVP1System.cxx.

331 {
332  return VP1AthenaPtrs::toolSvc();
333 }

◆ uncreate()

void IVP12DSystemSimple::uncreate ( )
privatevirtual

Reimplemented from IVP1System.

Definition at line 104 of file IVP12DSystemSimple.cxx.

105 {
106  messageDebug("uncreate()...");
107 
108  assert(m_d->wascreated);
109  assert(!m_d->wasrefreshed);
114  systemuncreate();
116  m_d->wascreated=false;
117 }

◆ updateGUI()

void IVP12DSystemSimple::updateGUI ( )
inline

Definition at line 70 of file IVP12DSystemSimple.h.

◆ verbose()

static bool IVP1System::verbose ( )
inlinestaticinherited

Definition at line 86 of file IVP1System.h.

86 { return s_vp1verbose; }// Returns true if env var VP1_VERBOSE_OUTPUT=1

Member Data Documentation

◆ m_d

Imp* IVP12DSystemSimple::m_d
private

Definition at line 62 of file IVP12DSystemSimple.h.

◆ s_vp1verbose

const bool IVP1System::s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
staticprivateinherited

Definition at line 158 of file IVP1System.h.


The documentation for this class was generated from the following files:
VP1GraphicsItemCollection::isAttachedToView
bool isAttachedToView()
Definition: VP1GraphicsItemCollection.cxx:293
IVP1System::Imp::contact_info
const QString contact_info
Definition: IVP1System.cxx:39
IVP12DSystemSimple::Imp::wasrefreshed
bool wasrefreshed
Definition: IVP12DSystemSimple.cxx:31
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
IVP12DSystem::itemFromSystemSelected
void itemFromSystemSelected()
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
IVP12DSystemSimple::updateGUI
void updateGUI()
Definition: IVP12DSystemSimple.h:70
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
IVP12DSystemSimple::m_d
Imp * m_d
Definition: IVP12DSystemSimple.h:61
IVP12DSystemSimple::buildPermanentItemCollection
virtual void buildPermanentItemCollection(StoreGateSvc *detstore, VP1GraphicsItemCollection *)
Definition: IVP12DSystemSimple.cxx:21
IVP12DSystem::registerItemCollection
void registerItemCollection(VP1GraphicsItemCollection *)
Definition: IVP12DSystem.cxx:44
IVP1System::CONSTRUCTED
@ CONSTRUCTED
Definition: IVP1System.h:143
hist_file_dump.d
d
Definition: hist_file_dump.py:137
IVP1System::information
const QString & information() const
Definition: IVP1System.cxx:56
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
IVP1System::m_d
Imp * m_d
Definition: IVP1System.h:130
IVP1System::inactiveSystemTurnedActive
void inactiveSystemTurnedActive()
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
IVP12DSystemSimple::systemcreate
virtual void systemcreate(StoreGateSvc *detstore)
Definition: IVP12DSystemSimple.cxx:19
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
IVP1System::Imp::refreshing
bool refreshing
Definition: IVP1System.cxx:45
IVP1ChannelWidget::emitRefreshInfoChanged
void emitRefreshInfoChanged()
Definition: IVP1ChannelWidget.cxx:268
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IVP12DSystem::itemPicked
virtual void itemPicked(VP1GraphicsItemCollection *, QGraphicsItem *)
Definition: IVP12DSystem.cxx:20
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
IVP1System::s_vp1verbose
static const bool s_vp1verbose
Definition: IVP1System.h:158
IVP12DSystemSimple::Imp::wascreated
bool wascreated
Definition: IVP12DSystemSimple.cxx:32
IVP1System::needErase
void needErase()
IVP12DSystem::selectionChanged
virtual void selectionChanged(VP1GraphicsItemCollection *, QList< QGraphicsItem * >)
Definition: IVP12DSystem.cxx:22
VP1GraphicsItemCollection::EVENTS
@ EVENTS
Definition: VP1GraphicsItemCollection.h:62
IVP12DSystemSimple::systemerase
virtual void systemerase()
Definition: IVP12DSystemSimple.cxx:24
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
IVP12DSystem::IVP12DSystem
IVP12DSystem(const QString &name, const QString &information, const QString &contact_info)
Definition: IVP12DSystem.cxx:32
IVP1System::Imp::information
const QString information
Definition: IVP1System.cxx:38
lumiFormat.i
int i
Definition: lumiFormat.py:92
z
#define z
IVP12DSystemSimple::Imp::itemcollectionPermanent
VP1GraphicsItemCollection * itemcollectionPermanent
Definition: IVP12DSystemSimple.cxx:29
beamspotman.n
n
Definition: beamspotman.py:731
VP1GraphicsItemCollection::detachFromView
void detachFromView()
Definition: VP1GraphicsItemCollection.cxx:257
IVP12DSystemSimple::systemuncreate
virtual void systemuncreate()
Definition: IVP12DSystemSimple.cxx:23
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
IVP1System::REFRESHED
@ REFRESHED
Definition: IVP1System.h:143
IVP1System::Imp::activeState
ActiveState activeState
Definition: IVP1System.cxx:43
VP1GraphicsItemCollection::clear
void clear(const bool &deleteitems=true)
Definition: VP1GraphicsItemCollection.cxx:175
IVP1System::Imp::allowupdategui
bool allowupdategui
Definition: IVP1System.cxx:41
IVP1System::contact_info
const QString & contact_info() const
Definition: IVP1System.cxx:62
IVP1System::UNCREATED
@ UNCREATED
Definition: IVP1System.h:143
IVP1System::eventStore
StoreGateSvc * eventStore() const
Definition: IVP1System.cxx:312
IVP12DSystem::itemGotEvent
virtual void itemGotEvent(VP1GraphicsItemCollection *, QGraphicsItem *, QEvent *)
Definition: IVP12DSystem.cxx:21
VP1GraphicsItemCollection::reattachToView
void reattachToView()
Definition: VP1GraphicsItemCollection.cxx:282
IVP1System::sysmessage
void sysmessage(QString) const
grepfile.ic
int ic
Definition: grepfile.py:33
VP1AthenaPtrs::serviceLocator
static ISvcLocator * serviceLocator()
Definition: VP1AthenaPtrs.h:29
IVP1System::ON
@ ON
Definition: IVP1System.h:144
VP1AthenaPtrs::eventStore
static StoreGateSvc * eventStore()
Definition: VP1AthenaPtrs.h:27
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1140
IVP12DSystem::selectionChangedPrivate
void selectionChangedPrivate(QList< QGraphicsItem * >)
Definition: IVP12DSystem.cxx:79
IVP12DSystem::m_d
Imp * m_d
Definition: IVP12DSystem.h:64
IVP1System::messageDebug
void messageDebug(const QString &) const
Definition: IVP1System.cxx:347
python.selection.number
number
Definition: selection.py:20
IVP12DSystemSimple::Imp::itemcollectionEvent
VP1GraphicsItemCollection * itemcollectionEvent
Definition: IVP12DSystemSimple.cxx:30
VP1AthenaPtrs::toolSvc
static IToolSvc * toolSvc()
Definition: VP1AthenaPtrs.h:30
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
IVP1System::Imp::controller
QWidget * controller
Definition: IVP1System.cxx:44
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
item
Definition: ItemListSvc.h:43
IVP1System::registerController
void registerController(QWidget *)
Definition: IVP1System.cxx:224
IVP12DSystem::Imp::collections
QSet< VP1GraphicsItemCollection * > collections
Definition: IVP12DSystem.cxx:27
python.PyAthena.v
v
Definition: PyAthena.py:157
IVP12DSystem::itemGotEventPrivate
void itemGotEventPrivate(QGraphicsItem *, QEvent *)
Definition: IVP12DSystem.cxx:70
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
y
#define y
IVP1System::updateGUI
void updateGUI()
Definition: IVP1System.cxx:262
IVP1System::Imp::channel
IVP1ChannelWidget * channel
Definition: IVP1System.cxx:40
IVP12DSystem::itemPickedPrivate
void itemPickedPrivate(QGraphicsItem *)
Definition: IVP12DSystem.cxx:61
IVP12DSystemSimple::buildController
virtual QWidget * buildController()
Definition: IVP12DSystemSimple.cxx:20
str
Definition: BTagTrackIpAccessor.cxx:11
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
VP1GraphicsItemCollection
Definition: VP1GraphicsItemCollection.h:53
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
IVP1System::Imp::canregistercontroller
bool canregistercontroller
Definition: IVP1System.cxx:46
IVP12DSystemSimple::buildEventItemCollection
virtual void buildEventItemCollection(StoreGateSvc *sg, VP1GraphicsItemCollection *)
Definition: IVP12DSystemSimple.cxx:22
VP1AthenaPtrs::detectorStore
static StoreGateSvc * detectorStore()
Definition: VP1AthenaPtrs.h:28
python.compressB64.c
def c
Definition: compressB64.py:93
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
IVP1System::OFF
@ OFF
Definition: IVP1System.h:144
IVP1System::Imp::state
State state
Definition: IVP1System.cxx:42
IVP1System::messageVerbose
void messageVerbose(const QString &) const
Definition: IVP1System.cxx:354
IVP1System::ERASED
@ ERASED
Definition: IVP1System.h:143
VP1GraphicsItemCollection::SINGLEPICKS
@ SINGLEPICKS
Definition: VP1GraphicsItemCollection.h:62
IVP1System::Imp::name
const QString name
Definition: IVP1System.cxx:37
VP1GraphicsItemCollection::SELECTIONS
@ SELECTIONS
Definition: VP1GraphicsItemCollection.h:62