DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::MCParticleCreator Struct Reference

Fill eve particles from a MC particle collection. More...

#include <ParticleActors.h>

Inheritance diagram for dd4hep::MCParticleCreator:
dd4hep::DDEveParticleActor

Public Types

typedef std::map< std::string, TEveCompound * > Compounds
 

Public Member Functions

 MCParticleCreator (TEveTrackPropagator *p, TEveCompound *ps, const DisplayConfiguration::Config *cfg)
 Standard initializing constructor. More...
 
void addCompound (const std::string &name, TEveLine *e)
 Access sub-compound by name. More...
 
void addCompoundLight (const std::string &name, TEveLine *e)
 Access sub-compound by name. More...
 
virtual void operator() (const DDEveParticle &particle)
 Action callback of this functor: More...
 
void close ()
 Close compounds. More...
 
- Public Member Functions inherited from dd4hep::DDEveParticleActor
virtual ~DDEveParticleActor ()
 
virtual void setSize (size_t)
 

Public Attributes

TEveTrackPropagator * propagator {0}
 
TEveCompound * particles {0}
 
Compounds types
 
double threshold {10e0}
 
int count {0}
 
int lineWidth {4}
 

Detailed Description

Fill eve particles from a MC particle collection.

Definition at line 39 of file ParticleActors.h.

Member Typedef Documentation

◆ Compounds

typedef std::map<std::string,TEveCompound*> dd4hep::MCParticleCreator::Compounds

Definition at line 40 of file ParticleActors.h.

Constructor & Destructor Documentation

◆ MCParticleCreator()

MCParticleCreator::MCParticleCreator ( TEveTrackPropagator *  p,
TEveCompound *  ps,
const DisplayConfiguration::Config cfg 
)

Standard initializing constructor.

Definition at line 49 of file ParticleActors.cpp.

Member Function Documentation

◆ addCompound()

void MCParticleCreator::addCompound ( const std::string &  name,
TEveLine *  e 
)

Access sub-compound by name.

Definition at line 70 of file ParticleActors.cpp.

◆ addCompoundLight()

void MCParticleCreator::addCompoundLight ( const std::string &  name,
TEveLine *  e 
)

Access sub-compound by name.

Definition at line 89 of file ParticleActors.cpp.

◆ close()

void MCParticleCreator::close ( )

Close compounds.

Definition at line 106 of file ParticleActors.cpp.

◆ operator()()

void MCParticleCreator::operator() ( const DDEveParticle particle)
virtual

Action callback of this functor:

Implements dd4hep::DDEveParticleActor.

Definition at line 119 of file ParticleActors.cpp.

Member Data Documentation

◆ count

int dd4hep::MCParticleCreator::count {0}

Definition at line 45 of file ParticleActors.h.

◆ lineWidth

int dd4hep::MCParticleCreator::lineWidth {4}

Definition at line 46 of file ParticleActors.h.

◆ particles

TEveCompound* dd4hep::MCParticleCreator::particles {0}

Definition at line 42 of file ParticleActors.h.

◆ propagator

TEveTrackPropagator* dd4hep::MCParticleCreator::propagator {0}

Definition at line 41 of file ParticleActors.h.

◆ threshold

double dd4hep::MCParticleCreator::threshold {10e0}

Definition at line 44 of file ParticleActors.h.

◆ types

Compounds dd4hep::MCParticleCreator::types

Definition at line 43 of file ParticleActors.h.


The documentation for this struct was generated from the following files: