|
ATLAS Offline Software
|
Go to the documentation of this file.
44 #include <Inventor/nodes/SoSeparator.h>
45 #include <Inventor/nodes/SoMaterial.h>
46 #include <Inventor/nodes/SoSwitch.h>
47 #include <Inventor/nodes/SoComplexity.h>
48 #include <Inventor/nodes/SoLineSet.h>
49 #include <Inventor/nodes/SoVertexProperty.h>
50 #include "Inventor/nodes/SoDrawStyle.h"
51 #include "Inventor/nodes/SoLightModel.h"
52 #include <Inventor/nodes/SoCylinder.h>
53 #include <Inventor/SoPath.h>
54 #include <Inventor/nodes/SoFont.h>
67 #include <QTreeWidget>
109 QList<AODCollHandleBase*>
l;
110 for (
const QString&
name : T::availableCollections(
theclass)) {
126 QList<AODCollHandleBase*>
l;
128 l << createSpecificCollections<IParticleCollHandle_Jet>(
xAOD::Type::Jet);
132 l << createSpecificCollections<MissingEtCollHandle>(xAOD::Type::Other);
141 "System showing all (x)AOD objects.",
142 "Edward.Moyse@cern.ch, Riccardo.maria.bianchi@cern.ch, Sebastian.Andreas.Merkt@cern.ch"), m_d(
new Imp)
174 #ifndef BUILDVP1LIGHT
176 QString tooltype(
"Trk::ExtrapolationEngine");
181 for (
const QString&
value : existingExtrapolators)
191 emit signalLoadEvent(
this);
192 #endif // BUILDVP1LIGHT
360 if (
state.version()==0) {
362 message(
"Warning: State data has obsolete format - ignoring!");
365 if (
state.version()!=1) {
366 message(
"Warning: State data has wrong format - ignoring!");
378 state.disableUnrestoredChecks();
410 message(
"unexpected signal received in visibleObjectsChanged slot");
453 message(
"Unknown object clicked");
462 message(
"userSelectedSingleNode - ERROR, sel=!d->selObjects");
469 message(
"ERROR: Unknown handle from path or node.");
675 #ifndef BUILDVP1LIGHT
683 for (
auto tp : trackparticles){
694 QList<IParticleCollHandle_TrackParticle*> newcolls;
702 col->setVisible(
true);
707 #endif // BUILDVP1LIGHT
715 #ifndef BUILDVP1LIGHT
720 std::cout<<
"Got "<<segments.size() <<
" from " <<
typeid(sender()).
name()<<std::endl;
723 #endif // BUILDVP1LIGHT
735 std::ofstream
outfile (
"EventDump.json");
738 outfile<<
"\"event number\":234, \"run number\":234,\n";
745 message(
"WAAAAH! Not an AODCollHandleBase! Should never happen!");
752 if (ahandle->
xAODType()!=lastType) {
777 message(
"WAAAAH! Problem opening EventDump.json for output!");
779 message(
"Wrote visible objects to \'EventDump.json\'");
void setCommonData(AODSysCommonData *)
set pointer to the common data
AODHandleBase * getHandleFromNode(SoNode *node)
QTreeWidget * objBrowser() const
Returns a pointer to the Track Object Browser (if it exists)
void setExtrapolator(Trk::IExtrapolationEngine *e)
Electron_v1 Electron
Definition of the current "egamma version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
Base class for all AOD object collections This class primarily handles setting up the interface,...
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
VP1AODSystem(const QString &name="Analysis")
void restoreSettings(const QByteArray &)
const AODSystemController * controller() const
void systemcreate(StoreGateSvc *detstore)
unsigned calcTotalMomentumOfSelectedHandles(Amg::Vector3D &totmom, Amg::Vector3D &totpos, double &mass)
virtual void init(VP1MaterialButtonBase *matBut=0)
void updateSelectionMode()
static QString str(const QString &s)
QByteArray saveSettings() const
virtual void dumpToJSON(std::ofstream &) const
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
void userDeselectedSingleNode(SoCooperativeSelection *, SoNode *, SoPath *)
void updateShownTotMomentum()
virtual QByteArray saveState()
TrackParticle_v1 TrackParticle
Reference the current persistent version:
void registerSelectionNode(SoCooperativeSelection *)
The Athena Transient Store API.
void userSelectedSingleNode(SoCooperativeSelection *, SoNode *, SoPath *)
void updateAssociatedObjects(const QList< const xAOD::TrackParticle * > &)
const QString & name() const
void setLastSelectedHandle(AODHandleBase *h)
void ensureBuildController()
void userChangedSelection(SoCooperativeSelection *, QSet< SoNode * >, QSet< SoPath * >)
void visibleObjectsChanged()
void messageDebug(const QString &) const
xAOD::Type::ObjectType xAODType() const
Dummy implementation does nothing.
virtual QStringList clicked() const =0
Called when user selects the node (stringlist is displayed in messagebox).
Eigen::Matrix< double, 3, 1 > Vector3D
QList< AODCollHandleBase * > createCollections()
struct TBPatternUnitContext Muon
AODSysCommonData * common
QList< AODCollHandleBase * > createSpecificCollections(xAOD::Type::ObjectType type)
void unregisterSelectionNode(SoCooperativeSelection *)
void addHandle(AODHandleBase *)
void userPickedNode(SoNode *pickedNode, SoPath *pickedPath)
Reimplementing methods declared in IVP13DSystem.
void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)
Jet_v1 Jet
Definition of the current "jet version".
void restoreFromState(QByteArray)
void message(const QString &) const
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
QWidget * buildController()
void messageVerbose(const QString &) const
SoCooperativeSelection * selObjects
AODCollWidget * collWidget() const
Return widget which fills the collection selection list in the GUI (i.e. which finds and lists the av...
virtual void restoreFromState(QByteArray)
SoCooperativeSelection * selObjects() const