DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParticleActors.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 #ifndef DD4HEP_DDEVE_PARTICLEHANDLERS_H
15 #define DD4HEP_DDEVE_PARTICLEHANDLERS_H
16 
17 // Framework include files
18 #include "DDEve/EventHandler.h"
20 
21 // C/C++ include files
22 #include <map>
23 
24 // Forward declarations
25 class TEveTrackPropagator;
26 class TEveCompound;
27 class TEveElement;
28 class TEveLine;
29 
31 namespace DD4hep {
32 
34  /*
35  * \author M.Frank
36  * \version 1.0
37  * \ingroup DD4HEP_EVE
38  */
40  typedef std::map<std::string,TEveCompound*> Compounds;
41  TEveTrackPropagator* propagator;
42  TEveCompound* particles;
44  int count;
45  int lineWidth;
47  MCParticleCreator(TEveTrackPropagator* p, TEveCompound* ps, const DisplayConfiguration::Config* cfg);
49  void addCompound(const std::string& name, TEveLine* e);
51  void addCompoundLight(const std::string& name, TEveLine* e);
53  virtual void operator()(const DDEveParticle& particle);
55  void close();
56  };
57 
58 } /* End namespace DD4hep */
59 
60 
61 #endif /* DD4HEP_DDEVE_PARTICLEHANDLERS_H */
62 
TEveTrackPropagator * propagator
void addCompoundLight(const std::string &name, TEveLine *e)
Access sub-compound by name.
Data structure to store the MC particle information.
return e
Definition: Volumes.cpp:297
MCParticleCreator(TEveTrackPropagator *p, TEveCompound *ps, const DisplayConfiguration::Config *cfg)
Standard initializing constructor.
std::map< std::string, TEveCompound * > Compounds
void close()
Close compounds.
Fill eve particles from a MC particle collection.
virtual void operator()(const DDEveParticle &particle)
Action callback of this functor:
void addCompound(const std::string &name, TEveLine *e)
Access sub-compound by name.
Event data actor base class for particles. Used to extract data from concrete classes.
Definition: EventHandler.h:55