CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
CmsShowCommon Class Reference

#include <Fireworks/Core/interface/CmsShowCommon.h>

Inheritance diagram for CmsShowCommon:
FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

void addTo (FWConfiguration &) const override
 
 CmsShowCommon (fireworks::Context *)
 
int gamma ()
 
const TGLColorSet & getDarkColorSet () const
 
FWViewEnergyScalegetEnergyScale () const
 
void getEventCenter (float *inC) const
 
const TGLColorSet & getLightColorSet () const
 
UChar_t getProjTrackBreaking () const
 
bool getRnrPTBMarkers () const
 
void loopPalettes ()
 
void permuteColors ()
 
void randomizeColors ()
 
void resetEventCenter ()
 
void setDrawBreakMarkers ()
 
void setEventCenter (float, float, float)
 
void setFrom (const FWConfiguration &) override
 
void setGamma ()
 
void setGeomColor (FWGeomColorIndex, Color_t)
 
void setGeomTransparency (int val, bool projected)
 
void setTrackBreakMode ()
 
void setView (CmsShowCommonPopup *x)
 
void switchBackground ()
 
 ~CmsShowCommon () override
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
unsigned int version () const
 
virtual ~FWConfigurableParameterizable ()
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Public Attributes

sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
 

Protected Member Functions

const FWColorManagercolorManager () const
 
void setPalette ()
 

Protected Attributes

FWLongParameter m_backgroundColor
 
fireworks::Contextm_context
 
TGLColorSet m_darkColorSet
 
FWBoolParameter m_drawBreakPoints
 
TEveVector m_externalEventCenter
 
FWLongParameter m_gamma
 
FWLongParameterm_geomColors [kFWGeomColorSize]
 
FWLongParameter m_geomTransparency2D
 
FWLongParameter m_geomTransparency3D
 
TGLColorSet m_lightColorSet
 
FWEnumParameter m_palette
 
FWEnumParameter m_trackBreak
 
bool m_useBeamSpot
 
CmsShowCommonPopupm_view
 
FWViewContext m_viewContext
 

Private Member Functions

 CmsShowCommon (const CmsShowCommon &)=delete
 
const CmsShowCommonoperator= (const CmsShowCommon &)=delete
 

Friends

class CmsShowCommonPopup
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector< FWParameterBase * >::const_iterator const_iterator
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 44 of file CmsShowCommon.h.

Constructor & Destructor Documentation

CmsShowCommon::CmsShowCommon ( fireworks::Context c)

Definition at line 40 of file CmsShowCommon.cc.

References FWEnumParameter::addEntry(), FWGenericParameter< T >::changed_, fireworks::Context::colorManager(), colorManager(), FWColorManager::getPalette(), mps_fire::i, FWColorManager::kArctic, FWColorManager::kClassic, FWColorManager::kFall, kFWGeomColorSize, FWColorManager::kPurple, FWColorManager::kSpring, checklumidiff::l, m_context, m_darkColorSet, m_drawBreakPoints, m_gamma, m_geomColors, m_lightColorSet, m_palette, m_trackBreak, m_viewContext, dataset::name, FWGenericParameter< T >::set(), setDrawBreakMarkers(), FWViewContext::setEnergyScale(), setGamma(), and setTrackBreakMode().

