7#ifndef McPrimaryParticle_h
8#define McPrimaryParticle_h
10#include "GaudiKernel/ContainedObject.h"
11#include "GaudiKernel/SmartRefVector.h"
12#include "McTruth/McParticle.h"
13#include "EventModel/EventModel.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.
@ 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)
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
SmartRef< Event::McParticle > McParticleRef
ObjectVector< McPrimaryParticle > McPrimaryParticleCol
SmartRefVector< Event::McParticle > McParticleRefVec