|
ATLAS Offline Software
|
Go to the documentation of this file.
27 #endif // BUILDVP1LIGHT
30 #include <QStringList>
33 #include <Inventor/C/errors/debugerror.h>
34 #include <Inventor/nodes/SoSeparator.h>
35 #include <Inventor/nodes/SoSwitch.h>
36 #include <Inventor/nodes/SoMaterial.h>
37 #include "Inventor/nodes/SoDrawStyle.h"
38 #include "Inventor/nodes/SoLightModel.h"
44 #endif // BUILDVP1LIGHT
47 #if defined BUILDVP1LIGHT
57 #endif // BUILDVP1LIGHT
85 QString safetext(
text());
86 safetext.replace(
' ',
'_');
87 safetext.replace(
'[',
'_');
88 safetext.replace(
']',
'_');
89 safetext.replace(
'/',
'_');
90 safetext.replace(
'.',
'_');
91 safetext.replace(
',',
'_');
92 safetext.replace(
'<',
'_');
93 safetext.replace(
'>',
'_');
94 safetext.replace(
'&',
'_');
168 messageVerbose(
"No collSettingsButton set! Can't call init(), so crash is imminent...");
177 messageVerbose(
"not loading Electron collection - contains associated objects.");
185 #if defined BUILDVP1LIGHT
188 QString errMsg =
"Failed to retrieve " +
name();
189 message(
"Error: Could not retrieve collection with key="+
name());
194 message(
"Error: Could not retrieve track particle collection with key="+
name());
197 #endif // BUILDVP1LIGHT
203 if( ! coll->hasStore() ) {
204 message(
"No auxiliary store got associated to the Electron container with key: " +
name());
218 messageDebug(
"WARNING: Ignoring null Electron pointer.");
221 if ((*it)->charge()==0.0) {
222 messageDebug(
"WARNING: Ignoring Electron which claims to be neutral (charge()==0.0).");
226 std::cout <<
"elHandle ---> " << elH->
electron().
eta() <<
", "
254 messageVerbose(
"IParticleCollHandle_Electron::propagationOptionsChanged");
259 str <<
"\""<<
name().toLatin1().data()<<
"\":{";
263 if (handle->visible()) {
265 handle->dumpToJSON(
str);
def retrieve(aClass, aKey=None)
IParticleCollHandle_Electron(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type, bool shouldLoad=true)
shouldLoad is used to disable the call to load if the collhandle is for temporary (read: associated) ...
virtual ~IParticleCollHandle_Electron()
Const iterator class for DataVector/DataList.
Electron_v1 Electron
Definition of the current "egamma version".
const xAOD::Electron & electron() const
void propagationOptionsChanged()
void messageVerbose(const QString &) const
SoSwitch * collSwitch() const
Add this somewhere in your scenegraph (do not add any children here!)
void resetCachedValuesCuts()
static QStringList availableCollections(IVP1System *)
virtual void init(VP1MaterialButtonBase *button=0)
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
static QString str(const QString &s)
void messageDebug(const QString &) const
void setCutAllowedPt(const VP1Interval &)
void setCutAllowedPhi(const QList< VP1Interval > &)
size_t nTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
const AODSysCommonData * common() const
QStringList getKeys() const
QList< AODHandleBase * > getHandlesList() const
void showParametersChanged(bool)
void visibilityChanged(bool)
virtual bool cut(AODHandleBase *)
void setCutAllowedEta(const VP1Interval &)
void setupSettingsFromController(const AODSystemController *)
IVP1System * systemBase() const
const ElectronCollectionSettingsButton & collSettingsButton() const
virtual void dumpToJSON(std::ofstream &) const
IParticleCollHandle_Electron * theclass
ElectronCollectionSettingsButton * collSettingsButton
Interface for non-const operations on an auxiliary store.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void collVisibilityChanged(bool)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
void addHandle(AODHandleBase *)
void message(const QString &) const
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
void update3DObjectsOfAllHandles()
virtual bool cut(AODHandleBase *)
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
virtual void init(VP1MaterialButtonBase *matBut=0)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.