CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FWMET3DProxyBuilder::Arrow Class Reference
Inheritance diagram for FWMET3DProxyBuilder::Arrow:

Public Member Functions

 Arrow (Float_t x, Float_t y, Float_t z, Float_t xo, Float_t yo, Float_t zo=0)
 
void setScale (FWViewEnergyScale *caloScale)
 

Public Attributes

float m_energy
 
float m_et
 
const FWViewContextm_vc
 

Detailed Description

Definition at line 37 of file FWMET3DProxyBuilder.cc.

Constructor & Destructor Documentation

◆ Arrow()

FWMET3DProxyBuilder::Arrow::Arrow ( Float_t  x,
Float_t  y,
Float_t  z,
Float_t  xo,
Float_t  yo,
Float_t  zo = 0 
)
inline

Definition at line 43 of file FWMET3DProxyBuilder.cc.

44  : TEveArrow(x, y, z, xo, yo, zo), m_et(0), m_energy(0), m_vc(nullptr) {}

Member Function Documentation

◆ setScale()

void FWMET3DProxyBuilder::Arrow::setScale ( FWViewEnergyScale caloScale)
inline

Definition at line 46 of file FWMET3DProxyBuilder.cc.

46  {
47  static float maxW = 3;
48  float scale = caloScale->getScaleFactor3D() * (caloScale->getPlotEt() ? m_et : m_energy);
49  fVector.Normalize();
50  fVector *= scale;
51  fTubeR = TMath::Min(maxW / scale, 0.08f);
52  fConeR = TMath::Min(maxW * 2.5f / scale, 0.25f);
53  }

References f, FWViewEnergyScale::getPlotEt(), FWViewEnergyScale::getScaleFactor3D(), m_energy, m_et, Min(), and Scenarios_cff::scale.

Referenced by FWMET3DProxyBuilder::build().

Member Data Documentation

◆ m_energy

float FWMET3DProxyBuilder::Arrow::m_energy

Definition at line 40 of file FWMET3DProxyBuilder.cc.

Referenced by FWMET3DProxyBuilder::build(), and setScale().

◆ m_et

float FWMET3DProxyBuilder::Arrow::m_et

Definition at line 39 of file FWMET3DProxyBuilder.cc.

Referenced by FWMET3DProxyBuilder::build(), and setScale().

◆ m_vc

const FWViewContext* FWMET3DProxyBuilder::Arrow::m_vc

Definition at line 41 of file FWMET3DProxyBuilder.cc.

Referenced by FWMET3DProxyBuilder::build().

DDAxes::y
FWMET3DProxyBuilder::Arrow::m_vc
const FWViewContext * m_vc
Definition: FWMET3DProxyBuilder.cc:41
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
FWViewEnergyScale::getPlotEt
bool getPlotEt() const
Definition: FWViewEnergyScale.h:47
DDAxes::x
FWMET3DProxyBuilder::Arrow::m_et
float m_et
Definition: FWMET3DProxyBuilder.cc:39
DDAxes::z
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
FWViewEnergyScale::getScaleFactor3D
float getScaleFactor3D() const
Definition: FWViewEnergyScale.h:44
FWMET3DProxyBuilder::Arrow::m_energy
float m_energy
Definition: FWMET3DProxyBuilder.cc:40
Min
T Min(T a, T b)
Definition: MathUtil.h:39