#include <OOTPileupCorrData.h>
|
void | apply (const HcalDetId &id, const double *inputCharge, unsigned lenInputCharge, const BunchXParameter *bcParams, unsigned lenBcParams, unsigned firstTimeSlice, unsigned nTimeSlices, double *correctedCharge, unsigned lenCorrectedCharge, bool *pulseShapeCorrApplied, bool *leakCorrApplied, bool *readjustTiming) const |
|
void | apply (const HcalDetId &id, double *ts, const int tsTrig) const |
|
const OOTPileupCorrDataFcn & | getCorrectionByID (const HcalDetId &id) const |
|
bool | inputIsEnergy () const |
|
| OOTPileupCorrData (const std::vector< OOTPileupCorrDataFcn > &corrs, const std::vector< uint32_t > &iEtaLimits, double chargeLimit, int requireFirstTS, int requireNTS, bool readjustTiming) |
|
| OOTPileupCorrData () |
|
virtual | ~OOTPileupCorrData () |
|
bool | operator!= (const AbsOOTPileupCorrection &r) const |
|
bool | operator== (const AbsOOTPileupCorrection &r) const |
|
virtual | ~AbsOOTPileupCorrection () |
|
|
template<class Archive > |
void | load (Archive &ar, const unsigned) |
|
template<class Archive > |
void | save (Archive &ar, const unsigned) const |
|
bool | validate () const |
|
Definition at line 14 of file OOTPileupCorrData.h.
OOTPileupCorrData::OOTPileupCorrData |
( |
const std::vector< OOTPileupCorrDataFcn > & |
corrs, |
|
|
const std::vector< uint32_t > & |
iEtaLimits, |
|
|
double |
chargeLimit, |
|
|
int |
requireFirstTS, |
|
|
int |
requireNTS, |
|
|
bool |
readjustTiming |
|
) |
| |
Definition at line 7 of file OOTPileupCorrData.cc.
References Exception, and validate().
22 "Invalid OOTPileupCorrData constructor arguments");
std::vector< uint32_t > iEtaLimits_
std::vector< OOTPileupCorrDataFcn > corrs_
virtual OOTPileupCorrData::~OOTPileupCorrData |
( |
| ) |
|
|
inlinevirtual |
OOTPileupCorrData::OOTPileupCorrData |
( |
| ) |
|
|
inline |
void OOTPileupCorrData::apply |
( |
const HcalDetId & |
id, |
|
|
const double * |
inputCharge, |
|
|
unsigned |
lenInputCharge, |
|
|
const BunchXParameter * |
bcParams, |
|
|
unsigned |
lenBcParams, |
|
|
unsigned |
firstTimeSlice, |
|
|
unsigned |
nTimeSlices, |
|
|
double * |
correctedCharge, |
|
|
unsigned |
lenCorrectedCharge, |
|
|
bool * |
pulseShapeCorrApplied, |
|
|
bool * |
leakCorrApplied, |
|
|
bool * |
readjustTiming |
|
) |
| const |
|
virtual |
Implements AbsOOTPileupCorrection.
Definition at line 40 of file OOTPileupCorrData.cc.
References Exception, i, readjustTiming_, requireFirstTS_, and requireNTS_.
Referenced by editorTools.UserCodeTool::__call__(), metTools.AddMETCollection::__call__(), and editorTools.ChangeSource::__call__().
49 if (inputCharge == 0 || correctedCharge == 0 ||
50 lenCorrectedCharge < lenInputCharge ||
51 pulseShapeCorrApplied == 0 || leakCorrApplied == 0 ||
54 "Invalid arguments in OOTPileupCorrData::apply");
56 for (
unsigned i=0;
i<lenInputCharge; ++
i)
57 correctedCharge[
i] = inputCharge[
i];
65 apply(
id, correctedCharge, firstTimeSlice);
67 *pulseShapeCorrApplied =
false;
68 *leakCorrApplied = fixCharge;
void apply(const HcalDetId &id, const double *inputCharge, unsigned lenInputCharge, const BunchXParameter *bcParams, unsigned lenBcParams, unsigned firstTimeSlice, unsigned nTimeSlices, double *correctedCharge, unsigned lenCorrectedCharge, bool *pulseShapeCorrApplied, bool *leakCorrApplied, bool *readjustTiming) const
void OOTPileupCorrData::apply |
( |
const HcalDetId & |
id, |
|
|
double * |
ts, |
|
|
const int |
tsTrig |
|
) |
| const |
|
inline |
bool OOTPileupCorrData::inputIsEnergy |
( |
| ) |
const |
|
inlinevirtual |
template<class Archive >
void OOTPileupCorrData::load |
( |
Archive & |
ar, |
|
|
const unsigned |
|
|
) |
| |
|
inlineprivate |
template<class Archive >
void OOTPileupCorrData::save |
( |
Archive & |
ar, |
|
|
const unsigned |
|
|
) |
| const |
|
inlineprivate |
bool OOTPileupCorrData::validate |
( |
| ) |
const |
|
private |
friend class boost::serialization::access |
|
friend |
double OOTPileupCorrData::chargeLimit_ |
|
private |
std::vector<uint32_t> OOTPileupCorrData::iEtaLimits_ |
|
private |
uint8_t OOTPileupCorrData::readjustTiming_ |
|
private |
int32_t OOTPileupCorrData::requireFirstTS_ |
|
private |
int32_t OOTPileupCorrData::requireNTS_ |
|
private |