#include <HcalDeterministicFit.h>
Public Member Functions | |
template<class Digi > | |
void | apply (const CaloSamples &cs, const std::vector< int > &capidvec, const HcalCalibrations &calibs, const Digi &digi, double &l, float &time) const |
void | getLandauFrac (float tStart, float tEnd, float &sum) const |
HcalDeterministicFit () | |
void | init (HcalTimeSlew::ParaSource tsParam, HcalTimeSlew::BiasSetting bias, bool iApplyTimeSlew, PedestalSub pedSubFxn_, std::vector< double > pars, double respCorr) |
void | phase1Apply (const HBHEChannelInfo &channelData, float &reconstructedEnergy, float &reconstructedTime) const |
~HcalDeterministicFit () | |
Private Attributes | |
bool | applyTimeSlew_ |
double | fpars [9] |
PedestalSub | fPedestalSubFxn_ |
double | frespCorr |
HcalTimeSlew::ParaSource | fTimeSlew |
HcalTimeSlew::BiasSetting | fTimeSlewBias |
Static Private Attributes | |
static constexpr int | HcalRegion [2] = {16, 17} |
static constexpr float | invGpar [3] = {-13.11, 11.29, 5.133} |
static constexpr float | landauFrac [] |
static constexpr float | negThresh [2] = {-3., 15.} |
static constexpr float | rCorr [2] = {0.95, 0.95} |
static constexpr float | rCorrSiPM [2] = {1., 1.} |
static constexpr int | tsWidth = 25 |
Definition at line 16 of file HcalDeterministicFit.h.
HcalDeterministicFit::HcalDeterministicFit | ( | ) |
Definition at line 14 of file HcalDeterministicFit.cc.
HcalDeterministicFit::~HcalDeterministicFit | ( | ) |
Definition at line 17 of file HcalDeterministicFit.cc.
void HcalDeterministicFit::apply | ( | const CaloSamples & | cs, |
const std::vector< int > & | capidvec, | ||
const HcalCalibrations & | calibs, | ||
const Digi & | digi, | ||
double & | ampl, | ||
float & | time | ||
) | const |
Definition at line 64 of file HcalDeterministicFit.h.
References funct::abs(), PedestalSub::calculate(), ALCARECOTkAlJpsiMuMu_cff::charge, HcalTimeSlew::delay(), fpars, fPedestalSubFxn_, frespCorr, fTimeSlew, fTimeSlewBias, muonCSCDigis_cfi::gain, getLandauFrac(), HcalRegion, HcalDetId::ieta(), invGpar, cmsBatch::log, negThresh, HcalCalibrations::pedestal(), particleFlowDisplacedVertex_cfi::ratio, rCorr, HcalCalibrations::respcorrgain(), CaloSamples::size(), mathSSE::sqrt(), and tsWidth.
Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), HcalSimpleRecAlgoImpl::reco(), and HcalSimpleRecAlgoImpl::recoHBHE().
void HcalDeterministicFit::getLandauFrac | ( | float | tStart, |
float | tEnd, | ||
float & | sum | ||
) | const |
Definition at line 38 of file HcalDeterministicFit.cc.
References funct::abs(), and createfilelist::int.
Referenced by apply().
void HcalDeterministicFit::init | ( | HcalTimeSlew::ParaSource | tsParam, |
HcalTimeSlew::BiasSetting | bias, | ||
bool | iApplyTimeSlew, | ||
PedestalSub | pedSubFxn_, | ||
std::vector< double > | pars, | ||
double | respCorr | ||
) |
Definition at line 20 of file HcalDeterministicFit.cc.
References constexpr, and landauFrac.
void HcalDeterministicFit::phase1Apply | ( | const HBHEChannelInfo & | channelData, |
float & | reconstructedEnergy, | ||
float & | reconstructedTime | ||
) | const |
Definition at line 48 of file HcalDeterministicFit.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, HcalTimeSlew::delay(), muonCSCDigis_cfi::gain, HBHEChannelInfo::hasTimeInfo(), HBHEChannelInfo::id(), HcalDetId::ieta(), cmsBatch::log, HBHEChannelInfo::nSamples(), particleFlowDisplacedVertex_cfi::ratio, mathSSE::sqrt(), HBHEChannelInfo::tsGain(), HBHEChannelInfo::tsPedestal(), and HBHEChannelInfo::tsRawCharge().
Referenced by SimpleHBHEPhase1Algo::reconstruct().
|
private |
Definition at line 36 of file HcalDeterministicFit.h.
|
private |
Definition at line 38 of file HcalDeterministicFit.h.
Referenced by apply().
|
private |
Definition at line 35 of file HcalDeterministicFit.h.
Referenced by apply().
|
private |
Definition at line 39 of file HcalDeterministicFit.h.
Referenced by apply().
|
private |
Definition at line 33 of file HcalDeterministicFit.h.
Referenced by apply().
|
private |
Definition at line 34 of file HcalDeterministicFit.h.
Referenced by apply().
|
staticprivate |
Definition at line 41 of file HcalDeterministicFit.h.
Referenced by apply().
|
staticprivate |
Definition at line 44 of file HcalDeterministicFit.h.
Referenced by apply().
|
staticprivate |
Definition at line 47 of file HcalDeterministicFit.h.
Referenced by init().
|
staticprivate |
Definition at line 43 of file HcalDeterministicFit.h.
Referenced by apply().
|
staticprivate |
Definition at line 45 of file HcalDeterministicFit.h.
Referenced by apply().
|
staticprivate |
Definition at line 46 of file HcalDeterministicFit.h.
|
staticprivate |
Definition at line 42 of file HcalDeterministicFit.h.
Referenced by apply().