40  :
42  m_view(nullptr),
43  m_context(c),
44  m_trackBreak(this, " ", 2l, 0l, 2l), // do not want to render text at setter
45  m_drawBreakPoints(this, "Show y=0 points as markers", false),
46  m_backgroundColor(this, "backgroundColIdx", 1l, 0l, 1000l),
47  m_gamma(this, "Brightness", 0l, -15l, 15l),
48  m_palette(this, "Palette", 1l, 0l, 2l ),
49  m_geomTransparency2D(this, "Transparency 2D", long(colorManager()->geomTransparency(true)), 0l, 100l),
50  m_geomTransparency3D(this, "Transparency 3D", long(colorManager()->geomTransparency(false)), 0l, 100l),
51  m_useBeamSpot(true)
52 {
54  // projections
55  m_trackBreak.addEntry(0, "Jump to proper hemisphere");
56  m_trackBreak.addEntry(1, "Stay on first point side");
57  m_trackBreak.addEntry(2, "Stay on last point side");
58 
64 
65  // colors
66  char name[32];
67  for (int i = 0; i < kFWGeomColorSize; ++i)
68  {
69  snprintf(name, 31, "GeometryColor %d ", i);
70  m_geomColors[i] = new FWLongParameter(this, name , long(colorManager()->geomColor(FWGeomColorIndex(i))), 1000l, 1100l);
71  }
72 
73  m_trackBreak.changed_.connect(boost::bind(&CmsShowCommon::setTrackBreakMode, this));
76  m_gamma.changed_.connect(boost::bind(&CmsShowCommon::setGamma, this));
77 
78  m_lightColorSet.StdLightBackground();
79  m_darkColorSet .StdDarkBackground();
80 }
TGLColorSet m_lightColorSet
FWBoolParameter m_drawBreakPoints
FWConfigurableParameterizable(unsigned int iVersion=1)
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
sigc::signal< void, T > changed_
const FWColorManager * colorManager() const
FWLongParameter m_gamma
bool addEntry(Long_t id, const std::string &txt)
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
FWLongParameter m_geomTransparency3D
void setDrawBreakMarkers()
FWViewContext m_viewContext
FWLongParameter m_geomTransparency2D
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:96
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
Definition: FWParameters.h:35
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:99
EPalette getPalette() const
FWEnumParameter m_palette
void setEnergyScale(FWViewEnergyScale *)
CmsShowCommon::~CmsShowCommon ( )
override

Definition at line 82 of file CmsShowCommon.cc.

83 {
84 }
CmsShowCommon::CmsShowCommon ( const CmsShowCommon )
privatedelete

Member Function Documentation

void CmsShowCommon::addTo ( FWConfiguration oTo) const
overridevirtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 234 of file CmsShowCommon.cc.

References FWConfigurableParameterizable::addTo(), colorManager(), FWViewContext::getEnergyScale(), m_backgroundColor, m_darkColorSet, m_lightColorSet, m_viewContext, and FWGenericParameter< T >::set().

235 {
236  m_backgroundColor.set(int(colorManager()->background()));
237 
240 
241  if (gEve)
242  {
243  addGLColorToConfig("SelectionColorLight", m_lightColorSet.Selection(1), oTo);
244  addGLColorToConfig("HighlightColorLight", m_lightColorSet.Selection(3), oTo);
245  addGLColorToConfig("SelectionColorDark", m_darkColorSet .Selection(1), oTo);
246  addGLColorToConfig("HighlightColorDark", m_darkColorSet .Selection(3), oTo);
247  }
248 }
TGLColorSet m_lightColorSet
FWLongParameter m_backgroundColor
FWViewEnergyScale * getEnergyScale() const
const FWColorManager * colorManager() const
FWViewContext m_viewContext
TGLColorSet m_darkColorSet
virtual void addTo(FWConfiguration &) const
const FWColorManager * CmsShowCommon::colorManager ( ) const
protected
int CmsShowCommon::gamma ( )
inline
const TGLColorSet& CmsShowCommon::getDarkColorSet ( ) const
inline

Definition at line 76 of file CmsShowCommon.h.

Referenced by FWEveView::setFrom().

76 { return m_darkColorSet; }
TGLColorSet m_darkColorSet
FWViewEnergyScale* CmsShowCommon::getEnergyScale ( ) const
inline

Definition at line 72 of file CmsShowCommon.h.

Referenced by CmsShowCommonPopup::CmsShowCommonPopup(), FWEveViewManager::setContext(), and FWEveView::useGlobalEnergyScaleChanged().

