Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Event::McPrimaryParticle Class Reference

#include <McPrimaryParticle.h>

Inheritance diagram for Event::McPrimaryParticle:

ContainedObject ContainedObject List of all members.

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

Member Enumeration Documentation

enum Event::McPrimaryParticle::ClassificationBits
 

Define bits to help classify the event.

Enumeration values:
NOPRIMARY 
CHARGED  No primary particle found (can't happen?).
NEUTRAL  Primary particle is charged.
GAMMA  Primary particle is neutral.
CONVERT  Primary is a gamma.
BREM  Secondaries from gamma conversion.
COMPT  Secondaries from Bremstrahlung.
PHOT  Secondaries from Compton scatter.
OTHER  Secondaries from Photoelectric effect (?).
TRKCONVERT  Secondaries from some other process.
TRKBREM  Secondaries from gamma conversion in tracker.
TRKCOMPT  Secondaries from Bremstrahlung in tracker.
TRKPHOT  Secondaries from Compton scatter in tracker.
TRKOTHER  Secondaries from Photoelectric effect in tracker.
RUNBIT  Secondaries from some other process in tracker.
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     };

enum Event::McPrimaryParticle::ClassificationBits
 

Define bits to help classify the event.

Enumeration values:
NOPRIMARY 
CHARGED  No primary particle found (can't happen?).
NEUTRAL  Primary particle is charged.
GAMMA  Primary particle is neutral.
CONVERT  Primary is a gamma.
BREM  Secondaries from gamma conversion.
COMPT  Secondaries from Bremstrahlung.
PHOT  Secondaries from Compton scatter.
OTHER  Secondaries from Photoelectric effect (?).
TRKCONVERT  Secondaries from some other process.
TRKBREM  Secondaries from gamma conversion in tracker.
TRKCOMPT  Secondaries from Bremstrahlung in tracker.
TRKPHOT  Secondaries from Compton scatter in tracker.
TRKOTHER  Secondaries from Photoelectric effect in tracker.
RUNBIT  Secondaries from some other process in tracker.
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     };


Constructor & Destructor Documentation

Event::McPrimaryParticle::McPrimaryParticle  )  [inline]
 

Dataobject compliant constructor.

00047                         : ContainedObject()
00048     {
00049         m_classification = 0;
00050         m_primary = 0;
00051         m_secondaries.clear();
00052         m_associated.clear();
00053     }

Event::McPrimaryParticle::~McPrimaryParticle  )  [inline]
 

00056 {}

Event::McPrimaryParticle::McPrimaryParticle  )  [inline]
 

Dataobject compliant constructor.

00047                         : ContainedObject()
00048     {
00049         m_classification = 0;
00050         m_primary = 0;
00051         m_secondaries.clear();
00052         m_associated.clear();
00053     }

Event::McPrimaryParticle::~McPrimaryParticle  )  [inline]
 

00056 {}


Member Function Documentation

void Event::McPrimaryParticle::addAssociated const Event::McParticleRef  mcPart  )  [inline]
 

00083 {m_associated.push_back(mcPart);}

void Event::McPrimaryParticle::addAssociated const Event::McParticleRef  mcPart  )  [inline]
 

00083 {m_associated.push_back(mcPart);}

void Event::McPrimaryParticle::addSecondary const Event::McParticleRef  mcPart  )  [inline]
 

00082 {m_secondaries.push_back(mcPart);}

void Event::McPrimaryParticle::addSecondary const Event::McParticleRef  mcPart  )  [inline]
 

00082 {m_secondaries.push_back(mcPart);}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::beginAssociated  )  const [inline]
 

00074 {return m_associated.begin();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::beginAssociated  )  const [inline]
 

00074 {return m_associated.begin();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::beginSecondaries  )  const [inline]
 

00069 {return m_secondaries.begin();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::beginSecondaries  )  const [inline]
 

00069 {return m_secondaries.begin();}

const CLID& Event::McPrimaryParticle::classID  )  [inline, static]
 

00059 { return CLID_McPrimaryParticle; }

const CLID& Event::McPrimaryParticle::classID  )  [inline, static]
 

00059 { return CLID_McPrimaryParticle; }

virtual const CLID& Event::McPrimaryParticle::clID  )  const [inline, virtual]
 

00058 { return McPrimaryParticle::classID(); }

virtual const CLID& Event::McPrimaryParticle::clID  )  const [inline, virtual]
 

00058 { return McPrimaryParticle::classID(); }

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::endAssociated  )  const [inline]
 

00075 {return m_associated.end();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::endAssociated  )  const [inline]
 

00075 {return m_associated.end();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::endSecondaries  )  const [inline]
 

00070 {return m_secondaries.end();}

Event::McParticleRefVec::const_iterator Event::McPrimaryParticle::endSecondaries  )  const [inline]
 

00070 {return m_secondaries.end();}

const unsigned long Event::McPrimaryParticle::getClassificationBits  )  const [inline]
 

Retrieve classification bits (see above definitions).

00062 {return m_classification;}

const unsigned long Event::McPrimaryParticle::getClassificationBits  )  const [inline]
 

Retrieve classification bits (see above definitions).

00062 {return m_classification;}

const int Event::McPrimaryParticle::getNumAssociated  )  const [inline]
 

Retrieve number and iterators to the particles associated with primary.

00073 {return m_associated.size();}

const int Event::McPrimaryParticle::getNumAssociated  )  const [inline]
 

Retrieve number and iterators to the particles associated with primary.

00073 {return m_associated.size();}

const int Event::McPrimaryParticle::getNumSecondaries  )  const [inline]
 

Retrieve number and iterators to the daughters of the primary with hits in tracker.

00068 {return m_secondaries.size();}

const int Event::McPrimaryParticle::getNumSecondaries  )  const [inline]
 

Retrieve number and iterators to the daughters of the primary with hits in tracker.

00068 {return m_secondaries.size();}

const Event::McParticleRef Event::McPrimaryParticle::getPrimaryParticle  )  const [inline]
 

Retrieve reference to the primary particle.

00065 {return m_primary;}

const Event::McParticleRef Event::McPrimaryParticle::getPrimaryParticle  )  const [inline]
 

Retrieve reference to the primary particle.

00065 {return m_primary;}

Event::McParticleRefVec Event::McPrimaryParticle::getTrackVector  )  [inline]
 

Return an McParticle reference vector of all McParticles which leave hits in tracker.

Event::McParticleRefVec Event::McPrimaryParticle::getTrackVector  )  [inline]
 

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 }

void Event::McPrimaryParticle::setClassificationBits const unsigned long  bits  )  [inline]
 

00084 {m_classification |= bits;}

void Event::McPrimaryParticle::setClassificationBits const unsigned long  bits  )  [inline]
 

00084 {m_classification |= bits;}

void Event::McPrimaryParticle::setPrimaryParticle const Event::McParticleRef  mcPart  )  [inline]
 

For building.

00081 {m_primary = mcPart;}

void Event::McPrimaryParticle::setPrimaryParticle const Event::McParticleRef  mcPart  )  [inline]
 

For building.

00081 {m_primary = mcPart;}


Member Data Documentation

Event::McParticleRefVec Event::McPrimaryParticle::m_associated [private]
 

unsigned long Event::McPrimaryParticle::m_classification [private]
 

Bit-field for classification.

Event::McParticleRef Event::McPrimaryParticle::m_primary [private]
 

Event::McParticleRefVec Event::McPrimaryParticle::m_secondaries [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:20:47 2011 for BOSS6.5.5 by  doxygen 1.3.9.1