CEDViewer  1.12.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GenericViewer Class Reference

Viewer Processor
This processor displays collections of LCIO objects,
including SimCalorimeterHits, SimTrackerHits,
CalorimeterHits, TrackerHits, reconstructed Tracks,
reconstructed Clusters and reconstructed particle flow objects. More...

#include <GenericViewer.h>

Inheritance diagram for GenericViewer:

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 
virtual void processRunHeader (LCRunHeader *run)
 
virtual void processEvent (LCEvent *evt)
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 

Protected Member Functions

int returnColor (int counter)
 

Protected Attributes

int _nRun
 
int _nEvt
 
std::vector< std::string > _caloHitCollections
 
std::vector< std::string > _simCaloHitCollections
 
std::vector< std::string > _trackerHitCollections
 
std::vector< std::string > _simTrackerHitCollections
 
std::string _trueClustersCollection
 
std::string _trueTracksCollection
 
std::string _clustersCollection
 
std::string _tracksCollection
 
std::string _particleCollection
 
int _layerCaloHit
 
int _layerSimCaloHit
 
int _layerTrackerHit
 
int _layerSimTrackerHit
 
int _layerTrueClusters
 
int _layerTrueTracks
 
int _layerClusters
 
int _layerTracks
 
int _layerMCP
 
int _layerBosons
 
int _layerReco
 
int _detModel
 
int _waitForKeyboard
 
std::map< MCParticle *, int > _mcpList
 
float _bField
 

Detailed Description

Viewer Processor
This processor displays collections of LCIO objects,
including SimCalorimeterHits, SimTrackerHits,
CalorimeterHits, TrackerHits, reconstructed Tracks,
reconstructed Clusters and reconstructed particle flow objects.


Display of a given collection is manipulated with numeric keys
associated with toggle layers.
Processor also draws wire-frame sketch of the detector.
A current event is displayed in the window panel activated by C Event
Display (CED) program glced. You have to launch this program before
starting Marlin.
The user should specify the name of collections to be displayed
via processor parameters described below.

Parameters
SimCaloHitCollections: names of SimCalorimeterHit collections to be displayed
LayerSimCaloHit: toggle layer for SimCalorimeterHits
SimTrackerHitCollections: SimTrackerHit collections to be displayed
LayerSimTrackerHit: toggle layer for SimTrackerHits
CaloHitCollections: names of CalorimeterHit collections to be displayed
LayerCaloHit: toggle layer for CalorimeterHits
TrackerHitCollections: names of TrackerHit collections to be displayed
LayerTrackerHit: toggle layer for TrackerHits
TrueTrackCollection: True Monte Carlo track collection name to be displayed
LayerTrueTracks: toggle layer for True Monte Carlo tracks
TrueClusterCollection: name of true MC cluster collection to be displayed
LayerTrueClusters: toggle layer for true MC clusters
TrackCollection: name of reconstructed track collection collections to be displayed
LayerTracks: toggle layer for reconstructed tracks
ClusterCollection: name of reconstructed Cluster collection to be displayed
LayerClusters: toggle layer for reconstructed clusters
ParticleCollection: name of reconstructed Particle collection to be displayed
LayerReco: toggle layer for reconstructed Particles

If a layer toggle is set to -1, the corresponding collection is not displayed

DetectorModel: detector model
0 - LDC model (Mokka program, models D09, D10, D12)
1 - SiD model (SLIC program)
2 - GLD model (Jupiter program)
MagneticField: Magnetic field in Tesla
WaitForKeyboard: toggle to wait for keyboard input or not
0 - the GenericViewer processor does not wait after the display of the current event
1 - the GenericViewer processor waits for a keyboard (std) input after each event. This is the default.
Authors
A.Raspereza (DESY), O.Wendt (DESY)
Version
Id:
GenericViewer.h 2304 2011-07-01 11:35:32Z gaede

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