|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "ui_hvlegocontrollerform.h"
10 #include <Inventor/nodes/SoSwitch.h>
11 #include <Inventor/nodes/SoSeparator.h>
12 #include <Inventor/nodes/SoTranslation.h>
23 #define MAX_OBJECTS_PER_TECHNOLOGY 3000
53 :
IVP13DSystemSimple(
"HVLego",
"Display the readout in an eta-phi view",
"boudreau@pitt.edu"),
66 QWidget* controller =
new QWidget(0);
67 Ui::frmHVLegoController ui;
68 ui.setupUi(controller);
72 controller->setEnabled(
false);
99 for (
int i=0;
i<3;
i++) {
104 for (
int i=0;
i<4;
i++) {
132 message(
"ERROR: Cannot access LArElectrodeID");
140 << elecId->
zside(*
e) <<
' '
144 << elecId->
gap(*
e) <<
' '
164 QCheckBox* cb =
dynamic_cast<QCheckBox*
>(sender());
176 sw->whichChild = SO_SWITCH_ALL;
179 sw->whichChild = SO_SWITCH_NONE;
197 QMap<QString,bool> checkboxstate;
198 while (
it.hasNext()) {
200 checkboxstate.insert(
it.key(),
it.value()->isChecked());
212 if (
state.version()==0) {
213 message(
"Warning: State data in .vp1 file has obsolete format - ignoring!");
216 if (
state.version()!=1) {
217 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
224 QMap<QString,bool> checkboxstate(
state.restore<QMap<QString,bool> >());
226 while (
it.hasNext()) {
228 state.widgetHandled(
it.value());
229 if (checkboxstate.contains(
it.key())) {
230 bool checked = checkboxstate.value(
it.key());
231 if (
it.value()->isChecked()!=checked)
232 it.value()->setChecked(checked);
def retrieve(aClass, aKey=None)
void restoreFromState(QByteArray ba)
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
static void ensureInit(IVP1System *)
Helper for the Liquid Argon Calorimeter cell at the electrode level.
static bool hasTileGeometry()
static bool hasLArGeometry()
void userPickedNode(SoNode *pickedNode, SoPath *pickedPath)
QWidget * buildController()
virtual QByteArray saveState()
int electrode(const HWIdentifier id) const
Return an integer corresponding to the electrode number of an hardware electrode identifier.
The Athena Transient Store API.
void systemcreate(StoreGateSvc *detstore)
int zside(const HWIdentifier id) const
Return an integer corresponding to the side of an hardware electrode identifier.
int module(const HWIdentifier id) const
Return an integer corresponding to the module of an hardware electrode identifier.
void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)
void ensureBuildController()
QMap< QString, SoSwitch * > switchMap
QMap< QString, QCheckBox * > checkBoxMap
int detector(const HWIdentifier id) const
Return an integer corresponding to the detector of an hardware electrode identifier.
void buildPermanentSceneGraph(StoreGateSvc *detstore, SoSeparator *root)
int gap(const HWIdentifier id) const
Return an integer corresponding to the cell gap of an hardware electrode identifier.
int hv_eta(const HWIdentifier id) const
Return an integer corresponding to the high volatge eta sector of an hardware electrode identifier.
QMap< QCheckBox *, QString > checkBoxNamesMap
std::vector< HWIdentifier >::const_iterator electrode_end(void) const
std::vector< HWIdentifier >::const_iterator electrode_begin(void) const
Return an iterator pointing to a collection of electrode identifiers.
int hv_phi(const HWIdentifier id) const
Return an integer corresponding to the high voltage phi sector of an hardware electrode identifier.
void message(const QString &) const
QWidget * controllerWidget()
virtual void restoreFromState(QByteArray)