14 #include <boost/bind.hpp>
18 #include "TEveManager.h"
19 #include "TEveTrackPropagator.h"
20 #include "TGLViewer.h"
21 #include "TEveViewer.h"
34 m_trackBreak(this,
" ", 2
l, 0
l, 2
l),
35 m_drawBreakPoints(this,
"Show y=0 points as markers",
false),
36 m_backgroundColor(this,
"backgroundColIdx", 1
l, 0
l, 1000
l),
37 m_gamma(this,
"Brightness", 0
l, -15
l, 15
l),
38 m_geomTransparency2D(this,
"Transparency 2D", long(colorManager()->geomTransparency(
true)), 0
l, 100
l),
39 m_geomTransparency3D(this,
"Transparency 3D", long(colorManager()->geomTransparency(
false)), 0
l, 100
l),
51 snprintf(name, 31,
"GeometryColor %d ",
i);
134 void addGLColorToConfig(
const char* cname, TGLColor&
c,
FWConfiguration& oTo)
138 std::ostringstream sRed;
139 sRed << (int)c.GetRed();
142 std::ostringstream sGreen;
143 sGreen << (int)c.GetGreen();
146 std::ostringstream sBlue;
147 sBlue << (int)c.GetBlue();
173 TGLViewer*
v = gEve->GetDefaultGLViewer();
174 addGLColorToConfig(
"SelectionColorLight", v->RefLightColorSet().Selection(1), oTo);
175 addGLColorToConfig(
"HighlightColorLight", v->RefLightColorSet().Selection(3), oTo);
176 addGLColorToConfig(
"SelectionColorDark", v->RefDarkColorSet().Selection(1), oTo);
177 addGLColorToConfig(
"HighlightColorDark", v->RefDarkColorSet().Selection(3), oTo);
187 (*it)->setFrom(iFrom);
197 convert = atof(iFrom.
valueForKey(
"EnergyToLength [GeV/m]")->
value().c_str());
199 convert = atof(iFrom.
valueForKey(
"ValueToHeight [GeV/m]")->
value().c_str());
208 m_energyScale->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
224 TGLViewer*
v = gEve->GetDefaultGLViewer();
225 setGLColorFromConfig(v->RefLightColorSet().Selection(1), iFrom.
valueForKey(
"SelectionColorLight"));
226 setGLColorFromConfig(v->RefLightColorSet().Selection(3), iFrom.
valueForKey(
"HighlightColorLight"));
227 setGLColorFromConfig(v->RefDarkColorSet().Selection(1), iFrom.
valueForKey(
"SelectionColorDark"));
228 setGLColorFromConfig(v->RefDarkColorSet().Selection(3), iFrom.
valueForKey(
"HighlightColorDark"));
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
FWBoolParameter m_drawBreakPoints
TEveTrackPropagator * getTrackerTrackPropagator() const
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
TEveTrackPropagator * getTrackPropagator() const
sigc::signal< void, T > changed_
const FWColorManager * colorManager() const
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(int val, bool projected)
void setGeomTransparency(Color_t idx, bool projectedType)
const_iterator end() const
bool addEntry(Long_t id, const std::string &txt)
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
FWLongParameter m_geomTransparency3D
void setDrawBreakMarkers()
TEveTrackPropagator * getMuonTrackPropagator() const
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const std::string & value(unsigned int iIndex=0) const
FWLongParameter m_geomTransparency2D
std::auto_ptr< FWViewEnergyScale > m_energyScale
virtual void addTo(FWConfiguration &) const
void setBackgroundAndBrightness(BackgroundColorIndex, int)
FWParameters::Long FWLongParameter
virtual void setFrom(const FWConfiguration &)
const FWConfiguration * valueForKey(const std::string &iKey) const
FWEnumParameter m_trackBreak
volatile std::atomic< bool > shutdown_flag false
CmsShowCommon(fireworks::Context *)
virtual void addTo(FWConfiguration &) const