7#ifndef McPrimaryParticle_h
8#define McPrimaryParticle_h
10#include "EventModel/EventModel.h"
11#include "GaudiKernel/ContainedObject.h"
12#include "GaudiKernel/SmartRefVector.h"
13#include "McTruth/McParticle.h"
48 m_secondaries.clear();
67 return m_secondaries.begin();
70 return m_secondaries.end();
76 return m_associated.begin();
79 return m_associated.end();
88 m_secondaries.push_back( mcPart );
91 m_associated.push_back( mcPart );
97 unsigned long m_classification;
const CLID & CLID_McPrimaryParticle
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.
@ BREM
Secondaries from gamma conversion.
@ RUNBIT
Secondaries from some other process in tracker.
@ TRKCONVERT
Secondaries from some other process.
@ NEUTRAL
Primary particle is charged.
@ TRKOTHER
Secondaries from Photoelectric effect in tracker.
@ CONVERT
Primary is a gamma.
@ GAMMA
Primary particle is neutral.
@ COMPT
Secondaries from Bremstrahlung.
@ TRKCOMPT
Secondaries from Bremstrahlung in tracker.
@ TRKPHOT
Secondaries from Compton scatter in tracker.
@ PHOT
Secondaries from Compton scatter.
@ TRKBREM
Secondaries from gamma conversion in tracker.
@ OTHER
Secondaries from Photoelectric effect (?).
@ CHARGED
No primary particle found (can't happen?).
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)
Return an McParticle reference vector of all McParticles which leave hits in tracker.
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
SmartRef< Event::McParticle > McParticleRef
ObjectVector< McPrimaryParticle > McPrimaryParticleCol
SmartRefVector< Event::McParticle > McParticleRefVec