#include <McPrimaryParticle.h>
Inheritance diagram for Event::McPrimaryParticle:
Public Types | |
enum | ClassificationBits { NOPRIMARY = 1, CHARGED = 1<<1, NEUTRAL = 1<<2, GAMMA = 1<<3, CONVERT = 1<<4, BREM = 1<<5, COMPT = 1<<6, PHOT = 1<<7, OTHER = 1<<8, TRKCONVERT = 1<<12, TRKBREM = 1<<13, TRKCOMPT = 1<<14, TRKPHOT = 1<<15, TRKOTHER = 1<<16, RUNBIT = 1<<24 } |
Define bits to help classify the event. More... | |
enum | ClassificationBits { NOPRIMARY = 1, CHARGED = 1<<1, NEUTRAL = 1<<2, GAMMA = 1<<3, CONVERT = 1<<4, BREM = 1<<5, COMPT = 1<<6, PHOT = 1<<7, OTHER = 1<<8, TRKCONVERT = 1<<12, TRKBREM = 1<<13, TRKCOMPT = 1<<14, TRKPHOT = 1<<15, TRKOTHER = 1<<16, RUNBIT = 1<<24 } |
Define bits to help classify the event. More... | |
Public Member Functions | |
void | addAssociated (const Event::McParticleRef mcPart) |
void | addAssociated (const Event::McParticleRef mcPart) |
void | addSecondary (const Event::McParticleRef mcPart) |
void | addSecondary (const Event::McParticleRef mcPart) |
Event::McParticleRefVec::const_iterator | beginAssociated () const |
Event::McParticleRefVec::const_iterator | beginAssociated () const |
Event::McParticleRefVec::const_iterator | beginSecondaries () const |
Event::McParticleRefVec::const_iterator | beginSecondaries () const |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
Event::McParticleRefVec::const_iterator | endAssociated () const |
Event::McParticleRefVec::const_iterator | endAssociated () const |
Event::McParticleRefVec::const_iterator | endSecondaries () const |
Event::McParticleRefVec::const_iterator | endSecondaries () const |
const unsigned long | getClassificationBits () const |
Retrieve classification bits (see above definitions). | |
const unsigned long | getClassificationBits () const |
Retrieve classification bits (see above definitions). | |
const int | getNumAssociated () const |
Retrieve number and iterators to the particles associated with primary. | |
const int | getNumAssociated () const |
Retrieve number and iterators to the particles associated with primary. | |
const int | getNumSecondaries () const |
Retrieve number and iterators to the daughters of the primary with hits in tracker. | |
const int | getNumSecondaries () const |
Retrieve number and iterators to the daughters of the primary with hits in tracker. | |
const Event::McParticleRef | getPrimaryParticle () const |
Retrieve reference to the primary particle. | |
const Event::McParticleRef | getPrimaryParticle () const |
Retrieve reference to the primary particle. | |
Event::McParticleRefVec | getTrackVector () |
Return an McParticle reference vector of all McParticles which leave hits in tracker. | |
Event::McParticleRefVec | getTrackVector () |
Return an McParticle reference vector of all McParticles which leave hits in tracker. | |
McPrimaryParticle () | |
Dataobject compliant constructor. | |
McPrimaryParticle () | |
Dataobject compliant constructor. | |
void | setClassificationBits (const unsigned long bits) |
void | setClassificationBits (const unsigned long bits) |
void | setPrimaryParticle (const Event::McParticleRef mcPart) |
For building. | |
void | setPrimaryParticle (const Event::McParticleRef mcPart) |
For building. | |
~McPrimaryParticle () | |
~McPrimaryParticle () | |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
Private Attributes | |
Event::McParticleRefVec | m_associated |
unsigned long | m_classification |
Bit-field for classification. | |
Event::McParticleRef | m_primary |
Event::McParticleRefVec | m_secondaries |
|
Define bits to help classify the event.
00028 { 00029 NOPRIMARY = 1 , 00030 CHARGED = 1<<1, 00031 NEUTRAL = 1<<2, 00032 GAMMA = 1<<3, 00033 CONVERT = 1<<4, 00034 BREM = 1<<5, 00035 COMPT = 1<<6, 00036 PHOT = 1<<7, 00037 OTHER = 1<<8, 00038 TRKCONVERT = 1<<12, 00039 TRKBREM = 1<<13, 00040 TRKCOMPT = 1<<14, 00041 TRKPHOT = 1<<15, 00042 TRKOTHER = 1<<16, 00043 RUNBIT = 1<<24 00044 };
|
|
Define bits to help classify the event.
00028 { 00029 NOPRIMARY = 1 , 00030 CHARGED = 1<<1, 00031 NEUTRAL = 1<<2, 00032 GAMMA = 1<<3, 00033 CONVERT = 1<<4, 00034 BREM = 1<<5, 00035 COMPT = 1<<6, 00036 PHOT = 1<<7, 00037 OTHER = 1<<8, 00038 TRKCONVERT = 1<<12, 00039 TRKBREM = 1<<13, 00040 TRKCOMPT = 1<<14, 00041 TRKPHOT = 1<<15, 00042 TRKOTHER = 1<<16, 00043 RUNBIT = 1<<24 00044 };
|
|
Dataobject compliant constructor.
00047 : ContainedObject() 00048 { 00049 m_classification = 0; 00050 m_primary = 0; 00051 m_secondaries.clear(); 00052 m_associated.clear(); 00053 }
|
|
00056 {}
|
|
Dataobject compliant constructor.
00047 : ContainedObject() 00048 { 00049 m_classification = 0; 00050 m_primary = 0; 00051 m_secondaries.clear(); 00052 m_associated.clear(); 00053 }
|
|
00056 {}
|
|
00083 {m_associated.push_back(mcPart);}
|
|
00083 {m_associated.push_back(mcPart);}
|
|
00082 {m_secondaries.push_back(mcPart);}
|
|
00082 {m_secondaries.push_back(mcPart);}
|
|
00074 {return m_associated.begin();}
|
|
00074 {return m_associated.begin();}
|
|
00069 {return m_secondaries.begin();}
|
|
00069 {return m_secondaries.begin();}
|
|
00059 { return CLID_McPrimaryParticle; }
|
|
00059 { return CLID_McPrimaryParticle; }
|
|
00058 { return McPrimaryParticle::classID(); }
|
|
00058 { return McPrimaryParticle::classID(); }
|
|
00075 {return m_associated.end();}
|
|
00075 {return m_associated.end();}
|
|
00070 {return m_secondaries.end();}
|
|
00070 {return m_secondaries.end();}
|
|
Retrieve classification bits (see above definitions).
00062 {return m_classification;}
|
|
Retrieve classification bits (see above definitions).
00062 {return m_classification;}
|
|
Retrieve number and iterators to the particles associated with primary.
00073 {return m_associated.size();}
|
|
Retrieve number and iterators to the particles associated with primary.
00073 {return m_associated.size();}
|
|
Retrieve number and iterators to the daughters of the primary with hits in tracker.
00068 {return m_secondaries.size();}
|
|
Retrieve number and iterators to the daughters of the primary with hits in tracker.
00068 {return m_secondaries.size();}
|
|
Retrieve reference to the primary particle.
00065 {return m_primary;}
|
|
Retrieve reference to the primary particle.
00065 {return m_primary;}
|
|
Return an McParticle reference vector of all McParticles which leave hits in tracker.
|
|
Return an McParticle reference vector of all McParticles which leave hits in tracker.
00010 { 00011 /* Event::McParticleRefVec trackVec; 00012 00013 trackVec.clear(); 00014 00015 if (m_primary->statusFlags() & Event::McParticle::POSHIT) trackVec.push_back(m_primary); 00016 00017 Event::McParticleRefVec::const_iterator refIter; 00018 00019 for(refIter = m_secondaries.begin(); refIter != m_secondaries.end(); refIter++) trackVec.push_back(*refIter); 00020 for(refIter = m_associated.begin(); refIter != m_associated.end(); refIter++) trackVec.push_back(*refIter); 00021 00022 return trackVec; 00023 */ 00024 }
|
|
00084 {m_classification |= bits;}
|
|
00084 {m_classification |= bits;}
|
|
For building.
00081 {m_primary = mcPart;}
|
|
For building.
00081 {m_primary = mcPart;}
|
|
|
|
Bit-field for classification.
|
|
|
|
|