|
ATLAS Offline Software
|
#include <VP1TrackingGeometrySystem.h>
|
| VP1TrackingGeometrySystem () |
|
virtual | ~VP1TrackingGeometrySystem () |
|
void | buildPermanentSceneGraph (StoreGateSvc *detstore, SoSeparator *root) |
|
void | buildEventSceneGraph (StoreGateSvc *, SoSeparator *) |
|
QWidget * | buildController () |
|
virtual void | systemcreate (StoreGateSvc *detstore) |
|
void | ensureBuildController () |
|
void | updateGUI () |
|
virtual void | userPickedNode (SoNode *pickedNode, SoPath *pickedPath) |
|
virtual void | systemerase () |
|
virtual void | systemuncreate () |
|
void | warnOnDisabledNotifications () const |
|
void | registerCamera (SoCamera *camera) |
|
void | registerViewer (SoQtViewer *viewer) |
|
void | registerSelectionNode (SoCooperativeSelection *) |
|
void | unregisterSelectionNode (SoCooperativeSelection *) |
|
void | setUserSelectionNotificationsEnabled (SoCooperativeSelection *sel, bool enabled) |
|
virtual void | userSelectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
virtual void | userDeselectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
virtual void | userChangedSelection (SoCooperativeSelection *, QSet< SoNode * >, QSet< SoPath * >) |
|
virtual void | userClickedOnBgd () |
|
virtual void | deselectAll (SoCooperativeSelection *exception_sel=0) |
|
CamList | getCameraList () |
|
virtual QWidget * | buildExtraDisplayWidget () |
|
const QString & | name () const |
|
const QString & | information () const |
|
const QString & | contact_info () const |
|
QWidget * | controllerWidget () |
|
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 |
|
StoreGateSvc * | storeGate () const |
|
StoreGateSvc * | eventStore () const |
|
StoreGateSvc * | detectorStore () const |
|
ISvcLocator * | serviceLocator () const |
|
IToolSvc * | toolSvc () const |
|
State | state () const |
|
ActiveState | activeState () const |
|
|
void | processTrkVolume (const Trk::TrackingVolume *) |
|
void | processMsVolume (const Trk::TrackingVolume *, VP1ExtraSepLayerHelper *, VP1ExtraSepLayerHelper *) |
|
void | processTrkLayer (const Trk::Layer *, VP1ExtraSepLayerHelper *, unsigned int colorCode) |
|
void | processTrkSurface (const Trk::Surface *, VP1ExtraSepLayerHelper *, unsigned int colorCode) |
|
void | processMsLayDense (const Trk::TrackingVolume *tvol, VP1ExtraSepLayerHelper *sepHelper, VP1ExtraSepLayerHelper *layHelper, int color) |
|
QByteArray | saveState () |
|
void | restoreFromState (QByteArray ba) |
|
SoSeparator * | getSceneGraph () const |
|
void | create (StoreGateSvc *detstore) |
|
void | refresh (StoreGateSvc *storegate) |
|
void | erase () |
|
void | uncreate () |
|
void | disallowUpdateGUI () |
|
void | allowUpdateGUI () |
|
void | setChannel (IVP1ChannelWidget *) |
|
IVP1ChannelWidget * | channel () 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 &) |
|
Definition at line 34 of file VP1TrackingGeometrySystem.h.
◆ CamList
◆ CamListItr
◆ ActiveState
◆ State
Enumerator |
---|
CONSTRUCTED | |
REFRESHED | |
ERASED | |
UNCREATED | |
Definition at line 143 of file IVP1System.h.
◆ VP1TrackingGeometrySystem()
VP1TrackingGeometrySystem::VP1TrackingGeometrySystem |
( |
| ) |
|
◆ ~VP1TrackingGeometrySystem()
VP1TrackingGeometrySystem::~VP1TrackingGeometrySystem |
( |
| ) |
|
|
virtual |
Definition at line 460 of file VP1TrackingGeometrySystem.cxx.
465 for ( ; sepHelperIter != sepHelperIterEnd; ++sepHelperIter){
466 if ((*sepHelperIter)) {
467 SoSeparator *
sep = (*sepHelperIter)->topSeparator();
468 delete (*sepHelperIter);
◆ activateClickedOutside
void IVP13DSystem::activateClickedOutside |
( |
| ) |
|
|
privateslotinherited |
◆ activeState()
◆ allowUpdateGUI()
void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ buildController()
QWidget * VP1TrackingGeometrySystem::buildController |
( |
| ) |
|
|
virtual |
Reimplemented from IVP13DSystemSimple.
Definition at line 1315 of file VP1TrackingGeometrySystem.cxx.
1325 return new QLabel(
"Geometry not configured.");
1328 QWidget * controller =
new QWidget(
nullptr);
1329 Ui::TrackingGeometryControllerForm ui;
1330 ui.setupUi(controller);
1337 ui.groupBox_idandcalogeometry->setVisible(
false);
1340 ui.groupBox_muonframe->setVisible(
false);
1341 ui.groupBox_muonactivematerial->setVisible(
false);
1342 ui.groupBox_muoninertmaterial->setVisible(
false);
1399 connect( ui.lineEdit_TrackingGeometrySvcName, SIGNAL( returnPressed()),
1400 ui.pushButton_Retrieve, SIGNAL( clicked()));
1401 connect( ui.lineEdit_TrackingGeometryName, SIGNAL( returnPressed()),
1402 ui.pushButton_Retrieve, SIGNAL( clicked()));
1479 for ( ; chbMapIter != chbMapIterEnd; ++chbMapIter ){
1480 QCheckBox* checkBox =
dynamic_cast<QCheckBox*
>((chbMapIter)->
first);
1481 if (checkBox) checkBox->setChecked( ((chbMapIter)->second).
second );
◆ buildEventSceneGraph()
void VP1TrackingGeometrySystem::buildEventSceneGraph |
( |
StoreGateSvc * |
, |
|
|
SoSeparator * |
|
|
) |
| |
|
inlinevirtual |
◆ buildExtraDisplayWidget()
virtual QWidget* IVP13DSystem::buildExtraDisplayWidget |
( |
| ) |
|
|
inlinevirtualinherited |
◆ buildPermanentSceneGraph()
void VP1TrackingGeometrySystem::buildPermanentSceneGraph |
( |
StoreGateSvc * |
detstore, |
|
|
SoSeparator * |
root |
|
) |
| |
|
virtual |
◆ changeTopLevelView
void VP1TrackingGeometrySystem::changeTopLevelView |
( |
| ) |
|
|
privateslot |
Definition at line 1489 of file VP1TrackingGeometrySystem.cxx.
1556 if ( chbMapIter != chbMapIterEnd ) {
1557 QCheckBox* checkBox =
dynamic_cast<QCheckBox*
>((chbMapIter)->
first);
1558 SoSwitch* soswitch = ((chbMapIter)->
second).first;
1559 if (checkBox && soswitch)
1560 soswitch->whichChild = checkBox->isChecked() ? SO_SWITCH_ALL : SO_SWITCH_NONE;
1562 message(
"ERROR: Unknown checkbox");
◆ channel()
◆ contact_info()
const QString & IVP1System::contact_info |
( |
| ) |
const |
|
inherited |
◆ controllerWidget()
QWidget * IVP1System::controllerWidget |
( |
| ) |
|
|
inherited |
◆ create()
◆ deleteController()
void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ deselectAll()
Reimplemented in VP1PrepRawDataSystem.
Definition at line 331 of file IVP13DSystem.cxx.
335 if (
it->second!=
this)
337 if (
it->first!=exception_sel) {
338 if (
it->first->policy.getValue()!=SoCooperativeSelection::SINGLE) {
340 it->first->deselectAll();
343 if (
it->first->getList()->getLength()==1) {
345 SoPath *
path =
static_cast<SoPath*
>(
it->first->getList()->get(0));
347 it->first->deselectAll();
◆ detectorStore()
◆ disallowUpdateGUI()
void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ ensureBuildController()
void IVP13DSystemSimple::ensureBuildController |
( |
| ) |
|
|
inherited |
◆ erase()
void IVP13DSystemSimple::erase |
( |
| ) |
|
|
privatevirtualinherited |
◆ eventStore()
◆ getCameraList()
std::set< SoCamera * > IVP13DSystem::getCameraList |
( |
| ) |
|
|
inherited |
Definition at line 395 of file IVP13DSystem.cxx.
400 SoCamera*cam = (*it)->getCamera();
402 cameralist.insert(cam);
◆ getSceneGraph()
SoSeparator * IVP13DSystemSimple::getSceneGraph |
( |
| ) |
const |
|
privatevirtualinherited |
◆ inactiveSystemTurnedActive
void IVP1System::inactiveSystemTurnedActive |
( |
| ) |
|
|
signalinherited |
◆ information()
const QString & IVP1System::information |
( |
| ) |
const |
|
inherited |
◆ isRefreshing()
bool IVP1System::isRefreshing |
( |
| ) |
|
|
privateinherited |
◆ itemFromSystemSelected
void IVP13DSystem::itemFromSystemSelected |
( |
| ) |
|
|
signalinherited |
◆ 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 |
◆ processMsLayDense()
Definition at line 1261 of file VP1TrackingGeometrySystem.cxx.
1267 if (confinedLayers){
1271 for ( ; layerIter != layerVector.end(); ++layerIter){
1275 if (
node && layHelper ) {
1276 if ((*layerIter)->layerType()>0)
1286 if (!confALays.empty()) {
1288 for (
const Trk::Layer*
const layerIter : confALays) {
1292 layerIter->surfaceRepresentation());
1293 if (
node && layHelper) {
1294 if (layerIter->layerType() > 0)
1306 if (!confVols.empty()){
1307 auto volIter = confVols.begin();
1308 for ( ; volIter != confVols.end(); ++volIter){
1309 if (*volIter && sepHelper )
processMsVolume( *volIter,
nullptr, layHelper );
◆ processMsVolume()
Definition at line 1140 of file VP1TrackingGeometrySystem.cxx.
1152 message(
"Error: Volume shape not implemented");
1156 if (
name.substr(0,4) ==
"Muon" && tvol->
colorCode() > 0 ) {
1164 unsigned int colorCode = 17;
1165 if (
name.substr(0,3)==
"MDT") colorCode = 2;
1166 if (
name.substr(0,3)==
"RPC") colorCode = 4;
1167 if (
name.substr(0,2)==
"CS") colorCode = 5;
1168 if (
name.substr(0,1)==
"T") colorCode = 6;
1171 }
else if ( layHelper ) {
1172 unsigned int colorCode = 13;
1179 if (confinedVolumes){
1183 for ( ; volIter != volIterEnd; ++volIter)
1189 if (!detVols.empty()) {
1192 for ( ;dIter!=detVols.end(); ++dIter) {
1193 if ( (tvol->
inside((*dIter)->trackingVolume()->center(),0.) || (*dIter)->trackingVolume()->center().perp()<0.001) ) {
1194 std::string
name = (*dIter)->name();
1211 else if (
name.substr(0,2) ==
"BT" ||
name.substr(0,6) ==
"EdgeBT" ||
name.substr(0,6) ==
"HeadBT" )
1213 else if (
name.substr(0,3) ==
"BAR" )
1216 else if (
name.substr(0,9) ==
"ForwardSh" ||
name.substr(0,8) ==
"ToroidSh" ||
name.substr(0,6) ==
"DiskSh" )
1218 else if (
name.substr(0,5) ==
"StdFe" ||
name.substr(0,6) ==
"ExtrFe" ||
name.substr(0,6) ==
"ConnFe" )
1220 else if (
name.substr(0,4) ==
"Feet" )
1225 std::string
name = (*dIter)->name();
1227 if (
name.substr(0,3) ==
"BAR" &&
1228 name.substr(0,18) ==
"BAR_ToroidBAR_Cold" )
1231 if (sepHelper)
processMsVolume( (*dIter)->trackingVolume(), sepHelper, layHelper);
1232 sepHelper =
nullptr; layHelper =
nullptr;
◆ processTrkLayer()
Definition at line 1238 of file VP1TrackingGeometrySystem.cxx.
1242 if (!tlayer)
return;
1246 std::cout <<
"Adding Layer to Separator helper: " << sepLayerHelper << std::endl;
◆ processTrkSurface()
◆ processTrkVolume()
current separator helpers
Definition at line 1006 of file VP1TrackingGeometrySystem.cxx.
1013 message(
"Error: Volume shape not implemented");
1017 QString volumeName(tvol->
volumeName().c_str());
1025 if (confinedLayers){
1029 for ( ; layerIter != layerVector.end(); ++layerIter){
1037 if (!layIndex.
value())
continue;
1046 if ( volumeName.contains(
"BeamPipe") > 0 ) {
1048 }
else if (volumeName.contains(
"Pixel") > 0 ) {
1050 if ( volumeName.contains(
"Barrel") > 0 ){
1054 }
else if ( volumeName.contains(
"Endcap") > 0 ){
1056 if ( volumeName.contains(
"Pos") > 0){
1064 }
else if ((volumeName.contains(
"SCT") > 0) or (volumeName.contains(
"Strip") > 0)) {
1066 if ( volumeName.contains(
"Barrel") > 0 ){
1070 }
else if ( volumeName.contains(
"Endcap") > 0 ){
1072 if ( volumeName.contains(
"Pos") > 0){
1080 }
else if (volumeName.contains(
"TRT") > 0) {
1082 if ( volumeName.contains(
"Barrel") > 0 ){
1086 }
else if ( volumeName.contains(
"Endcap") > 0 ){
1088 if ( volumeName.contains(
"Pos") > 0 ){
1097 if ( volumeName.contains(
"Barrel") > 0 ){
1100 }
else if ( volumeName.contains(
"Endcap") > 0 ){
1102 if ( volumeName.contains(
"Pos") > 0 ){
1110 std::cout <<
" VolumeName " << tvol->
volumeName() <<
" / seperators : " << layerSepHelper <<
" / " << surfaceSepHelper << std::endl;
1115 if (layerSubSurfaces && surfaceSepHelper){
1118 for ( ; surfaceIter != surfaceVector.end(); ++surfaceIter ){
1130 if (confinedVolumes){
1134 for ( ; volIter != volIterEnd; ++volIter)
◆ refresh()
void IVP13DSystemSimple::refresh |
( |
StoreGateSvc * |
storegate | ) |
|
|
privatevirtualinherited |
◆ registerCamera()
void IVP13DSystem::registerCamera |
( |
SoCamera * |
camera | ) |
|
|
inherited |
◆ 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.");
◆ registerSelectionNode()
Definition at line 257 of file IVP13DSystem.cxx.
260 message(
"registerSelectionNode Error: NULL selection pointer!");
264 message(
"registerSelectionNode Error: Trying to register selection node more than once!");
◆ registerViewer()
void IVP13DSystem::registerViewer |
( |
SoQtViewer * |
viewer | ) |
|
|
inherited |
◆ restoreFromState()
void VP1TrackingGeometrySystem::restoreFromState |
( |
QByteArray |
ba | ) |
|
|
privatevirtual |
sroe: none of the following code was reachable, coverity defect 17185 Setup stream for getting the contents of the byteArray: QBuffer buffer(&ba); buffer.open(QIODevice::ReadOnly); QDataStream state(&buffer);
Check version and pass on state info to base class: qint32 version; state >> version; if (version!=0) { message("Warning: State data in .vp1 file is in wrong format - ignoring!"); return; } ensureBuildController();
QByteArray basestate; state >> basestate; IVP13DSystemSimple::restoreFromState(basestate);
state >> m_d->initialTrackingGeometrySvcName; state >> m_d->initialTrackingGeometryName; m_d->lineEdit_TrackingGeometrySvcName->setText( m_d->initialTrackingGeometrySvcName); m_d->lineEdit_TrackingGeometryName->setText( m_d->initialTrackingGeometryName);
retrieveTrackingGeometry();
Reimplemented from IVP1System.
Definition at line 1604 of file VP1TrackingGeometrySystem.cxx.
1606 messageDebug(
"WARNING: VP1TrackingGeometrySystem persistification disabled for now due to crashes!");
◆ retrieveTrackingGeometry
void VP1TrackingGeometrySystem::retrieveTrackingGeometry |
( |
| ) |
|
|
privateslot |
Definition at line 486 of file VP1TrackingGeometrySystem.cxx.
490 message(
"TrackingGeometry has already been successfully retrieved");
502 message(
"Error: Geometry not configured!");
507 message(
"Error: retrieveTrackingGeometry() invoked before controller built!");
519 message(
"Error: Got NULL pointer to the service locator!");
526 message(
"Trying to retrieve TrackingGeometrySvc '" +
529 auto trackingGeometrySvc =
532 if( !trackingGeometrySvc )
534 message(
"Error: Could not retrieve TrackingGeometrySvc '" +
536 "Check spelling and if you have added the correct jobOptions fragment");
540 message(
"Successfully retrieved TrackingGeometrySvc '" +
549 message(
"Trying to retrieve default TrackingGeometry");
550 trackingGeometry = trackingGeometrySvc->trackingGeometry();
552 if( !trackingGeometry)
554 message(
"Error: Could not retrieve default TrackingGeometry");
559 message(
"Successfully retrieved default TrackingGeometry");
564 message(
"Trying to retrieve TrackingGeometry '" +
566 "' from DetectorStore");
569 message(
"Error: Got NULL detectorstore.");
575 message(
"Error: Could not retrieve TrackingGeometry '" +
577 "' from DetectorStore.");
582 message(
"Successfully retrieved TrackingGeometry '" +
641 SoSeparator* sep_beamPipe =
new SoSeparator(); sep_beamPipe->ref();
642 SoSeparator* sep_pixSurfBarrel =
new SoSeparator(); sep_pixSurfBarrel->ref();
643 SoSeparator* sep_pixSurfECA =
new SoSeparator(); sep_pixSurfECA->ref();
644 SoSeparator* sep_pixSurfECC =
new SoSeparator(); sep_pixSurfECC->ref();
645 SoSeparator* sep_pixLayBarrel =
new SoSeparator(); sep_pixLayBarrel->ref();
646 SoSeparator* sep_pixLayECA =
new SoSeparator(); sep_pixLayECA->ref();
647 SoSeparator* sep_pixLayECC =
new SoSeparator(); sep_pixLayECC->ref();
648 SoSeparator* sep_sctSurfBarrel =
new SoSeparator(); sep_sctSurfBarrel->ref();
649 SoSeparator* sep_sctSurfECA =
new SoSeparator(); sep_sctSurfECA->ref();
650 SoSeparator* sep_sctSurfECC =
new SoSeparator(); sep_sctSurfECC->ref();
651 SoSeparator* sep_sctLayBarrel =
new SoSeparator(); sep_sctLayBarrel->ref();
652 SoSeparator* sep_sctLayECA =
new SoSeparator(); sep_sctLayECA->ref();
653 SoSeparator* sep_sctLayECC =
new SoSeparator(); sep_sctLayECC->ref();
654 SoSeparator* sep_trtSurfBarrel =
new SoSeparator(); sep_trtSurfBarrel->ref();
655 SoSeparator* sep_trtSurfECA =
new SoSeparator(); sep_trtSurfECA->ref();
656 SoSeparator* sep_trtSurfECC =
new SoSeparator(); sep_trtSurfECC->ref();
657 SoSeparator* sep_trtLayBarrel =
new SoSeparator(); sep_trtLayBarrel->ref();
658 SoSeparator* sep_trtLayECA =
new SoSeparator(); sep_trtLayECA->ref();
659 SoSeparator* sep_trtLayECC =
new SoSeparator(); sep_trtLayECC->ref();
660 SoSeparator* sep_passiveLayBarrel =
new SoSeparator(); sep_passiveLayBarrel->ref();
661 SoSeparator* sep_passiveLayECA =
new SoSeparator(); sep_passiveLayECA->ref();
662 SoSeparator* sep_passiveLayECC =
new SoSeparator(); sep_passiveLayECC->ref();
751 SoSeparator * sep_vol =
new SoSeparator; sep_vol->ref();
752 SoSeparator * sep_msB =
new SoSeparator; sep_msB->ref();
753 SoSeparator * sep_msI =
new SoSeparator; sep_msI->ref();
754 SoSeparator * sep_msO =
new SoSeparator; sep_msO->ref();
755 SoSeparator * sep_msBI =
new SoSeparator; sep_msBI->ref();
756 SoSeparator * sep_msBM =
new SoSeparator; sep_msBM->ref();
757 SoSeparator * sep_msBO =
new SoSeparator; sep_msBO->ref();
758 SoSeparator * sep_msEI =
new SoSeparator; sep_msEI->ref();
759 SoSeparator * sep_msEM =
new SoSeparator; sep_msEM->ref();
760 SoSeparator * sep_msEO =
new SoSeparator; sep_msEO->ref();
761 SoSeparator * sep_msCS =
new SoSeparator; sep_msCS->ref();
762 SoSeparator * sep_msTG =
new SoSeparator; sep_msTG->ref();
763 SoSeparator * sep_msBIlay =
new SoSeparator; sep_msBIlay->ref();
764 SoSeparator * sep_msBMlay =
new SoSeparator; sep_msBMlay->ref();
765 SoSeparator * sep_msBOlay =
new SoSeparator; sep_msBOlay->ref();
766 SoSeparator * sep_msEIlay =
new SoSeparator; sep_msEIlay->ref();
767 SoSeparator * sep_msEMlay =
new SoSeparator; sep_msEMlay->ref();
768 SoSeparator * sep_msEOlay =
new SoSeparator; sep_msEOlay->ref();
769 SoSeparator * sep_msCSlay =
new SoSeparator; sep_msCSlay->ref();
770 SoSeparator * sep_msTGlay =
new SoSeparator; sep_msTGlay->ref();
771 SoSeparator * sep_msBTenv =
new SoSeparator; sep_msBTenv->ref();
772 SoSeparator * sep_msETenv =
new SoSeparator; sep_msETenv->ref();
773 SoSeparator * sep_msShenv =
new SoSeparator; sep_msShenv->ref();
774 SoSeparator * sep_msFeenv =
new SoSeparator; sep_msFeenv->ref();
775 SoSeparator * sep_msRaenv =
new SoSeparator; sep_msRaenv->ref();
776 SoSeparator * sep_msBTdl =
new SoSeparator; sep_msBTdl->ref();
777 SoSeparator * sep_msETdl =
new SoSeparator; sep_msETdl->ref();
778 SoSeparator * sep_msShdl =
new SoSeparator; sep_msShdl->ref();
779 SoSeparator * sep_msFedl =
new SoSeparator; sep_msFedl->ref();
780 SoSeparator * sep_msRadl =
new SoSeparator; sep_msRadl->ref();
867 std::cout <<
"To here !" << std::endl;
871 if (!highestVolume) {
872 message(
"Error: No highest tracking volume registered.");
886 SoRotationXYZ* rotClip =
new SoRotationXYZ;
888 rotClip->angle.setValue( -
M_PI/2.);
◆ saveState()
QByteArray VP1TrackingGeometrySystem::saveState |
( |
| ) |
|
|
privatevirtual |
sroe: unreachable code, coverity 17207 ensureBuildController(); Setup stream writing to a byteArray: QByteArray byteArray; QBuffer buffer(&byteArray); buffer.open(QIODevice::WriteOnly); QDataStream out(&buffer);
Write Data:
Version & base state: out << (qint32)0; //version out << IVP13DSystemSimple::saveState();//Always include state info from the base class.
out << m_d->lineEdit_TrackingGeometrySvcName->text(); out << m_d->lineEdit_TrackingGeometryName->text();
std::map<QObject*,std::pair<SoSwitch*,bool> >::iterator chbMapIter = m_d->checkBoxSwitchMap.begin(); std::map<QObject*,std::pair<SoSwitch*,bool> >::iterator chbMapIterEnd = m_d->checkBoxSwitchMap.end(); for ( ; chbMapIter != chbMapIterEnd; ++chbMapIter ){ QCheckBox* checkBox = dynamic_cast<QCheckBox*>((chbMapIter)->first); if (checkBox) out << checkBox->isChecked();
}
Last step buffer.close(); return byteArray;
Reimplemented from IVP1System.
Definition at line 1567 of file VP1TrackingGeometrySystem.cxx.
1570 messageDebug(
"WARNING: VP1TrackingGeometrySystem persistification disabled for now due to crashes!");
◆ 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()
◆ setUserSelectionNotificationsEnabled()
Definition at line 310 of file IVP13DSystem.cxx.
313 message(
"setUserSelectionNotificationsEnabled Error: NULL selection pointer!");
317 message(
"setUserSelectionNotificationsEnabled Error: Called for selection which was never registered!");
◆ 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 |
◆ systemcreate()
void IVP13DSystemSimple::systemcreate |
( |
StoreGateSvc * |
detstore | ) |
|
|
virtualinherited |
◆ systemerase()
void IVP13DSystemSimple::systemerase |
( |
| ) |
|
|
virtualinherited |
◆ systemuncreate()
void IVP13DSystemSimple::systemuncreate |
( |
| ) |
|
|
virtualinherited |
◆ toolSvc()
IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ uncreate()
void IVP13DSystemSimple::uncreate |
( |
| ) |
|
|
privatevirtualinherited |
◆ unregisterSelectionNode()
Definition at line 281 of file IVP13DSystem.cxx.
284 message(
"unregisterSelectionNode Error: NULL selection pointer!");
288 message(
"registerSelectionNode Error: Trying to unregister unknown selection node!");
◆ updateGUI()
void IVP13DSystemSimple::updateGUI |
( |
| ) |
|
|
inlineinherited |
◆ userChangedSelection()
◆ userClickedOnBgd()
void IVP13DSystem::userClickedOnBgd |
( |
| ) |
|
|
virtualinherited |
◆ userDeselectedSingleNode()
◆ userPickedNode()
void IVP13DSystemSimple::userPickedNode |
( |
SoNode * |
pickedNode, |
|
|
SoPath * |
pickedPath |
|
) |
| |
|
virtualinherited |
Reimplemented in VP1GeometrySystem, VP1AODSystem, VP1TrackSystem, TrackSystemDisplay, VP1PrepRawDataSystem, Example3DSystem5, VP1CaloReadoutSystem, Example3DSystem4, VP1CaloHitLegoSystem, VP1CaloLegoSystem, Example3DSystem3, VP1RawDataSystem, VP1CaloClusterSystem, VP1MissingEtSystem, VP1HVLegoSystem, TrackingSurfacesSystem, VP1CaloCellSystem, and VP1VertexSystem.
Definition at line 26 of file IVP13DSystemSimple.cxx.
◆ userSelectedSingleNode()
◆ verbose()
static bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnOnDisabledNotifications()
void IVP13DSystemSimple::warnOnDisabledNotifications |
( |
| ) |
const |
|
inherited |
Definition at line 221 of file IVP13DSystemSimple.cxx.
223 QList<SoNode*> nodesR;
224 QList<SoNode*> nodesE;
227 if (!nodesR.isEmpty()) {
228 message(
"WARNING: Found "+
str(nodesR.count())+
" node"+QString(nodesR.count()>1?
"s":0)+
" with disabled notifications in permanent scenegraph:");
229 for (SoNode *
node : nodesR)
230 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
232 if (!nodesE.isEmpty()) {
233 message(
"WARNING: Found "+
str(nodesE.count())+
" node"+QString(nodesE.count()>1?
"s":0)+
" with disabled notifications in event scenegraph:");
234 for (SoNode *
node : nodesE)
235 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
◆ m_d
Imp* VP1TrackingGeometrySystem::m_d |
|
private |
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
virtual void systemuncreate()
void processTrkLayer(const Trk::Layer *, VP1ExtraSepLayerHelper *, unsigned int colorCode)
VP1ExtraSepLayerHelper * sephelper_pixLayBarrel
ColorCodeConverter colorCodeConverter
VP1ExtraSepLayerHelper * sephelper_passiveLayBarrel
VP1ExtraSepLayerHelper * sephelper_pixSurfECA
VP1ExtraSepLayerHelper * sephelper_sctSurfECC
void processMsVolume(const Trk::TrackingVolume *, VP1ExtraSepLayerHelper *, VP1ExtraSepLayerHelper *)
const QString contact_info
VP1ExtraSepLayerHelper * sephelper_msRaenv
VP1ExtraSepLayerHelper * sephelper_msB
QCheckBox * checkBox_pixLayECC
VP1ExtraSepLayerHelper * sephelper_msEI
static std::map< SoCooperativeSelection *, IVP13DSystem * > selection2system
QCheckBox * checkBox_pixLayBarrel
SoSwitch * passiveLayBarrelSwitch
QPushButton * pushButton_Retrieve
path
python interpreter configuration --------------------------------------—
VP1ExtraSepLayerHelper * sephelper_sctLayECA
static void made_selection(void *userdata, SoPath *path)
std::string find(const std::string &s)
return a remapped string
IVP13DSystemSimple(const QString &name, const QString &information, const QString &contact_info)
std::set< SoQtViewer * > viewers
SoSwitch * trtSurfECCSwitch
VP1ExtraSepLayerHelper * sephelper_msEMlay
virtual QWidget * buildController()
void processTrkVolume(const Trk::TrackingVolume *)
QCheckBox * checkBox_passiveLayECA
SoSwitch * pixLayECASwitch
static void ensureInit(IVP1System *)
bool inside(const Amg::Vector3D &gp, double tol=0.) const
Inside() method for checks.
VP1ExtraSepLayerHelper * sephelper_msFedl
VP1ExtraSepLayerHelper * sephelper_passiveLayECA
QCheckBox * checkBox_msEMvol
static bool hasTileGeometry()
QCheckBox * checkBox_trtSurfECA
QCheckBox * checkBox_msEOvol
static bool hasLArGeometry()
QCheckBox * checkBox_pixLayECA
QCheckBox * checkBox_msEIlay
VP1ExtraSepLayerHelper * sephelper_msEOlay
QLineEdit * lineEdit_TrackingGeometryName
QCheckBox * checkBox_trtSurfECC
VP1ExtraSepLayerHelper * sephelper_msFeenv
QCheckBox * checkBox_trtLayBarrel
ArraySpan< DetachedTrackingVolume const *const > confinedDetachedVolumes() const
Return detached subVolumes - not the ownership.
void inactiveSystemTurnedActive()
QLineEdit * lineEdit_TrackingGeometrySvcName
void changeTopLevelView()
VP1ExtraSepLayerHelper * sephelper_msCSlay
static void clickedoutside(void *userdata, SoCooperativeSelection *sel)
QCheckBox * checkBox_msEOlay
VP1ExtraSepLayerHelper * sephelper_msO
VP1ExtraSepLayerHelper * sephelper_msETenv
QCheckBox * checkBox_TrackingVolumes
QCheckBox * checkBox_msBTenv
VP1ExtraSepLayerHelper * sephelper_sctLayBarrel
SoSwitch * sctSurfECASwitch
QCheckBox * checkBox_msCSlay
static QString str(const QString &s)
virtual void buildPermanentSceneGraph(StoreGateSvc *detstore, SoSeparator *root)
VP1ExtraSepLayerHelper * sephelper_msEM
SoSwitch * pixLayECCSwitch
VP1ExtraSepLayerHelper * sephelper_pixSurfECC
QCheckBox * checkBox_msCSvol
QCheckBox * checkBox_passiveLayBarrel
static const bool s_vp1verbose
VP1ExtraSepLayerHelper * sephelper_trtLayECA
VP1ExtraSepLayerHelper * sephelper_trtSurfECA
QCheckBox * checkBox_msBIlay
QCheckBox * checkBox_sctSurfECC
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
std::map< QObject *, std::pair< SoSwitch *, bool > > checkBoxSwitchMap
const LayerArray * confinedLayers() const
Return the subLayer array.
void processMsLayDense(const Trk::TrackingVolume *tvol, VP1ExtraSepLayerHelper *sepHelper, VP1ExtraSepLayerHelper *layHelper, int color)
SoCooperativeSelection * root
virtual void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)=0
QCheckBox * checkBox_msETdl
QCheckBox * checkBox_msTGlay
unsigned int colorCode() const
Get the color code.
VP1ExtraSepLayerHelper * sephelper_msBO
SoNode * translateTrackingVolume(const Trk::TrackingVolume &tvol) const
const TrackingVolume * highestTrackingVolume() const
return the world
virtual const Surface & surfaceRepresentation() const =0
Transforms the layer into a Surface representation for extrapolation.
static const char * prefix_msg()
SurfaceToSoNode * surface2sonode
const QString information
static void start_changeselection(void *userdata, SoSelection *sel)
QCheckBox * checkBox_beamPipe
ArraySpan< Layer const *const > confinedArbitraryLayers() const
Return the confined subLayer array.
SoSwitch * trtSurfBarrelSwitch
VP1ExtraSepLayerHelper * sephelper_msShdl
virtual void systemerase()
ArraySpan< TrackingVolume const *const > confinedDenseVolumes() const
Return unordered subVolumes - not the ownership.
SoSwitch * passiveLayECCSwitch
VP1ExtraSepLayerHelper * sephelper_msBTdl
static bool hasSCTGeometry()
VP1ExtraSepLayerHelper * sephelper_vol
ISvcLocator * serviceLocator() const
SoNode * translateSurface(const Trk::Surface &sf, const bool &simple=false) const
const QString & name() const
VP1ExtraSepLayerHelper * sephelper_msBOlay
QCheckBox * checkBox_msRaenv
VP1ExtraSepLayerHelper * sephelper_msTGlay
const Amg::Vector3D & center() const
returns the center of the volume
QCheckBox * checkBox_msTGvol
SoSwitch * trtLayECCSwitch
virtual void systemcreate(StoreGateSvc *detstore)
std::vector< std::string > surfacesNames
QCheckBox * checkBox_msEMlay
void ensureBuildController()
QString initialTrackingGeometryName
VP1ExtraSepLayerHelper * sephelper_trtLayECC
static bool hasTRTGeometry()
StoreGateSvc * eventStore() const
int value() const
layerIndex expressed in an integer
QCheckBox * checkBox_msBOvol
QCheckBox * checkBox_msETenv
void sysmessage(QString) const
VP1ExtraSepLayerHelper * sephelper_msEO
QCheckBox * checkBox_sctLayECA
QCheckBox * checkBox_msBTdl
static ISvcLocator * serviceLocator()
QCheckBox * checkBox_msEIvol
static StoreGateSvc * eventStore()
static QColor sbcol2qcol(const SbColor &)
const std::string & volumeName() const
Returns the VolumeName - for debug reason, might be depreciated later.
std::set< SoCamera * > staticcameras
QCheckBox * checkBox_sctSurfBarrel
SoSwitch * trtLayECASwitch
SoSwitch * passiveLayECASwitch
void messageDebug(const QString &) const
StoreGateSvc * detectorStore() const
static IToolSvc * toolSvc()
QCheckBox * checkBox_trtLayECC
VP1ExtraSepLayerHelper * sephelper_beamPipe
SoSwitch * pixSurfECASwitch
virtual BinnedArraySpan< T *const > arrayObjects()=0
Return all objects of the Array non-const we can still modify the T.
VP1ExtraSepLayerHelper * sephelper_msTG
void getNodesWithDisabledNotifications(SoGroup *, QList< SoNode * > &) const
static const char * prefix_debug()
void processTrkSurface(const Trk::Surface *, VP1ExtraSepLayerHelper *, unsigned int colorCode)
VP1ExtraSepLayerHelper * sephelper_msCS
VP1ExtraSepLayerHelper * sephelper_trtSurfBarrel
void registerController(QWidget *)
VP1ExtraSepLayerHelper * sephelper_msBIlay
QCheckBox * checkBox_msFedl
VP1ExtraSepLayerHelper * sephelper_msShenv
QCheckBox * checkBox_msFeenv
VP1ExtraSepLayerHelper * sephelper_passiveLayECC
SoSwitch * sctLayECASwitch
VP1ExtraSepLayerHelper * sephelper_msETdl
VP1ExtraSepLayerHelper * sephelper_msEIlay
QCheckBox * checkBox_pixSurfECA
QCheckBox * checkBox_msRadl
static const char * prefix_verbose()
TrackingVolumeToSoNode * trackvol2sonode
SoSwitch * sctSurfECCSwitch
SoSwitch * sctLayECCSwitch
void retrieveTrackingGeometry()
SoSwitch * pixLayBarrelSwitch
static void made_deselection(void *userdata, SoPath *path)
QCheckBox * checkBox_MuonStaticFrameB
QCheckBox * checkBox_trtLayECA
QString initialTrackingGeometrySvcName
IVP1ChannelWidget * channel
void warnOnDisabledNotifications() const
VP1ExtraSepLayerHelper * sephelper_pixSurfBarrel
const TrackingVolumeArray * confinedVolumes() const
Return the subLayer array.
QCheckBox * checkBox_msBOlay
QCheckBox * checkBox_sctLayBarrel
QCheckBox * checkBox_msShenv
SoSwitch * pixSurfBarrelSwitch
QSet< SoCooperativeSelection * > selectionsWithDisabledNotifications
VP1ExtraSepLayerHelper * sephelper_msBM
VP1ExtraSepLayerHelper * sephelper_pixLayECA
const TrackingVolume * trackingVolume(const std::string &name) const
return the tracking Volume by name, 0 if it doesn't exist
VP1ExtraSepLayerHelper * sephelper_trtLayBarrel
SoSwitch * sctLayBarrelSwitch
VP1ExtraSepLayerHelper * sephelper_msRadl
VP1ExtraSepLayerHelper * sephelper_msBTenv
SoMaterial * getMaterialFromColorCode(unsigned int colorCode=red)
static void finished_changeselection(void *userdata, SoSelection *sel)
VP1ExtraSepLayerHelper * sephelper_sctLayECC
VP1ExtraSepLayerHelper * sephelper_sctSurfECA
SoSwitch * beamPipeSwitch
QCheckBox * checkBox_msBIvol
VP1ExtraSepLayerHelper * sephelper_pixLayECC
virtual void userClickedOnBgd()
QCheckBox * checkBox_pixSurfECC
VP1ExtraSepLayerHelper * sephelper_trtSurfECC
QCheckBox * checkBox_pixSurfBarrel
SoSwitch * sctSurfBarrelSwitch
QCheckBox * checkBox_MuonStaticFrameO
VP1ExtraSepLayerHelper * sephelper_msI
VP1ExtraSepLayerHelper * sephelper_msBMlay
QCheckBox * checkBox_trtSurfBarrel
QCheckBox * checkBox_sctLayECC
static bool hasPixelGeometry()
bool clickedoutsideScheduled
SoSwitch * trtLayBarrelSwitch
bool canregistercontroller
static StoreGateSvc * detectorStore()
QCheckBox * checkBox_passiveLayECC
QCheckBox * checkBox_sctSurfECA
VP1ExtraSepLayerHelper * sephelper_sctSurfBarrel
SoSwitch * trtSurfECASwitch
static bool hasMuonGeometry()
std::vector< VP1ExtraSepLayerHelper * > sepHelperContainer
std::span< T > BinnedArraySpan
QCheckBox * checkBox_ClipPlane
VP1ExtraSepLayerHelper * sephelper_msBI
void message(const QString &) const
void messageVerbose(const QString &) const
QCheckBox * checkBox_msBMlay
SoSwitch * pixSurfECCSwitch
QCheckBox * checkBox_MuonStaticFrameI
QCheckBox * checkBox_msBMvol
QCheckBox * checkBox_msShdl