1 #ifndef MaterialAccountingStep_h 2 #define MaterialAccountingStep_h 64 std::pair<MaterialAccountingStep, MaterialAccountingStep>
split(
double fraction )
const {
67 m_in.
x() * fraction + m_out.
x() * (1. -
fraction),
68 m_in.
y() * fraction + m_out.
y() * (1. -
fraction),
69 m_in.
z() * fraction + m_out.
z() * (1. -
fraction)
73 fraction * m_radiationLengths,
74 fraction * m_energyLoss,
79 (1 - fraction) * m_radiationLengths,
80 (1 - fraction) * m_energyLoss,
83 return std::make_pair( part1, part2 );
139 m_radiationLengths *=
x;
147 m_radiationLengths /=
x;
195 #endif // MaterialAccountingStep_h MaterialAccountingStep & operator=(const MaterialAccountingStep &step)
assignement operator
MaterialAccountingStep operator*(const MaterialAccountingStep &x, const MaterialAccountingStep &y)
double length(void) const
Global3DPoint GlobalPoint
MaterialAccountingStep(void)
double radiationLengths(void) const
MaterialAccountingStep & operator*=(const MaterialAccountingStep &step)
multiply two steps, usefull to implement (co)variance
MaterialAccountingStep & operator*=(double x)
multiply by a scalar
double energyLoss(void) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
MaterialAccountingStep & operator+=(const MaterialAccountingStep &step)
add a step
double m_radiationLengths
MaterialAccountingStep & operator/=(double x)
divide by a scalar
MaterialAccountingStep operator/(const MaterialAccountingStep &x, double y)
std::pair< MaterialAccountingStep, MaterialAccountingStep > split(double fraction) const
split the step (0..1) in (0..f) + (f..1) using linear interpolation
const GlobalPoint & out(void) const
MaterialAccountingStep operator-(const MaterialAccountingStep &x, const MaterialAccountingStep &y)
MaterialAccountingStep & operator-=(const MaterialAccountingStep &step)
subtract a step
static int position[264][3]
MaterialAccountingStep(double position, double radlen, double loss, const GlobalPoint &in, const GlobalPoint &out)
const GlobalPoint & in(void) const
MaterialAccountingStep operator+(const MaterialAccountingStep &x, const MaterialAccountingStep &y)