|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
22 #include <TEveScene.h>
23 #include <TGLViewer.h>
24 #include <TEveArrow.h>
35 InstanceCount::increment(
this);
39 Calo2DProjection::~Calo2DProjection() {
54 DisplayConfiguration::Configurations::const_iterator fit;
55 DisplayConfiguration::Configurations::const_reverse_iterator rit;
62 for(TEveElementList::List_i i=sens.BeginChildren(); i!=sens.EndChildren(); ++i) {
64 if ( ll && cfg.
name == ll->GetName() ) {
69 for(TEveElementList::List_i i=struc.BeginChildren(); i!=struc.EndChildren(); ++i) {
71 if ( ll && cfg.
name == ll->GetName() ) {
84 const char* n = cfg.
name.c_str();
88 calo2d->SetPlotEt(kFALSE);
89 calo2d->SetDepth(depth += 1.0);
90 calo2d->SetAutoRange(kTRUE);
91 calo2d->SetScaleAbs(kTRUE);
92 calo2d->SetMainColor(calo3d.
color);
93 calo2d->SetMaxValAbs(calo3d.
emax);
94 calo2d->SetMaxTowerH(calo3d.
towerH);
95 calo2d->SetBarrelRadius(calo3d.
rmin);
96 calo2d->SetEndCapPos(calo3d.
dz);
97 calo2d->InvalidateCellIdCache();
98 calo2d->AssertCellIdCache();
99 calo2d->ComputeBBox();
100 Color_t col = ctx.
calo3D->GetDataSliceColor(ctx.
slice);
104 TEveArrow* a1 =
new TEveArrow(100,100, 100,0., 0., 0.);
105 a1->SetMainColor(calo3d.
color);
107 a1->SetPickable(kFALSE);
110 legend_y += a->GetTextSize();
111 printout(INFO,
"Calo2DProjection",
"+++ %s: add detector %s [%s] rmin=%f towerH:%f emax=%f",
The main class of the DDEve display.
#define DECLARE_VIEW_FACTORY(x)
static float DefaultTextSize()
Default text size.
virtual TEveElementList & GetGeoTopic(const std::string &name)
Access/Create an geometry topic by name.
union dd4hep::DisplayConfiguration::Config::Values data
virtual View & Build(TEveWindow *slot) override
Build the projection view and map it to the given slot.
Configuration class for 3D calorimeter display.
Configurations subdetectors
virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig &config) override
Configure a single geometry view.
virtual Projection & AddAxis()
Add projection axis to the view.
void ImportGeoTopics(const std::string &title) override
Call to import geometry topics.
class Projection Projection.h DDEve/Projection.h
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
const std::string & name() const
Access to the view name/title.
CalodataContext & GetCaloHistogram(const std::string &name)
Access to calo data histograms by name as defined in the configuration.
virtual TEveElementList * AddToGlobalItems(const std::string &nam)
Add the view to the global list of eve objects.
View TEveWindowSlot * slot
static void decrement(T *)
Decrement count according to type information.
virtual View & CreateGeoScene()
Create the geometry scene.
virtual View & CreateEventScene()
Create the event scene.
static float DefaultMargin()
Default margin for placement in bottom left corner.
DisplayConfiguration::Config config
TEveScene * m_geoScene
Reference to the geometry scene.
TEveViewer * viewer() const
Access to the Eve viewer.
Container with full display configuration.
Class to add annotations to eve viewers.
virtual View & Map(TEveWindow *slot) override
Map the projection view to the slot.
Namespace for the AIDA detector description toolkit.
virtual Projection & CreateRhoPhiProjection()
Create Rho-Phi projection.
class View View.h DDEve/View.h
TEveProjectionManager * m_projMgr
Reference to the projection manager.
Calorimeter data context for the DDEve event display.
Calo2DProjection(Display *eve, const std::string &name)
Initializing constructor.
ClassImp(Calo2DProjection) Calo2DProjection
Initializing constructor.
2D projection operator for calorimeters
virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig &config) override
Configure a single event scene view.
virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig &config)
Configure a single event scene view.