#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... | |
const Shape & | getShape (int shapeType) const |
const Shape & | hbShape () const |
HcalPulseShapes () | |
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 double | Y11203 (double t) |
static double | Y11206 (double t) |
Static Public Attributes | |
static float | deltaTSiPM_ = 0.5 |
static float | invDeltaTSiPM_ = 2.0 |
static const int | nBinsSiPM_ = 250 |
static float | Y11MAX203_ = 0.04 |
static float | Y11MAX206_ = 0.08 |
static 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 () |
void | computeSiPMShapeHE203 () |
void | computeSiPMShapeHE206 () |
void | computeSiPMShapeHO () |
Definition at line 21 of file HcalPulseShapes.h.
typedef HcalPulseShape HcalPulseShapes::Shape |
Definition at line 23 of file HcalPulseShapes.h.
|
private |
Definition at line 85 of file HcalPulseShapes.h.
HcalPulseShapes::HcalPulseShapes | ( | ) |
Definition at line 15 of file HcalPulseShapes.cc.
References computeHFShape(), computeHPDShape(), computeSiPMShapeData2017(), computeSiPMShapeData2018(), computeSiPMShapeHE203(), computeSiPMShapeHE206(), computeSiPMShapeHO(), hfShape_, hpdBV30Shape_v2, hpdBV30ShapeMC_v2, hpdShape_, hpdShape_v2, hpdShape_v3, hpdShapeMC_v2, hpdShapeMC_v3, siPMShapeData2017_, siPMShapeData2018_, siPMShapeHO_, siPMShapeMC2017_, siPMShapeMC2018_, and theShapes.
HcalPulseShapes::~HcalPulseShapes | ( | ) |
Definition at line 97 of file HcalPulseShapes.cc.
|
static |
Definition at line 514 of file HcalPulseShapes.cc.
References onePulse().
Referenced by HcalSiPMShape::computeShape(), computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
static |
Definition at line 507 of file HcalPulseShapes.cc.
References alignmentValidation::c1, gexp(), and indexGen::s2.
Referenced by HcalSiPMShape::computeShape().
void HcalPulseShapes::beginRun | ( | edm::EventSetup const & | es | ) |
Definition at line 101 of file HcalPulseShapes.cc.
References edm::EventSetup::get(), edm::ESHandle< T >::product(), and theDbService.
Referenced by HcalPulseContainmentManager::beginRun().
void HcalPulseShapes::beginRun | ( | const HcalDbService * | conditions | ) |
|
private |
Definition at line 214 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, hfShape_, reco::ParticleMasses::k0, p1, p2, p4, HcalPulseShape::setNBin(), and HcalPulseShape::setShapeBin().
Referenced by HcalPulseShapes().
|
private |
Definition at line 114 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, objects.autophobj::float, mps_fire::i, createfilelist::int, gen::k, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), reco::t2, and tmax.
Referenced by HcalPulseShapes().
|
private |
Definition at line 295 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2017_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 244 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2018_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 383 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), siPMShapeMC2017_, and Y11203().
Referenced by HcalPulseShapes().
|
private |
Definition at line 402 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), SiStripPI::max, nBinsSiPM_, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), edm::shift, siPMShapeMC2018_, and Y11206().
Referenced by HcalPulseShapes().
|
private |
Definition at line 345 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeHO_.
Referenced by HcalPulseShapes().
|
inlinestatic |
Definition at line 57 of file HcalPulseShapes.h.
References connectstrParser::f1, connectstrParser::f2, mps_fire::i, edm::detail::isnan(), min(), or, mps_fire::result, and tmp.
Referenced by computeSiPMShapeHE203(), and computeSiPMShapeHE206().
const HcalPulseShapes::Shape & HcalPulseShapes::defaultShape | ( | const HcalDetId & | detId | ) | const |
in case of conditions problems
Definition at line 476 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 523 of file HcalPulseShapes.cc.
References generatePhotonTime203(), and generatePhotonTime206().
Referenced by HcalSiPMHitResponse::add().
|
static |
Definition at line 528 of file HcalPulseShapes.cc.
References mps_fire::result, Y11203(), Y11MAX203_, and Y11RANGE_.
Referenced by generatePhotonTime().
|
static |
Definition at line 537 of file HcalPulseShapes.cc.
References mps_fire::result, Y11206(), Y11MAX206_, and Y11RANGE_.
Referenced by generatePhotonTime().
const HcalPulseShapes::Shape & HcalPulseShapes::getShape | ( | int | shapeType | ) | const |
Definition at line 430 of file HcalPulseShapes.cc.
References Exception, hpdShape_, and theShapes.
Referenced by SimpleHBHEPhase1Algo::reconstruct(), and HcalShape::setShape().
|
inline |
Definition at line 30 of file HcalPulseShapes.h.
Referenced by defaultShape(), and HBHEPulseShapeFlagSetter::Initialize().
|
inline |
|
inline |
|
inline |
Definition at line 33 of file HcalPulseShapes.h.
References fireworks::getShape().
Referenced by defaultShape().
const HcalPulseShapes::Shape & HcalPulseShapes::shape | ( | const HcalDetId & | detId | ) | const |
automatically figures out which shape to return
Definition at line 443 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 459 of file HcalPulseShapes.cc.
References defaultShape(), HcalDbService::getHcalRecoParam(), DetId::rawId(), theDbService, and theShapes.
Referenced by HcalPulseContainmentManager::get().
|
static |
Definition at line 547 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, and cmsBatch::log.
Referenced by computeSiPMShapeHE203(), and generatePhotonTime203().
|
static |
Definition at line 552 of file HcalPulseShapes.cc.
References patCaloMETCorrections_cff::A, JetChargeProducer_cfi::exp, trackingPlots::fit, cropTnPTrees::frac, gen::n, edm::shift, cscNeutronWriter_cfi::t0, and heppy_batch::val.
Referenced by computeSiPMShapeHE206(), and generatePhotonTime206().
|
static |
Definition at line 43 of file HcalPulseShapes.h.
Referenced by HcalSiPMShape::computeShape().
|
private |
Definition at line 78 of file HcalPulseShapes.h.
Referenced by computeHFShape(), and HcalPulseShapes().
|
private |
Definition at line 83 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 83 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 78 of file HcalPulseShapes.h.
Referenced by getShape(), and HcalPulseShapes().
|
private |
Definition at line 81 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 82 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 81 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 82 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
static |
Definition at line 44 of file HcalPulseShapes.h.
Referenced by HcalSiPMHitResponse::getReadoutFrameSize(), and HcalSiPMShape::operator()().
|
static |
Definition at line 42 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
private |
Definition at line 79 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2017(), and HcalPulseShapes().
|
private |
Definition at line 80 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2018(), and HcalPulseShapes().
|
private |
Definition at line 78 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHO(), and HcalPulseShapes().
|
private |
Definition at line 79 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE203(), and HcalPulseShapes().
|
private |
Definition at line 80 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE206(), and HcalPulseShapes().
|
private |
Definition at line 84 of file HcalPulseShapes.h.
Referenced by beginRun(), shape(), and shapeForReco().
|
private |
Definition at line 86 of file HcalPulseShapes.h.
Referenced by getShape(), HcalPulseShapes(), shape(), and shapeForReco().
|
static |
Definition at line 48 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203().
|
static |
Definition at line 49 of file HcalPulseShapes.h.
Referenced by generatePhotonTime206().
|
static |
Definition at line 47 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203(), and generatePhotonTime206().