|
ATLAS Offline Software
|
Go to the documentation of this file.
28 #endif // BUILDVP1LIGHT
31 #include <QStringList>
34 #include <Inventor/C/errors/debugerror.h>
35 #include <Inventor/nodes/SoSeparator.h>
36 #include <Inventor/nodes/SoSwitch.h>
37 #include <Inventor/nodes/SoMaterial.h>
38 #include "Inventor/nodes/SoDrawStyle.h"
39 #include "Inventor/nodes/SoLightModel.h"
45 #endif // BUILDVP1LIGHT
48 #if defined BUILDVP1LIGHT
58 #endif // BUILDVP1LIGHT
89 QString safetext(
text());
90 safetext.replace(
' ',
'_');
91 safetext.replace(
'[',
'_');
92 safetext.replace(
']',
'_');
93 safetext.replace(
'/',
'_');
94 safetext.replace(
'.',
'_');
95 safetext.replace(
',',
'_');
96 safetext.replace(
'<',
'_');
97 safetext.replace(
'>',
'_');
98 safetext.replace(
'&',
'_');
173 messageVerbose(
"No collSettingsButton set! Can't call init(), so crash is imminent...");
186 #if defined BUILDVP1LIGHT
189 message(
"Error: Could not retrieve collection with key="+
name());
194 message(
"Error: Could not retrieve Muon collection with key="+
name());
197 #endif // BUILDVP1LIGHT
203 if( ! coll->hasStore() ) {
204 message(
"No auxiliary store got associated to the Muon container with key: " +
name());
212 QList<const xAOD::TrackParticle*> listOfTrackParticles;
238 if(listOfTrackParticles.size()>0) {
248 QString
msg =
"SEVERE WARNING! No 'primaryTrackParticle' information found within the Muons collection of the input file! As a consequence, several quantities cannot be calculated. Also, expect crashes... Please, check the data contained in your input data file.";
266 if (not
muon)
return false;
278 std::cout<<
"IParticleCollHandle_Muon::setMinimumQuality : "<<quality<<
" last = "<<
m_d->
last_minimumQuality<<std::endl;
293 QList<const xAOD::TrackParticle*> listOfTrackParticles;
306 listOfTrackParticles<<mhandle->
muon().
trackParticle( xAOD::Muon::CombinedTrackParticle);
308 listOfTrackParticles<<mhandle->
muon().
trackParticle( xAOD::Muon::InnerDetectorTrackParticle);
310 listOfTrackParticles<<mhandle->
muon().
trackParticle( xAOD::Muon::MuonSpectrometerTrackParticle);
312 listOfTrackParticles<<mhandle->
muon().
trackParticle( xAOD::Muon::ExtrapolatedMuonSpectrometerTrackParticle);
316 std::cout<<
"IParticleCollHandle_Muon::updateAssociatedTrackParticles Emitting "<<listOfTrackParticles.size()<<
" track particles."<<std::endl;
322 std::cout<<
"IParticleCollHandle_Muon::setShownAssociatedObjects : "<<std::endl;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
virtual bool cut(AODHandleBase *)
const TrackParticle * trackParticle(TrackParticleType type) const
Returns a pointer (which can be NULL) to the TrackParticle used in identification of this muon.
const MuonCollectionSettingsButton & collSettingsButton() const
IParticleCollHandle_Muon * theclass
unsigned int last_minimumQuality
void messageVerbose(const QString &) const
SoSwitch * collSwitch() const
Add this somewhere in your scenegraph (do not add any children here!)
virtual void init(VP1MaterialButtonBase *button=0)
static void messageWarningAllRed(const QString &str, IVP1System *sys=0)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
void messageDebug(const QString &) const
void setCutAllowedPt(const VP1Interval &)
void setMinimumQuality(unsigned int)
void setCutAllowedPhi(const QList< VP1Interval > &)
const AODSysCommonData * common() const
QStringList getKeys() const
MuonCollectionSettingsButton * collSettingsButton
void printMsgNoTrackParticle()
void visibilityChanged(bool)
virtual ~IParticleCollHandle_Muon()
const xAOD::Muon & muon() const
void recheckCutStatusOfAllNotVisibleHandles()
void updateAssociatedTrackParticles()
virtual bool cut(AODHandleBase *)
void setCutAllowedEta(const VP1Interval &)
void setupSettingsFromController(const AODSystemController *)
IVP1System * systemBase() const
struct TBPatternUnitContext Muon
Interface for non-const operations on an auxiliary store.
virtual void handleIterationBegin()
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void collVisibilityChanged(bool)
bool hasPrimaryTrackParticleInfo()
virtual void init(VP1MaterialButtonBase *matBut=0)
bool hasPrimaryTrackParticleInfo
void resetCachedValuesCuts()
virtual AODHandleBase * getNextHandle()
void shownAssociatedObjectsChanged(const QList< const xAOD::TrackParticle * > &)
void addHandle(AODHandleBase *)
static QStringList availableCollections(IVP1System *)
void message(const QString &) const
const TrackParticle * primaryTrackParticle() const
Returns a pointer (which should not usually be NULL, but might be if the muon has been stripped of in...
IParticleCollHandle_Muon(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
void updateShownAssociatedObjects()
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
void recheckCutStatusOfAllVisibleHandles()
void message(const QString &) const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.