22#include <QApplication>
32 Imp(
const QString & n,
const QString & i,
const QString & c)
58 return m_d->information;
64 return m_d->contact_info;
74 setObjectName(
"IVP1System:"+n);
86 assert(!
m_d->controller);
99 messageVerbose(
"setChannel cw!=0 = "+QString(cw!=0?
"true":
"false"));
101 assert(!
m_d->channel);
110 return m_d->refreshing;
117 messageVerbose(
"setRefreshing() called with b="+QString(b?
"true":
"false"));
137 return m_d->activeState;
144 assert (
m_d->state != s);
158 m_d->channel->emitRefreshInfoChanged();
169 m_d->channel->emitRefreshInfoChanged();
171 }
else if (
m_d->activeState==s) {
172 m_d->channel->emitRefreshInfoChanged();
177 m_d->activeState = s;
188 m_d->channel->emitRefreshInfoChanged();
209 return m_d->controller;
219 m_d->controller->deleteLater();
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"));
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.");
238 message(
"ERROR: Attempt to register null controller.");
241 if (
m_d->controller) {
242 message(
"ERROR: Attempt to register controller twice.");
252 m_d->allowupdategui=
false;
258 m_d->allowupdategui=
true;
267 if (
m_d->allowupdategui ) {
268 qApp->processEvents();
280 assert(
m_d->channel);
288 messageVerbose(
"setCanRegisterController called with"+QString(c?
"true":
"false"));
290 m_d->canregistercontroller=c;
308 message(
"Error in IVP1System::restoreFromState: Received non-empty saved state.");
338 if (receivers(SIGNAL(
sysmessage(QString))) > 0){
364 if (addtoend.isEmpty()) {
365 for (
const QString& s : l)
368 for (
const QString& s : l)
376 if (addtoend.isEmpty()) {
377 for (
const QString& s : l)
380 for (
const QString& s : l)
390 if (addtoend.isEmpty()) {
391 for (
const QString& s : l)
394 for (
const QString& s : l)
402 if (addtostart.isEmpty()) {
406 if (addtoend.isEmpty()) {
407 for (
const QString& s : l)
410 for (
const QString& s : l)
411 message(addtostart+s+addtoend);
418 if (addtostart.isEmpty()) {
422 if (addtoend.isEmpty()) {
423 for (
const QString& s : l)
426 for (
const QString& s : l)
436 if (addtostart.isEmpty()) {
440 if (addtoend.isEmpty()) {
441 for (
const QString& s : l)
444 for (
const QString& s : l)
463 message(
"(((((((((())))))))))))))))");
486 message(
"Unknown xAOD type requested");
487 return QStringList {};
491void IVP1System::setObjectList(QList<QStringList> list){
const QString contact_info
bool canregistercontroller
const QString information
Imp(const QString &n, const QString &i, const QString &c)
IVP1ChannelWidget * channel
IToolSvc * toolSvc() const
friend class IVP1ChannelWidget
void messageVerbose(const QString &) const
ActiveState activeState() const
virtual void restoreFromState(QByteArray)
StoreGateSvc * detectorStore() const
void messageDebug(const QString &) const
const QString & name() const
StoreGateSvc * eventStore() const
void setCanRegisterController(const bool &)
QWidget * controllerWidget()
IVP1System(const QString &name, const QString &information, const QString &contact_info)
void message(const QString &) const
void setChannel(IVP1ChannelWidget *)
static const bool s_vp1verbose
IVP1ChannelWidget * channel() const
void inactiveSystemTurnedActive()
void sysmessage(QString) const
void registerController(QWidget *)
void setRefreshing(const bool &)
void setState(const State &)
const QString & information() const
const QString & contact_info() const
ISvcLocator * serviceLocator() const
virtual QByteArray saveState()
void setActiveState(const ActiveState &, const bool &donttriggererase=true)
The Athena Transient Store API.
static StoreGateSvc * eventStore()
static IToolSvc * toolSvc()
static ISvcLocator * serviceLocator()
static StoreGateSvc * detectorStore()
static void messageDebug(const QString &)
static const char * prefix_msg()
static const char * prefix_debug()
static const char * prefix_verbose()
static bool environmentVariableIsOn(const QString &name)
Tool for accessing xAOD files outside of Athena.
ObjectType
Type of objects that have a representation in the xAOD EDM.
@ TrackParticle
The object is a charged track particle.
@ Jet
The object is a jet.
@ Other
An object not falling into any of the other categories.
@ CaloCluster
The object is a calorimeter cluster.
@ Muon
The object is a muon.
@ Electron
The object is an electron.
@ Vertex
The object is a vertex.