7#ifndef McPrimaryParticle_h
8#define McPrimaryParticle_h
10#include "GaudiKernel/ContainedObject.h"
11#include "GaudiKernel/SmartRefVector.h"
51 m_secondaries.clear();
69 Event::McParticleRefVec::const_iterator
beginSecondaries()
const {
return m_secondaries.begin();}
70 Event::McParticleRefVec::const_iterator
endSecondaries()
const {
return m_secondaries.end();}
74 Event::McParticleRefVec::const_iterator
beginAssociated()
const {
return m_associated.begin();}
75 Event::McParticleRefVec::const_iterator
endAssociated()
const {
return m_associated.end();}
88 unsigned long m_classification;
const CLID & CLID_McPrimaryParticle
const CLID & CLID_McPrimaryParticle
Event::McParticleRefVec getTrackVector()
Return an McParticle reference vector of all McParticles which leave hits in tracker.
void addSecondary(const Event::McParticleRef mcPart)
virtual const CLID & clID() const
const Event::McParticleRef getPrimaryParticle() const
Retrieve reference to the primary particle.
Event::McParticleRefVec::const_iterator endSecondaries() const
void addAssociated(const Event::McParticleRef mcPart)
const int getNumSecondaries() const
Retrieve number and iterators to the daughters of the primary with hits in tracker.
ClassificationBits
Define bits to help classify the event.
@ COMPT
Secondaries from Bremstrahlung.
@ TRKCOMPT
Secondaries from Bremstrahlung in tracker.
@ TRKPHOT
Secondaries from Compton scatter in tracker.
@ RUNBIT
Secondaries from some other process in tracker.
@ OTHER
Secondaries from Photoelectric effect (?)
@ NEUTRAL
Primary particle is charged.
@ TRKCONVERT
Secondaries from some other process.
@ CONVERT
Primary is a gamma.
@ CHARGED
No primary particle found (can't happen?)
@ TRKBREM
Secondaries from gamma conversion in tracker.
@ BREM
Secondaries from gamma conversion.
@ TRKOTHER
Secondaries from Photoelectric effect in tracker.
@ GAMMA
Primary particle is neutral.
@ PHOT
Secondaries from Compton scatter.
Event::McParticleRefVec::const_iterator endAssociated() const
const int getNumAssociated() const
Retrieve number and iterators to the particles associated with primary.
McPrimaryParticle()
Dataobject compliant constructor.
void setPrimaryParticle(const Event::McParticleRef mcPart)
For building.
void setClassificationBits(const unsigned long bits)
const unsigned long getClassificationBits() const
Retrieve classification bits (see above definitions)
Event::McParticleRefVec::const_iterator beginSecondaries() const
static const CLID & classID()
Event::McParticleRefVec::const_iterator beginAssociated() const
SmartRefVector< Event::McParticle > McParticleRefVec
SmartRef< Event::McParticle > McParticleRef
ObjectVector< McPrimaryParticle > McPrimaryParticleCol