|
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...");
169 throw std::runtime_error(
"Electron - No collSettingsButton set!");
178 messageVerbose(
"not loading Electron collection - contains associated objects.");
186 #if defined BUILDVP1LIGHT
189 QString errMsg =
"Failed to retrieve " +
name();
190 message(
"Error: Could not retrieve collection with key="+
name());
195 message(
"Error: Could not retrieve track particle collection with key="+
name());
198 #endif // BUILDVP1LIGHT
204 if( ! coll->hasStore() ) {
205 message(
"No auxiliary store got associated to the Electron container with key: " +
name());
219 messageDebug(
"WARNING: Ignoring null Electron pointer.");
222 if ((*it)->charge()==0.0) {
223 messageDebug(
"WARNING: Ignoring Electron which claims to be neutral (charge()==0.0).");
227 std::cout <<
"elHandle ---> " << elH->
electron().
eta() <<
", "
255 messageVerbose(
"IParticleCollHandle_Electron::propagationOptionsChanged");
260 str <<
"\""<<
name().toLatin1().data()<<
"\":{";
264 if (handle->visible()) {
266 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)
const QString & name() const
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.