CEDViewer  1.12.0
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
DDCEDViewer Class Reference
Inheritance diagram for DDCEDViewer:

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 Called at the begin of the job before anything is read. More...
 
virtual void processRunHeader (LCRunHeader *run)
 Called for every run.
 
virtual void processEvent (LCEvent *evt)
 Called for every event - the working horse.
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 Called after data processing for clean up.
 
void printParticle (int id, LCEvent *evt)
 
bool detailledDrawing (std::string detName)
 
void drawDD4LCIO (LCEvent *evt, DD4hep::Geometry::LCDD &lcdd)
 LCIO collection based viewer function for CED event dislplay (A. More...
 
void drawCluster (DD4hep::Geometry::LCDD &lcdd, int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawTrack (DD4hep::Geometry::LCDD &lcdd, int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawMCParticle (DD4hep::Geometry::LCDD &lcdd, int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawSIMTrackerHit (int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, std::vector< int > &_colors, int &size)
 
void drawSIMCalorimeterHit (int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, std::vector< int > &_colors, int &size)
 
void drawTrackerHit (int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawCalorimeterHit (int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawReconstructedParticle (DD4hep::Geometry::LCDD &lcdd, int &layer, unsigned &np, std::string colName, int &marker, LCCollection *col, int &size)
 
void drawJets (DD4hep::Geometry::LCDD &lcdd, int layer, std::string colName, LCCollection *col)
 

Protected Attributes

StringVec _drawCollections
 
StringVec _drawCollectionsLayer
 
std::vector< DrawParametersdrawParameters
 
int _nRun
 
int _nEvt
 
bool _usingParticleGun
 
int _drawHelixForTracks
 
int _colorScheme
 
float _mcpECut
 
float _helix_max_r
 
float _helix_max_z
 
bool _useTrackerForLimitsOfHelix
 
int _waitForKeyboard
 
int _drawHelixForPFOs
 
int _useColorForHelixTracks
 
int _drawEllipsoidForPFOClusters
 
IntVec _colors
 
bool _begin
 
StringVec _detailled
 
StringVec _jets
 
bool _surfaces
 

Static Protected Attributes

static const int ncol = 20
 
static const int nscheme = 10
 
static const int Red = 0
 
static const int Orange = 1
 
static const int Plum = 2
 
static const int Violet = 3
 
static const int Blue = 4
 
static const int LightBlue = 5
 
static const int Aquamarine = 6
 
static const int Green = 7
 
static const int Olive = 8
 
static const int Yellow = 9
 
static const int Dark = 10
 
static const int Light = 11
 
static const int Classic = 12
 

Member Function Documentation

void DDCEDViewer::drawDD4LCIO ( LCEvent *  evt,
DD4hep::Geometry::LCDD &  lcdd 
)

LCIO collection based viewer function for CED event dislplay (A.

Zhelezov). Define the collection name, marker, size and optionally the layer number in the steering file. For 'DrawCollection' a default layer number in CED is chosen.

Parameters
DrawCollection- collection to be displayed ( ColName, marker type[0-2] )
DrawInLayer- collection to be displayed ( ColName, marker type[0-2], size)
Author
F.Gaede, DESY
Version
Id:
CEDViewer.h 4773 2015-02-27 09:01:23Z gaede

Modified original code by Thorben Quast (CERN Summer Student 2015) on 07 August 2015.

  • removed GEAR dependence
  • refactored drawing of straight lines up to calorimeters

Referenced by processEvent().

void DDCEDViewer::init ( )
virtual

Called at the begin of the job before anything is read.

Use to initialize the processor, e.g. book histograms.


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