72 { return m_viewContext.getEnergyScale(); }
FWViewEnergyScale * getEnergyScale() const
FWViewContext m_viewContext
void CmsShowCommon::getEventCenter ( float *  inC) const

Definition at line 347 of file CmsShowCommon.cc.

References ecalDrivenElectronSeedsParameters_cff::beamSpot, objects.autophobj::float, fireworks::Context::getBeamSpot(), fireworks::Context::getInstance(), m_externalEventCenter, m_useBeamSpot, FWBeamSpot::x0(), FWBeamSpot::y0(), and FWBeamSpot::z0().

Referenced by FWRPZView::eventBegin(), FWRPZView::eventEnd(), FWJetProxyBuilder::scaleProduct(), and FWRPZView::setupEventCenter().

348 {
349  if (m_useBeamSpot) {
351  iC[0] = float(beamSpot->x0());
352  iC[1] = float(beamSpot->y0());
353  iC[2] = float(beamSpot->z0());
354  }
355  else {
356  iC[0] = m_externalEventCenter.fX;
357  iC[1] = m_externalEventCenter.fY;
358  iC[2] = m_externalEventCenter.fZ;
359  }
360 }
double x0() const
Definition: FWBeamSpot.cc:30
double z0() const
Definition: FWBeamSpot.cc:40
double y0() const
Definition: FWBeamSpot.cc:35
FWBeamSpot * getBeamSpot() const
Definition: Context.h:78
TEveVector m_externalEventCenter
static Context * getInstance()
Definition: Context.cc:243
const TGLColorSet& CmsShowCommon::getLightColorSet ( ) const
inline

Definition at line 75 of file CmsShowCommon.h.

Referenced by FWEveView::setFrom().

75 { return m_lightColorSet; }
TGLColorSet m_lightColorSet
UChar_t CmsShowCommon::getProjTrackBreaking ( ) const
inline

Definition at line 79 of file CmsShowCommon.h.

Referenced by fireworks::Context::initEveElements().

79 { return m_trackBreak.value(); }
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:99
bool CmsShowCommon::getRnrPTBMarkers ( ) const
inline

Definition at line 80 of file CmsShowCommon.h.

Referenced by fireworks::Context::initEveElements().

80 { return m_drawBreakPoints.value(); }
FWBoolParameter m_drawBreakPoints
void CmsShowCommon::loopPalettes ( )

Definition at line 327 of file CmsShowCommon.cc.

References CmsShowCommonPopup::getCombo(), FWColorManager::kPaletteFirst, FWColorManager::kPaletteLast, m_palette, m_view, FWGenericParameter< T >::set(), setPalette(), heppy_batch::val, and FWGenericParameter< T >::value().

328 {
329  int val = m_palette.value();
330  val++;
331 
332  if (val >= FWColorManager::kPaletteLast)
334 
335  if (m_view)
336  {
337  TGComboBox* combo = m_view->getCombo();
338  combo->Select(val, true);
339  }
340  else
341  {
342  m_palette.set(val);
343  setPalette();
344  }
345 }
TGComboBox * getCombo()
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:96
FWEnumParameter m_palette
const CmsShowCommon& CmsShowCommon::operator= ( const CmsShowCommon )
privatedelete
void CmsShowCommon::permuteColors ( )

Definition at line 138 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), mps_fire::i, m_context, and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::permuteColors().

139 {
140  // printf("Reverting order of existing colors ...\n");
141 
142  std::vector<Color_t> colv;
143  colv.reserve(64);
144 
146  i != m_context->eventItemsManager()->end(); ++i)
147  {
148  colv.push_back((*i)->defaultDisplayProperties().color());
149  }
150 
151  int vi = colv.size() - 1;
153  i != m_context->eventItemsManager()->end(); ++i, --vi)
154  {
155  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
156  prop.setColor(colv[vi]);
157  (*i)->setDefaultDisplayProperties(prop);
158 
159  (*i)->defaultDisplayPropertiesChanged_(*i);
160  }
161  }
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::randomizeColors ( )

