1 #ifndef CondFormats_HcalObjects_OOTPileupCorrDataFcn_h_ 2 #define CondFormats_HcalObjects_OOTPileupCorrDataFcn_h_ 22 {
return !(*
this ==
r);}
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 ts[tsTrig+1] =
a1_(ts[tsTrig]);
50 template<
class Archive>
53 ar & a1_ & a2_ & a3_ &
a_1_;
59 #endif // CondFormats_HcalObjects_OOTPileupCorrDataFcn_h_ const PiecewiseScalingPolynomial & getA1() const
const PiecewiseScalingPolynomial & getA2() const
PiecewiseScalingPolynomial a1_
bool operator!=(const OOTPileupCorrDataFcn &r) const
void pucorrection(double *ts, const int tsTrig) const
const ScalingExponential & getA_1() const
PiecewiseScalingPolynomial a3_
PiecewiseScalingPolynomial a2_
OOTPileupCorrDataFcn(const PiecewiseScalingPolynomial &a1, const PiecewiseScalingPolynomial &a2, const PiecewiseScalingPolynomial &a3, const ScalingExponential &a_1)
bool operator==(const OOTPileupCorrDataFcn &r) const
const PiecewiseScalingPolynomial & getA3() const
friend class boost::serialization::access
void serialize(Archive &ar, unsigned)