#include <HcalPulseShapes.h>
Public Types | |
typedef HcalPulseShape | Shape |
Public Member Functions | |
void | beginRun (edm::EventSetup const &es) |
void | beginRun (const HcalDbService *conditions) |
const Shape & | defaultShape (const HcalDetId &detId) const |
in case of conditions problems More... | |
std::map< int, Shape const * > const & | get_all_shapes () const |
const Shape & | getShape (int shapeType) const |
const Shape & | hbShape () const |
HcalPulseShapes () | |
HcalPulseShapes (edm::ConsumesCollector iC) | |
const Shape & | heShape () const |
const Shape & | hfShape () const |
const Shape & | hoShape (bool sipm=false) const |
const Shape & | shape (const HcalDetId &detId) const |
automatically figures out which shape to return More... | |
const Shape & | shapeForReco (const HcalDetId &detId) const |
~HcalPulseShapes () | |
Static Public Member Functions | |
static double | analyticPulseShapeSiPMHE (double t) |
static double | analyticPulseShapeSiPMHO (double t) |
template<class F1 , class F2 > | |
static std::vector< double > | convolve (unsigned nbin, F1 f1, F2 f2) |
static double | generatePhotonTime (CLHEP::HepRandomEngine *engine, unsigned int signalShape) |
static double | generatePhotonTime203 (CLHEP::HepRandomEngine *engine) |
static double | generatePhotonTime206 (CLHEP::HepRandomEngine *engine) |
static std::vector< double > | normalize (std::vector< double > nt, unsigned nbin) |
static std::vector< double > | normalizeShift (std::vector< double > nt, unsigned nbin, int shift) |
static double | Y11203 (double t) |
static double | Y11206 (double t) |
Static Public Attributes | |
static constexpr float | deltaTSiPM_ = 0.5 |
static constexpr float | invDeltaTSiPM_ = 2.0 |
static const int | nBinsSiPM_ = 250 |
static constexpr float | Y11MAX203_ = 0.04 |
static constexpr float | Y11MAX206_ = 0.08 |
static constexpr float | Y11RANGE_ = nBinsSiPM_ |
Private Types | |
typedef std::map< int, const Shape * > | ShapeMap |
Private Member Functions | |
void | computeHFShape () |
void | computeHPDShape (float, float, float, float, float, float, float, float, Shape &) |
void | computeSiPMShapeData2017 () |
void | computeSiPMShapeData2018 () |
const HcalPulseShape & | computeSiPMShapeHE203 () |
const HcalPulseShape & | computeSiPMShapeHE206 () |
void | computeSiPMShapeHO () |
void | computeSiPMShapeMCRecoRun3 () |
Definition at line 23 of file HcalPulseShapes.h.
typedef HcalPulseShape HcalPulseShapes::Shape |
Definition at line 25 of file HcalPulseShapes.h.
|
private |
Definition at line 121 of file HcalPulseShapes.h.
HcalPulseShapes::HcalPulseShapes | ( | ) |
Definition at line 14 of file HcalPulseShapes.cc.
References computeHFShape(), computeHPDShape(), computeSiPMShapeData2017(), computeSiPMShapeData2018(), computeSiPMShapeHE203(), computeSiPMShapeHE206(), computeSiPMShapeHO(), computeSiPMShapeMCRecoRun3(), hfShape_, hpdBV30Shape_v2, hpdBV30ShapeMC_v2, hpdShape_, hpdShape_v2, hpdShape_v3, hpdShapeMC_v2, hpdShapeMC_v3, siPMShapeData2017_, siPMShapeData2018_, siPMShapeHO_, siPMShapeMCRecoRun3_, and theShapes.
|
explicit |
Definition at line 140 of file HcalPulseShapes.cc.
References edm::BeginRun, edm::ConsumesCollector::esConsumes(), and theDbServiceToken.
HcalPulseShapes::~HcalPulseShapes | ( | ) |
Definition at line 144 of file HcalPulseShapes.cc.
|
static |
Definition at line 575 of file HcalPulseShapes.cc.
References onePulse(), and submitPVValidationJobs::t.
Referenced by HcalSiPMShape::computeShape(), computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
static |
Definition at line 568 of file HcalPulseShapes.cc.
References alignmentValidation::c1, gexp(), and submitPVValidationJobs::t.
Referenced by HcalSiPMShape::computeShape().
void HcalPulseShapes::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 146 of file HcalPulseShapes.cc.
References edm::EventSetup::getData(), theDbService, and theDbServiceToken.
Referenced by HcalPulseContainmentManager::beginRun().
void HcalPulseShapes::beginRun | ( | const HcalDbService * | conditions | ) |
Definition at line 148 of file HcalPulseShapes.cc.
References submitPVValidationJobs::conditions, and theDbService.
|
private |
Definition at line 247 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, hfShape_, dqmiolumiharvest::j, reco::ParticleMasses::k0, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, HcalPulseShape::setNBin(), and HcalPulseShape::setShapeBin().
Referenced by HcalPulseShapes().
|
private |
Definition at line 151 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, dqmMemoryStats::float, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, dqmdumpme::k, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, and tmax.
Referenced by HcalPulseShapes().
|
private |
Definition at line 380 of file HcalPulseShapes.cc.
References dqmiolumiharvest::j, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2017_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 327 of file HcalPulseShapes.cc.
References dqmiolumiharvest::j, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2018_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 485 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, normalize(), and Y11203().
Referenced by HcalPulseShapes().
|
private |
Definition at line 492 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, normalizeShift(), and Y11206().
Referenced by HcalPulseShapes().
|
private |
Definition at line 434 of file HcalPulseShapes.cc.
References dqmiolumiharvest::j, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeHO_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 276 of file HcalPulseShapes.cc.
References dqmiolumiharvest::j, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeMCRecoRun3_.
Referenced by HcalPulseShapes().
|
inlinestatic |
Definition at line 61 of file HcalPulseShapes.h.
References DeadROC_duringRun::f1, DeadROC_duringRun::f2, mps_fire::i, edm::isNotFinite(), dqmiolumiharvest::j, SiStripPI::min, mps_fire::result, and createJobs::tmp.
Referenced by computeSiPMShapeHE203(), and computeSiPMShapeHE206().
const HcalPulseShapes::Shape & HcalPulseShapes::defaultShape | ( | const HcalDetId & | detId | ) | const |
in case of conditions problems
Definition at line 538 of file HcalPulseShapes.cc.
References Exception, hbShape(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heShape(), hfShape(), hoShape(), and HcalDetId::subdet().
Referenced by shape(), and shapeForReco().
|
static |
Definition at line 582 of file HcalPulseShapes.cc.
References generatePhotonTime203(), and generatePhotonTime206().
Referenced by HcalSiPMHitResponse::add().
|
static |
Definition at line 589 of file HcalPulseShapes.cc.
References mps_fire::result, Y11203(), Y11MAX203_, and Y11RANGE_.
Referenced by generatePhotonTime().
|
static |
Definition at line 598 of file HcalPulseShapes.cc.
References mps_fire::result, Y11206(), Y11MAX206_, and Y11RANGE_.
Referenced by generatePhotonTime().
|
inline |
const HcalPulseShapes::Shape & HcalPulseShapes::getShape | ( | int | shapeType | ) | const |
Definition at line 500 of file HcalPulseShapes.cc.
References Exception, hpdShape_, and theShapes.
Referenced by SimpleHBHEPhase1Algo::reconstruct(), MahiFit::resetPulseShapeTemplate(), and HcalShape::setShape().
|
inline |
Definition at line 34 of file HcalPulseShapes.h.
References hpdShape_.
Referenced by defaultShape(), and HBHEPulseShapeFlagSetter::Initialize().
|
inline |
Definition at line 35 of file HcalPulseShapes.h.
References hpdShape_.
Referenced by defaultShape().
|
inline |
|
inline |
Definition at line 37 of file HcalPulseShapes.h.
References hpdShape_, and siPMShapeHO_.
Referenced by defaultShape().
|
inlinestatic |
Definition at line 73 of file HcalPulseShapes.h.
References dqmiolumiharvest::j, and nt.
Referenced by computeSiPMShapeHE203().
|
inlinestatic |
Definition at line 87 of file HcalPulseShapes.h.
References createfilelist::int, dqmiolumiharvest::j, SiStripPI::max, nt, and edm::shift.
Referenced by computeSiPMShapeHE206().
const HcalPulseShapes::Shape & HcalPulseShapes::shape | ( | const HcalDetId & | detId | ) | const |
automatically figures out which shape to return
Definition at line 510 of file HcalPulseShapes.cc.
References defaultShape(), HcalDbService::getHcalMCParam(), HcalMCParam::signalShape(), theDbService, and theShapes.
const HcalPulseShapes::Shape & HcalPulseShapes::shapeForReco | ( | const HcalDetId & | detId | ) | const |
Definition at line 524 of file HcalPulseShapes.cc.
References defaultShape(), HcalDbService::getHcalRecoParam(), DetId::rawId(), theDbService, and theShapes.
Referenced by HcalPulseContainmentManager::get().
|
static |
Definition at line 608 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, dqm-mbProfile::log, and submitPVValidationJobs::t.
Referenced by computeSiPMShapeHE203(), and generatePhotonTime203().
|
static |
Definition at line 611 of file HcalPulseShapes.cc.
References A, JetChargeProducer_cfi::exp, L1TowerCalibrationProducer_cfi::fit, DivergingColor::frac, dqmiodumpmetadata::n, edm::shift, submitPVValidationJobs::t, FrontierCondition_GT_autoExpress_cfi::t0, and heppy_batch::val.
Referenced by computeSiPMShapeHE206(), and generatePhotonTime206().
|
static |
Definition at line 47 of file HcalPulseShapes.h.
Referenced by HcalSiPMShape::computeShape().
|
private |
Definition at line 114 of file HcalPulseShapes.h.
Referenced by computeHFShape(), HcalPulseShapes(), and hfShape().
|
private |
Definition at line 118 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 118 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 114 of file HcalPulseShapes.h.
Referenced by getShape(), hbShape(), HcalPulseShapes(), heShape(), and hoShape().
|
private |
Definition at line 116 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 117 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 116 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 117 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
static |
Definition at line 48 of file HcalPulseShapes.h.
Referenced by HcalSiPMHitResponse::getReadoutFrameSize(), and HcalSiPMShape::operator()().
|
static |
Definition at line 46 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
private |
Definition at line 115 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2017(), and HcalPulseShapes().
|
private |
Definition at line 115 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2018(), and HcalPulseShapes().
|
private |
Definition at line 114 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHO(), HcalPulseShapes(), and hoShape().
|
private |
Definition at line 115 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeMCRecoRun3(), and HcalPulseShapes().
|
private |
Definition at line 120 of file HcalPulseShapes.h.
Referenced by beginRun(), shape(), and shapeForReco().
|
private |
Definition at line 119 of file HcalPulseShapes.h.
Referenced by beginRun(), and HcalPulseShapes().
|
private |
Definition at line 122 of file HcalPulseShapes.h.
Referenced by get_all_shapes(), getShape(), HcalPulseShapes(), shape(), and shapeForReco().
|
static |
Definition at line 52 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203().
|
static |
Definition at line 53 of file HcalPulseShapes.h.
Referenced by generatePhotonTime206().
|
static |
Definition at line 51 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203(), and generatePhotonTime206().