Definition at line 164 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), cuy::col, FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), mps_fire::i, m_context, rand(), and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::randomizeColors().

165 {
166  // printf("Doing random_shuffle on existing colors ...\n");
167 
168  int vi = 0;
170  i != m_context->eventItemsManager()->end(); ++i, ++vi)
171  {
172  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
173 
174  int col = rand() % 17; // randomize in first row of palette
175  prop.setColor(col);
176  (*i)->setDefaultDisplayProperties(prop);
177 
178  (*i)->defaultDisplayPropertiesChanged_(*i);
179  }
180 }
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
col
Definition: cuy.py:1008
Signal rand(Signal arg)
Definition: vlib.cc:442
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::resetEventCenter ( )

Definition at line 370 of file CmsShowCommon.cc.

References ecalDrivenElectronSeedsParameters_cff::beamSpot, fwLog, fireworks::Context::getBeamSpot(), fireworks::Context::getInstance(), fwlog::kInfo, m_useBeamSpot, setEventCenter(), FWBeamSpot::x0(), FWBeamSpot::y0(), and FWBeamSpot::z0().

Referenced by FWVertexProxyBuilder::build().

371 {
372  if (!m_useBeamSpot) {
373  fwLog( fwlog::kInfo ) << "CmsShowCommon re-set event center to BeamSpot\n ";
374  m_useBeamSpot = true;
376  setEventCenter(beamSpot->x0(), beamSpot->y0(), beamSpot->z0());
377  }
378 }
double x0() const
Definition: FWBeamSpot.cc:30
double z0() const
Definition: FWBeamSpot.cc:40
double y0() const
Definition: FWBeamSpot.cc:35
FWBeamSpot * getBeamSpot() const
Definition: Context.h:78
static Context * getInstance()
Definition: Context.cc:243
void setEventCenter(float, float, float)
#define fwLog(_level_)
Definition: fwLog.h:50
void CmsShowCommon::setDrawBreakMarkers ( )

Definition at line 112 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_drawBreakPoints, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

113 {
114  if (m_context->getTrackPropagator()->GetRnrPTBMarkers() != m_drawBreakPoints.value())
115  {
116  m_context->getTrackPropagator()->SetRnrPTBMarkers(m_drawBreakPoints.value());
119  gEve->Redraw3D();
120  }
121 }
FWBoolParameter m_drawBreakPoints
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:74
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:73
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:75
void CmsShowCommon::setEventCenter ( float  x,
float  y,
float  z 
)

Definition at line 362 of file CmsShowCommon.cc.

References eventCenterChanged_, m_externalEventCenter, and m_useBeamSpot.

Referenced by FWVertexProxyBuilder::build(), and resetEventCenter().

363 {
364  m_useBeamSpot = false;
365  m_externalEventCenter.Set(x, y, z);
366  eventCenterChanged_.emit(this);
367 }
sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
Definition: CmsShowCommon.h:88
TEveVector m_externalEventCenter
void CmsShowCommon::setFrom ( const FWConfiguration iFrom)
overridevirtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 251 of file CmsShowCommon.cc.

References FWParameterizable::begin(), fireworks::Context::colorManager(), fileCollector::convert(), FWParameterizable::end(), stringResolutionProvider_cfi::et, FWViewContext::getEnergyScale(), mps_fire::i, kFWGeomColorSize, m_backgroundColor, m_context, m_darkColorSet, m_gamma, m_geomColors, m_geomTransparency2D, m_geomTransparency3D, m_lightColorSet, m_viewContext, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, FWColorManager::setBackgroundAndBrightness(), FWViewEnergyScale::SetFromCmsShowCommonConfig(), FWColorManager::setGeomColor(), FWColorManager::setGeomTransparency(), setPalette(), relativeConstraints::value, FWConfiguration::value(), FWGenericParameter< T >::value(), and FWConfiguration::valueForKey().

