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

DSTViewer
This processor displays .... More...

#include <DSTViewer.h>

Inheritance diagram for DSTViewer:

Public Member Functions

virtual Processor * newProcessor ()
 
 DSTViewer ()
 DSTViewer description.
 
virtual void init ()
 DSTViewer initialise.
 
virtual void processRunHeader (LCRunHeader *run)
 Process run header (?)
 
virtual void processEvent (LCEvent *evt)
 Main function processEvent. More...
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 

Protected Member Functions

int returnTrackColor (int type)
 PRELIM.
 
int returnClusterColor (float eneCluster, float cutoff_min, float cutoff_max)
 
void showLegendSpectrum (const unsigned int color_steps, char scale, int colorMap, float ene_min, float ene_max, unsigned int ticks)
 
int returnRGBClusterColor (float eneCluster, float cutoff_min, float cutoff_max, int color_steps, char scale, int colorMap)
 
int returnClusterSize (float eneCluster, float cutoff_min, float cutoff_max)
 
int returnTrackSize (float type)
 PRELIM.
 
int returnJetLayer (std::string jetColName)
 
int returnIpLayer (std::string jetColName)
 
int returnJetColor (std::string jetColName, int colNumber)
 
int addAlphaChannelToColor (int color, int alphaChannel)
 
float * returnConeColor (std::string jetColName)
 
void writeLayerDescription (void)
 

Protected Attributes

int _nRun
 
int _nEvt
 
std::string _particleCollection
 
StringVec _jetCollections
 
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

DSTViewer
This processor displays ....


Parameters
ParticleCollection: name of reconstructed Particle collection to be displayed
.....
Authors
Szymon Daraszewicz (DESY/UOE)
Version
Id:
DSTViewer.h 2304 2011-07-01 11:35:32Z gaede

Member Function Documentation

void DSTViewer::processEvent ( LCEvent *  evt)
virtual

Main function processEvent.

Drawing Geometry Reset drawing buffer and START drawing collection

Drawing Reconstructed Particles

Total E, p, q values for the event

get particle properties

Draw the helix and straight lines

Draw momentum lines from the ip

Draw momentum lines from the ip

References returnClusterSize(), returnRGBClusterColor(), returnTrackColor(), returnTrackSize(), and showLegendSpectrum().

int DSTViewer::returnClusterColor ( float  eneCluster,
float  cutoff_min,
float  cutoff_max 
)
protected
Author
: S.Daraszewicz (UoE)
Date
: 21.08.08
Parameters
eneCluster: Energy of the cluster
cutoff_min: Min cut for the cluster energy
cutoff_max: Max cut for the cluster energy

Returns the colour for the visualisation of a cluster (in log scale). Colours run from red (0x660000) to blue (0x6600FF) for high and low energy particles respectively.

Check the input values for sanity

int DSTViewer::returnClusterSize ( float  eneCluster,
float  cutoff_min,
float  cutoff_max 
)
protected

Check the input values for sanity

Check the output

Referenced by processEvent().

int DSTViewer::returnRGBClusterColor ( float  eneCluster,
float  cutoff_min,
float  cutoff_max,
int  color_steps,
char  scale,
int  colorMap 
)
protected

Check the input values for sanity

Different color scales

Referenced by processEvent().

void DSTViewer::showLegendSpectrum ( const unsigned int  color_steps,
char  scale,
int  colorMap,
float  ene_min,
float  ene_max,
unsigned int  ticks 
)
protected
Author
: S.Daraszewicz (UoE)
Date
: 22.08.08
Parameters
eneCluster: Energy of the cluster
cutoff_min: Min cut for the cluster energy
cutoff_max: Max cut for the cluster energy
color_stepsNumber of colours to be used in the scale
scale: Linear or Logarithmic colour scale
colorMap: Color map type to be used

Returns the size for the visualisation of a cluster (in log scale) within user defined sizes.

Referenced by processEvent().


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