#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 override |
|
void | apply (const HcalDetId &id, double *ts, const int tsTrig) const |
|
const OOTPileupCorrDataFcn & | getCorrectionByID (const HcalDetId &id) const |
|
bool | inputIsEnergy () const override |
|
| OOTPileupCorrData () |
|
| OOTPileupCorrData (const std::vector< OOTPileupCorrDataFcn > &corrs, const std::vector< uint32_t > &iEtaLimits, double chargeLimit, int requireFirstTS, int requireNTS, bool readjustTiming) |
|
| ~OOTPileupCorrData () override |
|
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() [1/2]
OOTPileupCorrData::OOTPileupCorrData |
( |
const std::vector< OOTPileupCorrDataFcn > & |
corrs, |
|
|
const std::vector< uint32_t > & |
iEtaLimits, |
|
|
double |
chargeLimit, |
|
|
int |
requireFirstTS, |
|
|
int |
requireNTS, |
|
|
bool |
readjustTiming |
|
) |
| |
◆ ~OOTPileupCorrData()
OOTPileupCorrData::~OOTPileupCorrData |
( |
| ) |
|
|
inlineoverride |
◆ OOTPileupCorrData() [2/2]
OOTPileupCorrData::OOTPileupCorrData |
( |
| ) |
|
|
inline |
◆ apply() [1/2]
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 |
|
overridevirtual |
Implements AbsOOTPileupCorrection.
Definition at line 37 of file OOTPileupCorrData.cc.
50 if (inputCharge ==
nullptr || correctedCharge ==
nullptr || lenCorrectedCharge < lenInputCharge ||
51 pulseShapeCorrApplied ==
nullptr || leakCorrApplied ==
nullptr || readjustTiming ==
nullptr)
52 throw cms::Exception(
"Invalid arguments in OOTPileupCorrData::apply");
54 for (
unsigned i = 0;
i < lenInputCharge; ++
i)
55 correctedCharge[
i] = inputCharge[
i];
58 const bool fixCharge = (requireFirstTS_ < 0 || requireFirstTS_ == static_cast<int32_t>(firstTimeSlice)) &&
61 apply(
id, correctedCharge, firstTimeSlice);
63 *pulseShapeCorrApplied =
false;
64 *leakCorrApplied = fixCharge;
References apply(), Exception, mps_fire::i, readjustTiming_, and requireNTS_.
Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), heavyIonTools.SelectionDefaults::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and apply().
◆ apply() [2/2]
void OOTPileupCorrData::apply |
( |
const HcalDetId & |
id, |
|
|
double * |
ts, |
|
|
const int |
tsTrig |
|
) |
| const |
|
inline |
Definition at line 78 of file OOTPileupCorrData.h.
References funct::abs(), chargeLimit_, corrs_, LEDCalibrationChannels::ieta, iEtaLimits_, TH2PolyOfflineMaps::limits, mitigatedMETSequence_cff::U, and eostools::which().
Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), heavyIonTools.SelectionDefaults::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), and jetTools.SetTagInfos::__call__().
◆ getCorrectionByID()
◆ inputIsEnergy()
bool OOTPileupCorrData::inputIsEnergy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isEqual()
|
inlineoverrideprotectedvirtual |
◆ load()
template<class Archive >
void OOTPileupCorrData::load |
( |
Archive & |
ar, |
|
|
const unsigned |
|
|
) |
| |
|
inlineprivate |
◆ save()
template<class Archive >
void OOTPileupCorrData::save |
( |
Archive & |
ar, |
|
|
const unsigned |
|
|
) |
| const |
|
inlineprivate |
◆ validate()
bool OOTPileupCorrData::validate |
( |
| ) |
const |
|
private |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ chargeLimit_
double OOTPileupCorrData::chargeLimit_ |
|
private |
◆ corrs_
◆ iEtaLimits_
std::vector<uint32_t> OOTPileupCorrData::iEtaLimits_ |
|
private |
◆ readjustTiming_
uint8_t OOTPileupCorrData::readjustTiming_ |
|
private |
◆ requireFirstTS_
int32_t OOTPileupCorrData::requireFirstTS_ |
|
private |
◆ requireNTS_
int32_t OOTPileupCorrData::requireNTS_ |
|
private |
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 override