252 {
253  for(const_iterator it =begin(), itEnd = end();
254  it != itEnd;
255  ++it) {
256  (*it)->setFrom(iFrom);
257  }
258 
259  if (iFrom.valueForKey("Palette"))
260  setPalette();
261 
262  // handle old and new energy scale configuration if existing
263  if (iFrom.valueForKey("ScaleMode"))
264  {
265  long mode = atol(iFrom.valueForKey("ScaleMode")->value().c_str());
266 
267  float convert;
268  if (iFrom.valueForKey("EnergyToLength [GeV/m]"))
269  convert = atof(iFrom.valueForKey("EnergyToLength [GeV/m]")->value().c_str());
270  else
271  convert = atof(iFrom.valueForKey("ValueToHeight [GeV/m]")->value().c_str());
272 
273  float maxH;
274  if (iFrom.valueForKey("MaximumLength [m]"))
275  maxH = atof(iFrom.valueForKey("MaximumLength [m]")->value().c_str());
276  else
277  maxH = atof(iFrom.valueForKey("MaxTowerH [m]")->value().c_str());
278 
279  int et = atoi(iFrom.valueForKey("PlotEt")->value().c_str());
280  m_viewContext.getEnergyScale()->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
281  }
282 
283  // background
286 
287  // geom colors
290 
291  for (int i = 0; i < kFWGeomColorSize; ++i)
293 
294  if (gEve)
295  {
296  setGLColorFromConfig(m_lightColorSet.Selection(1), iFrom.valueForKey("SelectionColorLight"));
297  setGLColorFromConfig(m_lightColorSet.Selection(3), iFrom.valueForKey("HighlightColorLight"));
298  setGLColorFromConfig(m_darkColorSet .Selection(1), iFrom.valueForKey("SelectionColorDark"));
299  setGLColorFromConfig(m_darkColorSet .Selection(3), iFrom.valueForKey("HighlightColorDark"));
300  }
301 }
TGLColorSet m_lightColorSet
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
FWViewEnergyScale * getEnergyScale() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
FWLongParameter m_gamma
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(Color_t idx, bool projectedType)
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
const_iterator end() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
def convert(infile, ofile)
FWLongParameter m_geomTransparency3D
FWViewContext m_viewContext
const std::string & value(unsigned int iIndex=0) const
FWLongParameter m_geomTransparency2D
et
define resolution functions of each parameter
void setBackgroundAndBrightness(BackgroundColorIndex, int)
TGLColorSet m_darkColorSet
const FWConfiguration * valueForKey(const std::string &iKey) const
void CmsShowCommon::setGamma ( )

Definition at line 124 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_gamma, FWColorManager::setBrightness(), and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

125 {
127 }
FWColorManager * colorManager() const
Definition: Context.h:65
FWLongParameter m_gamma
void setBrightness(int)
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
void CmsShowCommon::setGeomColor ( FWGeomColorIndex  cidx,
Color_t  iColor 
)

Definition at line 183 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_geomColors, FWGenericParameter< T >::set(), and FWColorManager::setGeomColor().

Referenced by CmsShowCommonPopup::changeGeomColor().

184 {
185  m_geomColors[cidx]->set(iColor);
186  m_context->colorManager()->setGeomColor(cidx, iColor);
187 }
FWColorManager * colorManager() const
Definition: Context.h:65
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
void CmsShowCommon::setGeomTransparency ( int  val,
bool  projected 
)
void CmsShowCommon::setPalette ( )
protected

Definition at line 306 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), fireworks::Context::colorManager(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), FWColorManager::geomColor(), mps_fire::i, kFWGeomColorSize, m_context, m_geomColors, m_palette, FWColorManager::propagatePaletteChanges(), FWGenericParameter< T >::set(), FWColorManager::setPalette(), and FWGenericParameter< T >::value().

Referenced by Vispa.Views.LineDecayView.LineDecayView::__init__(), loopPalettes(), setFrom(), and CmsShowCommonPopup::setPaletteGUI().

