#include <OOTPileupCorrDataFcn.h>
|
template<class Archive > |
void | serialize (Archive &ar, unsigned) |
|
Definition at line 7 of file OOTPileupCorrDataFcn.h.
OOTPileupCorrDataFcn::OOTPileupCorrDataFcn |
( |
| ) |
|
|
inline |
Definition at line 12 of file OOTPileupCorrDataFcn.h.
PiecewiseScalingPolynomial a1_
PiecewiseScalingPolynomial a3_
PiecewiseScalingPolynomial a2_
void OOTPileupCorrDataFcn::pucorrection |
( |
double * |
ts, |
|
|
const int |
tsTrig |
|
) |
| const |
|
inline |
Definition at line 24 of file OOTPileupCorrDataFcn.h.
References a1_, a2_, a3_, and a_1_.
27 double ts20 = ts[tsTrig-2];
28 double ts30 = ts[tsTrig-1] -
a_1_(ts[tsTrig]);
29 double ts21 = ts20 > 0 ?
a2_(ts20) : 0;
30 double ts22 = ts20 > 0 ?
a1_(ts20) : 0;
31 double ts321 = ts30 - ts22 > 0 ?
a1_(ts30 - ts22) : 0;
32 ts[tsTrig] -= (ts321 + ts21);
35 double ts52 = ts20 > 0 ?
a3_(ts20) : 0;
36 double ts51 = ts30 - ts22 > 0 ?
a2_(ts30 - ts22) : 0;
37 ts[tsTrig+1] -= (ts51 + ts52);
PiecewiseScalingPolynomial a1_
PiecewiseScalingPolynomial a3_
PiecewiseScalingPolynomial a2_
template<class Archive >
void OOTPileupCorrDataFcn::serialize |
( |
Archive & |
ar, |
|
|
unsigned |
|
|
) |
| |
|
inlineprivate |
friend class boost::serialization::access |
|
friend |