#include <EcalTimeMapDigitizer.h>
Classes | |
struct | time_average |
Public Types | |
typedef EcalTimeDigi | Digi |
typedef time_average | TimeSamples |
typedef std::vector< unsigned int > | VecInd |
Public Member Functions | |
void | add (const std::vector< PCaloHit > &hits, int bunchCrossing) |
void | blankOutUsedSamples () |
EcalTimeMapDigitizer (EcalSubdetector myDet) | |
void | finalizeHits () |
int | getTimeLayerId () |
void | initializeMap () |
int | maxBunch () const |
int | minBunch () const |
void | run (EcalTimeDigiCollection &output) |
void | setGeometry (const CaloSubdetectorGeometry *geometry) |
void | setTimeLayerId (const int &layerId) |
EcalSubdetector | subdetector () |
virtual | ~EcalTimeMapDigitizer () |
Private Member Functions | |
TimeSamples * | findSignal (const DetId &detId) |
VecInd & | index () |
const VecInd & | index () const |
TimeSamples * | operator[] (unsigned int i) |
const TimeSamples * | operator[] (unsigned int i) const |
unsigned int | samplesSize () const |
unsigned int | samplesSizeAll () const |
double | timeOfFlight (const DetId &detId, int layer) const |
TimeSamples * | vSam (unsigned int i) |
TimeSamples * | vSamAll (unsigned int i) |
const TimeSamples * | vSamAll (unsigned int i) const |
Private Attributes | |
const CaloSubdetectorGeometry * | m_geometry |
VecInd | m_index |
EcalSubdetector | m_subDet |
int | m_timeLayerId |
std::vector< TimeSamples > | m_vSam |
Static Private Attributes | |
static const int | BUNCHSPACE = 25 |
static const int | m_maxBunch = 5 |
static const int | m_minBunch = -4 |
static const float | MIN_ENERGY_THRESHOLD |
Definition at line 19 of file EcalTimeMapDigitizer.h.
Definition at line 65 of file EcalTimeMapDigitizer.h.
Definition at line 63 of file EcalTimeMapDigitizer.h.
typedef std::vector<unsigned int> EcalTimeMapDigitizer::VecInd |
Definition at line 67 of file EcalTimeMapDigitizer.h.
|
explicit |
Definition at line 28 of file EcalTimeMapDigitizer.cc.
References cms::cuda::assert(), gather_cfg::cout, DetId::det(), EBDetId::detIdFromDenseIndex(), EEDetId::detIdFromDenseIndex(), EcalBarrel, EcalEndcap, mps_fire::i, EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, m_maxBunch, m_minBunch, m_subDet, m_vSam, findQualityFiles::size, and DetId::subdetId().
|
virtual |
Definition at line 74 of file EcalTimeMapDigitizer.cc.
void EcalTimeMapDigitizer::add | ( | const std::vector< PCaloHit > & | hits, |
int | bunchCrossing | ||
) |
Definition at line 76 of file EcalTimeMapDigitizer.cc.
References gather_cfg::cout, findSignal(), hfClusterShapes_cfi::hits, edm::isNotFinite(), PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, m_maxBunch, m_minBunch, m_timeLayerId, MIN_ENERGY_THRESHOLD, mps_fire::result, ntuplemaker::time, and timeOfFlight().
Referenced by EcalTimeDigiProducer::accumulateCaloHits(), and counter.Counter::register().
void EcalTimeMapDigitizer::blankOutUsedSamples | ( | ) |
Definition at line 126 of file EcalTimeMapDigitizer.cc.
References gather_cfg::cout, mps_fire::i, m_index, EcalTimeMapDigitizer::time_average::setZero(), findQualityFiles::size, and vSamAll().
Referenced by initializeMap().
void EcalTimeMapDigitizer::finalizeHits | ( | ) |
Definition at line 141 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, EcalTimeMapDigitizer::time_average::calculateAverage(), gather_cfg::cout, mps_fire::i, dqmiolumiharvest::j, m_index, EcalTimeMapDigitizer::time_average::nhits, findQualityFiles::size, EcalTimeMapDigitizer::time_average::time_average_capacity, EcalTimeMapDigitizer::time_average::tot_energy, and vSamAll().
Referenced by run().
|
private |
Definition at line 116 of file EcalTimeMapDigitizer.cc.
References m_index, mps_fire::result, and vSamAll().
Referenced by add().
|
inline |
|
private |
Definition at line 253 of file EcalTimeMapDigitizer.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert().
|
private |
Definition at line 255 of file EcalTimeMapDigitizer.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert().
void EcalTimeMapDigitizer::initializeMap | ( | ) |
Definition at line 161 of file EcalTimeMapDigitizer.cc.
References blankOutUsedSamples(), and gather_cfg::cout.
Referenced by EcalTimeDigiProducer::initializeEvent().
int EcalTimeMapDigitizer::maxBunch | ( | ) | const |
int EcalTimeMapDigitizer::minBunch | ( | ) | const |
|
private |
Definition at line 241 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
|
private |
Definition at line 239 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
void EcalTimeMapDigitizer::run | ( | EcalTimeDigiCollection & | output | ) |
Definition at line 168 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, gather_cfg::cout, finalizeHits(), mps_fire::i, dqmiolumiharvest::j, m_index, m_minBunch, EcalTimeMapDigitizer::time_average::nhits, convertSQLitetoXML_cfg::output, EcalTimeMapDigitizer::time_average::time_average_capacity, and vSamAll().
Referenced by EcalTimeDigiProducer::finalizeEvent().
|
private |
|
private |
void EcalTimeMapDigitizer::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
Definition at line 124 of file EcalTimeMapDigitizer.cc.
References geometry, and m_geometry.
Referenced by EcalTimeDigiProducer::updateGeometry().
|
inline |
Definition at line 83 of file EcalTimeMapDigitizer.h.
References m_timeLayerId.
Referenced by EcalTimeDigiProducer::EcalTimeDigiProducer().
|
inline |
|
private |
Definition at line 226 of file EcalTimeMapDigitizer.cc.
References cms::cuda::assert(), CaloSubdetectorGeometry::getGeometry(), m_geometry, and PV3DBase< T, PVType, FrameType >::mag().
Referenced by add().
|
private |
Definition at line 243 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
|
private |
Definition at line 245 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by blankOutUsedSamples(), finalizeHits(), findSignal(), and run().
|
private |
Definition at line 247 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
|
staticprivate |
Definition at line 121 of file EcalTimeMapDigitizer.h.
|
private |
Definition at line 130 of file EcalTimeMapDigitizer.h.
Referenced by setGeometry(), and timeOfFlight().
|
private |
Definition at line 136 of file EcalTimeMapDigitizer.h.
Referenced by blankOutUsedSamples(), finalizeHits(), findSignal(), index(), and run().
|
staticprivate |
Definition at line 126 of file EcalTimeMapDigitizer.h.
Referenced by add(), EcalTimeMapDigitizer(), and maxBunch().
|
staticprivate |
Definition at line 125 of file EcalTimeMapDigitizer.h.
Referenced by add(), EcalTimeMapDigitizer(), minBunch(), and run().
|
private |
Definition at line 118 of file EcalTimeMapDigitizer.h.
Referenced by EcalTimeMapDigitizer(), and subdetector().
|
private |
Definition at line 128 of file EcalTimeMapDigitizer.h.
Referenced by add(), getTimeLayerId(), and setTimeLayerId().
|
private |
Definition at line 134 of file EcalTimeMapDigitizer.h.
Referenced by EcalTimeMapDigitizer(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().
|
staticprivate |