#include <HcalPulseShapes.h>
Public Types | |
typedef HcalPulseShape | Shape |
Public Member Functions | |
void | beginRun (edm::EventSetup const &es) |
const Shape & | defaultShape (const HcalDetId &detId) const |
in case of conditions problems More... | |
void | endRun () |
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 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 () |
void | computeSiPMShapeHE203 () |
void | computeSiPMShapeHE206 () |
void | computeSiPMShapeHO () |
Definition at line 23 of file HcalPulseShapes.h.
typedef HcalPulseShape HcalPulseShapes::Shape |
Definition at line 25 of file HcalPulseShapes.h.
|
private |
Definition at line 89 of file HcalPulseShapes.h.
HcalPulseShapes::HcalPulseShapes | ( | ) |
Definition at line 22 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 106 of file HcalPulseShapes.cc.
References theMCParams, theRecoParams, and theTopology.
|
static |
Definition at line 545 of file HcalPulseShapes.cc.
References onePulse().
Referenced by HcalSiPMShape::computeShape(), computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
static |
Definition at line 538 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 113 of file HcalPulseShapes.cc.
References edm::EventSetup::get(), AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< T >::product(), lumiQueryAPI::q, HcalCondObjectContainerBase::setTopo(), theMCParams, theRecoParams, and theTopology.
Referenced by HcalPulseContainmentManager::beginRun().
|
private |
Definition at line 245 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 145 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 326 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2017_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 275 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeData2018_.
Referenced by HcalPulseShapes().
|
private |
Definition at line 414 of file HcalPulseShapes.cc.
References analyticPulseShapeSiPMHE(), convolve(), nBinsSiPM_, nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), siPMShapeMC2017_, and Y11203().
Referenced by HcalPulseShapes().
|
private |
Definition at line 433 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 376 of file HcalPulseShapes.cc.
References nt, HcalPulseShape::setNBin(), HcalPulseShape::setShapeBin(), and siPMShapeHO_.
Referenced by HcalPulseShapes().
|
inlinestatic |
Definition at line 59 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 507 of file HcalPulseShapes.cc.
References Exception, hbShape(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heShape(), hfShape(), hoShape(), and HcalDetId::subdet().
Referenced by shape(), and shapeForReco().
void HcalPulseShapes::endRun | ( | ) |
Definition at line 131 of file HcalPulseShapes.cc.
References theMCParams, theRecoParams, and theTopology.
Referenced by HcalPulseContainmentManager::endRun().
|
static |
Definition at line 554 of file HcalPulseShapes.cc.
References generatePhotonTime203(), and generatePhotonTime206().
Referenced by HcalSiPMHitResponse::add().
|
static |
Definition at line 559 of file HcalPulseShapes.cc.
References mps_fire::result, Y11203(), Y11MAX203_, and Y11RANGE_.
Referenced by generatePhotonTime().
|
static |
Definition at line 568 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 461 of file HcalPulseShapes.cc.
References Exception, hpdShape_, and theShapes.
Referenced by SimpleHBHEPhase1Algo::reconstruct(), and HcalShape::setShape().
|
inline |
Definition at line 32 of file HcalPulseShapes.h.
Referenced by defaultShape(), and HBHEPulseShapeFlagSetter::Initialize().
|
inline |
|
inline |
|
inline |
Definition at line 35 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 474 of file HcalPulseShapes.cc.
References defaultShape(), HcalCondObjectContainer< Item >::getValues(), HcalMCParam::signalShape(), theMCParams, and theShapes.
const HcalPulseShapes::Shape & HcalPulseShapes::shapeForReco | ( | const HcalDetId & | detId | ) | const |
Definition at line 490 of file HcalPulseShapes.cc.
References defaultShape(), HcalCondObjectContainer< Item >::getValues(), DetId::rawId(), theRecoParams, and theShapes.
Referenced by HcalPulseContainmentManager::get().
|
static |
Definition at line 578 of file HcalPulseShapes.cc.
References JetChargeProducer_cfi::exp, and cmsBatch::log.
Referenced by computeSiPMShapeHE203(), and generatePhotonTime203().
|
static |
Definition at line 583 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 45 of file HcalPulseShapes.h.
Referenced by HcalSiPMShape::computeShape().
|
private |
Definition at line 80 of file HcalPulseShapes.h.
Referenced by computeHFShape(), and HcalPulseShapes().
|
private |
Definition at line 85 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 85 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 80 of file HcalPulseShapes.h.
Referenced by getShape(), and HcalPulseShapes().
|
private |
Definition at line 83 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 84 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 83 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
private |
Definition at line 84 of file HcalPulseShapes.h.
Referenced by HcalPulseShapes().
|
static |
Definition at line 46 of file HcalPulseShapes.h.
Referenced by HcalSiPMHitResponse::getReadoutFrameSize(), and HcalSiPMShape::operator()().
|
static |
Definition at line 44 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE203(), and computeSiPMShapeHE206().
|
private |
Definition at line 81 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2017(), and HcalPulseShapes().
|
private |
Definition at line 82 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeData2018(), and HcalPulseShapes().
|
private |
Definition at line 80 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHO(), and HcalPulseShapes().
|
private |
Definition at line 81 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE203(), and HcalPulseShapes().
|
private |
Definition at line 82 of file HcalPulseShapes.h.
Referenced by computeSiPMShapeHE206(), and HcalPulseShapes().
|
private |
Definition at line 86 of file HcalPulseShapes.h.
Referenced by beginRun(), endRun(), shape(), and ~HcalPulseShapes().
|
private |
Definition at line 88 of file HcalPulseShapes.h.
Referenced by beginRun(), endRun(), shapeForReco(), and ~HcalPulseShapes().
|
private |
Definition at line 90 of file HcalPulseShapes.h.
Referenced by getShape(), HcalPulseShapes(), shape(), and shapeForReco().
|
private |
Definition at line 87 of file HcalPulseShapes.h.
Referenced by beginRun(), endRun(), and ~HcalPulseShapes().
|
static |
Definition at line 50 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203().
|
static |
Definition at line 51 of file HcalPulseShapes.h.
Referenced by generatePhotonTime206().
|
static |
Definition at line 49 of file HcalPulseShapes.h.
Referenced by generatePhotonTime203(), and generatePhotonTime206().