1 #ifndef MaterialAccountingStep_h 2 #define MaterialAccountingStep_h 43 std::pair<MaterialAccountingStep, MaterialAccountingStep>
split(
double fraction)
const {
46 m_in.
y() * fraction + m_out.
y() * (1. -
fraction),
47 m_in.
z() * fraction + m_out.
z() * (1. -
fraction));
50 fraction * m_length, fraction * m_radiationLengths, fraction * m_energyLoss, m_in, limit);
53 (1 - fraction) * m_length, (1 - fraction) * m_radiationLengths, (1 - fraction) * m_energyLoss, limit, m_out);
54 return std::make_pair(part1, part2);
110 m_radiationLengths *=
x;
118 m_radiationLengths /=
x;
160 #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)