11 #include "marlin/Processor.h"
16 using namespace lcio ;
17 using namespace marlin ;
28 DrawParameters(
const std::string& colName,
int size,
int marker,
int layer ) :
44 virtual Processor* newProcessor() {
return new DDCEDViewer ; }
54 virtual void processRunHeader( LCRunHeader* run ) ;
58 virtual void processEvent( LCEvent * evt ) ;
61 virtual void check( LCEvent * evt ) ;
69 void printParticle(
int id, LCEvent * evt);
70 bool detailledDrawing(std::string detName);
87 void drawDD4LCIO(LCEvent * evt, DD4hep::Geometry::LCDD& lcdd);
89 void drawCluster(DD4hep::Geometry::LCDD& lcdd,
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
90 void drawTrack(DD4hep::Geometry::LCDD& lcdd,
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
91 void drawMCParticle(DD4hep::Geometry::LCDD& lcdd,
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
92 void drawSIMTrackerHit(
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col, std::vector<int>& _colors,
int& size);
93 void drawSIMCalorimeterHit(
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col, std::vector<int>& _colors,
int& size);
94 void drawTrackerHit(
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
95 void drawCalorimeterHit(
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
96 void drawReconstructedParticle(DD4hep::Geometry::LCDD& lcdd,
int& layer,
unsigned& np, std::string colName,
int& marker, LCCollection* col,
int& size);
97 void drawJets(DD4hep::Geometry::LCDD& lcdd,
int layer, std::string colName, LCCollection* col);
101 static const int ncol = 20 ;
102 static const int nscheme = 10 ;
103 static const int Red = 0 ;
104 static const int Orange = 1 ;
105 static const int Plum = 2 ;
106 static const int Violet = 3 ;
107 static const int Blue = 4 ;
108 static const int LightBlue = 5 ;
109 static const int Aquamarine = 6 ;
110 static const int Green = 7 ;
111 static const int Olive = 8 ;
112 static const int Yellow = 9 ;
114 static const int Dark = 10 ;
115 static const int Light = 11 ;
116 static const int Classic = 12 ;
118 StringVec _drawCollections ;
119 StringVec _drawCollectionsLayer ;
120 std::vector< DrawParameters > drawParameters ;
126 bool _usingParticleGun ;
127 int _drawHelixForTracks ;
132 bool _useTrackerForLimitsOfHelix;
133 int _waitForKeyboard ;
134 int _drawHelixForPFOs;
135 int _useColorForHelixTracks ;
136 int _drawEllipsoidForPFOClusters ;
141 StringVec _detailled;
154 #include "marlin/Processor.h"
158 #include "DD4hep/LCDD.h"
159 #include "DDRec/DetectorData.h"
160 using namespace DD4hep::Geometry ;
164 double r_inner, delta_r, z_0, delta_z;
169 double* getTrackerExtent(DD4hep::Geometry::LCDD& lcdd);
172 double* getYokeExtent(DD4hep::Geometry::LCDD& lcdd);
175 CalorimeterDrawParams getCalorimeterParameters(DD4hep::Geometry::LCDD& lcdd, std::string name,
bool selfCall =
false);
179 double calculateTrackLength(std::string type, DD4hep::Geometry::LCDD& lcdd,
double x,
double y,
double z,
double px,
double py,
double pz);
181 int returnRGBClusterColor(
float eneCluster,
float cutoff_min,
float cutoff_max,
int color_steps,
char scale,
int colorMap);
Definition: DDCEDViewer.h:163
Definition: DDCEDViewer.h:41
Helper struct for drawing collections.
Definition: DDCEDViewer.h:27