307 {
309  cm->setPalette(m_palette.value());
310 
311  for (int i = 0 ; i < kFWGeomColorSize; ++i) {
314  // m_colorSelectWidget[i]->SetColorByIndex(cm->geomColor(FWGeomColorIndex(i)), kFALSE);
315  }
316 
319  i != m_context->eventItemsManager()->end(); ++i)
320  {
321  (*i)->resetColor();
322  }
323 }
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setPalette(long long)
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
void propagatePaletteChanges() const
Color_t geomColor(FWGeomColorIndex) const
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
FWEnumParameter m_palette
void CmsShowCommon::setTrackBreakMode ( )

Definition at line 97 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_trackBreak, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

98 {
99  if (m_context->getTrackPropagator()->GetProjTrackBreaking() != m_trackBreak.value())
100  {
101  m_context->getTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
102  m_context->getTrackerTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
103  m_context->getMuonTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
104  gEve->Redraw3D();
105  }
106 }
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:74
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:73
fireworks::Context * m_context
Definition: CmsShowCommon.h:97
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:75
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:99
void CmsShowCommon::setView ( CmsShowCommonPopup x)
inline

Definition at line 82 of file CmsShowCommon.h.

References x.

Referenced by FWGUIManager::showCommonPopup().

82 { m_view= x;}
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:96
void CmsShowCommon::switchBackground ( )

Definition at line 130 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), colorManager(), m_backgroundColor, m_context, FWGenericParameter< T >::set(), and FWColorManager::switchBackground().

Referenced by CmsShowCommonPopup::switchBackground().

131 {
133  m_backgroundColor.set(colorManager()->background());
134 }
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
Definition: Context.h:65
const FWColorManager * colorManager() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:97

Friends And Related Function Documentation

friend class CmsShowCommonPopup
friend

Definition at line 46 of file CmsShowCommon.h.

Member Data Documentation

sigc::signal<void, const CmsShowCommon*> CmsShowCommon::eventCenterChanged_
mutable

Definition at line 88 of file CmsShowCommon.h.

Referenced by FWEveViewManager::setContext(), and setEventCenter().

FWLongParameter CmsShowCommon::m_backgroundColor
mutableprotected

Definition at line 103 of file CmsShowCommon.h.

Referenced by addTo(), setFrom(), and switchBackground().

fireworks::Context* CmsShowCommon::m_context
protected
TGLColorSet CmsShowCommon::m_darkColorSet
protected
FWBoolParameter CmsShowCommon::m_drawBreakPoints
protected
TEveVector CmsShowCommon::m_externalEventCenter
protected

Definition at line 118 of file CmsShowCommon.h.

Referenced by getEventCenter(), and setEventCenter().

FWLongParameter CmsShowCommon::m_gamma
protected
FWLongParameter* CmsShowCommon::m_geomColors[kFWGeomColorSize]
protected

Definition at line 110 of file CmsShowCommon.h.

Referenced by CmsShowCommon(), setFrom(), setGeomColor(), and setPalette().

FWLongParameter CmsShowCommon::m_geomTransparency2D
protected

Definition at line 108 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

FWLongParameter CmsShowCommon::m_geomTransparency3D
protected

Definition at line 109 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

TGLColorSet CmsShowCommon::m_lightColorSet
protected
FWEnumParameter CmsShowCommon::m_palette
mutableprotected
FWEnumParameter CmsShowCommon::m_trackBreak
protected
bool CmsShowCommon::m_useBeamSpot
protected

Definition at line 117 of file CmsShowCommon.h.

Referenced by getEventCenter(), resetEventCenter(), and setEventCenter().

CmsShowCommonPopup* CmsShowCommon::m_view
protected

Definition at line 96 of file CmsShowCommon.h.

Referenced by loopPalettes().

FWViewContext CmsShowCommon::m_viewContext
protected

Definition at line 115 of file CmsShowCommon.h.

Referenced by addTo(), CmsShowCommon(), and setFrom().