#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 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 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 () |
const HcalPulseShape & | computeSiPMShapeHE203 () |
const HcalPulseShape & | 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 113 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_, and theShapes.
HcalPulseShapes::~HcalPulseShapes | ( | ) |
Definition at line 95 of file HcalPulseShapes.cc.
|
static |
Definition at line 481 of file HcalPulseShapes.cc.
References onePulse().
Referenced by HcalSiPMShape::computeShape(), computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
static |
Definition at line 474 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 99 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 212 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 112 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, objects.autophobj::float, mps_fire::i, createfilelist::int, gen::k, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and tmax.
Referenced by HcalPulseShapes().
|
private |
Definition at line 293 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2017_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 242 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2018_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 381 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, normalize(), and Y11203().
Referenced by HcalPulseShapes().
|
private |
Definition at line 388 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, normalizeShift(), and Y11206().
Referenced by HcalPulseShapes().
|
private |
Definition at line 343 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 443 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 490 of file HcalPulseShapes.cc.
References generatePhotonTime203(), and generatePhotonTime206().
Referenced by HcalSiPMHitResponse::add().
|
static |
Definition at line 495 of file HcalPulseShapes.cc.
References mps_fire::result, Y11203(), Y11MAX203_, and Y11RANGE_.
Referenced by generatePhotonTime().
|
static |
Definition at line 504 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 397 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().
|
inlinestatic |
Definition at line 68 of file HcalPulseShapes.h.
References nt.
Referenced by computeSiPMShapeHE203().
|
inlinestatic |
Definition at line 82 of file HcalPulseShapes.h.
References createfilelist::int, SiStripPI::max, 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 410 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 426 of file HcalPulseShapes.cc.
References defaultShape(), HcalDbService::getHcalRecoParam(), DetId::rawId(), theDbService, and theShapes.
Referenced by HcalPulseContainmentManager::get().
|
static |
Definition at line 514 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, and cmsBatch::log.
Referenced by computeSiPMShapeHE203(), and generatePhotonTime203().
|
static |
Definition at line 519 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 107 of file HcalPulseShapes.h.
Referenced by computeHFShape(), and HcalPulseShapes().
|
private |
Definition at line 111 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 111 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 107 of file HcalPulseShapes.h.
Referenced by getShape(), and HcalPulseShapes().
|
private |
Definition at line 109 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 110 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 109 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 110 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 108 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2017(), and HcalPulseShapes().
|
private |
Definition at line 108 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2018(), and HcalPulseShapes().
|
private |
Definition at line 107 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHO(), and HcalPulseShapes().
|
private |
Definition at line 112 of file HcalPulseShapes.h.
Referenced by beginRun(), shape(), and shapeForReco().
|
private |
Definition at line 114 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().