#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 |
const TimeSamples * | operator[] (unsigned int i) const |
TimeSamples * | operator[] (unsigned int i) |
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 =5e-5 |
Definition at line 19 of file EcalTimeMapDigitizer.h.
Definition at line 82 of file EcalTimeMapDigitizer.h.
Definition at line 80 of file EcalTimeMapDigitizer.h.
typedef std::vector< unsigned int > EcalTimeMapDigitizer::VecInd |
Definition at line 84 of file EcalTimeMapDigitizer.h.
|
explicit |
Definition at line 27 of file EcalTimeMapDigitizer.cc.
References 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 81 of file EcalTimeMapDigitizer.cc.
void EcalTimeMapDigitizer::add | ( | const std::vector< PCaloHit > & | hits, |
int | bunchCrossing | ||
) |
Definition at line 86 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, gather_cfg::cout, findSignal(), edm::isNotFinite(), PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, m_maxBunch, m_minBunch, m_timeLayerId, MIN_ENERGY_THRESHOLD, EcalTimeMapDigitizer::time_average::nhits, mps_fire::result, ntuplemaker::time, timeOfFlight(), and EcalTimeMapDigitizer::time_average::tot_energy.
Referenced by EcalTimeDigiProducer::accumulateCaloHits(), and counter.Counter::register().
void EcalTimeMapDigitizer::blankOutUsedSamples | ( | ) |
Definition at line 145 of file EcalTimeMapDigitizer.cc.
References gather_cfg::cout, mps_fire::i, m_index, EcalTimeMapDigitizer::time_average::setZero(), findQualityFiles::size, and vSamAll().
Referenced by initializeMap(), and subdetector().
void EcalTimeMapDigitizer::finalizeHits | ( | ) |
Definition at line 164 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, EcalTimeMapDigitizer::time_average::calculateAverage(), gather_cfg::cout, mps_fire::i, 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 127 of file EcalTimeMapDigitizer.cc.
References m_index, mps_fire::result, vSamAll(), and EcalTimeMapDigitizer::time_average::zero().
Referenced by add(), and subdetector().
|
inline |
|
private |
Definition at line 328 of file EcalTimeMapDigitizer.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert(), and subdetector().
|
private |
Definition at line 334 of file EcalTimeMapDigitizer.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert().
void EcalTimeMapDigitizer::initializeMap | ( | ) |
Definition at line 187 of file EcalTimeMapDigitizer.cc.
References blankOutUsedSamples(), and gather_cfg::cout.
Referenced by EcalTimeDigiProducer::initializeEvent().
int EcalTimeMapDigitizer::maxBunch | ( | ) | const |
Definition at line 322 of file EcalTimeMapDigitizer.cc.
References m_maxBunch.
Referenced by subdetector().
int EcalTimeMapDigitizer::minBunch | ( | ) | const |
Definition at line 316 of file EcalTimeMapDigitizer.cc.
References m_minBunch.
Referenced by subdetector().
|
private |
Definition at line 286 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by subdetector().
|
private |
void EcalTimeMapDigitizer::run | ( | EcalTimeDigiCollection & | output | ) |
Definition at line 197 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, edm::SortedCollection< T, SORT >::back(), gather_cfg::cout, finalizeHits(), mps_fire::i, m_index, m_minBunch, EcalTimeMapDigitizer::time_average::nhits, edm::SortedCollection< T, SORT >::push_back(), edm::SortedCollection< T, SORT >::reserve(), edm::SortedCollection< T, SORT >::size(), EcalTimeMapDigitizer::time_average::time_average_capacity, and vSamAll().
Referenced by EcalTimeDigiProducer::finalizeEvent().
|
private |
Definition at line 274 of file EcalTimeMapDigitizer.cc.
References m_vSam.
Referenced by subdetector().
|
private |
Definition at line 280 of file EcalTimeMapDigitizer.cc.
References m_vSam.
Referenced by subdetector().
void EcalTimeMapDigitizer::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
Definition at line 138 of file EcalTimeMapDigitizer.cc.
References geometry, and m_geometry.
Referenced by EcalTimeDigiProducer::updateGeometry().
|
inline |
Definition at line 100 of file EcalTimeMapDigitizer.h.
References m_timeLayerId.
Referenced by EcalTimeDigiProducer::EcalTimeDigiProducer().
|
inline |
Definition at line 104 of file EcalTimeMapDigitizer.h.
References blankOutUsedSamples(), findSignal(), mps_fire::i, index(), m_subDet, maxBunch(), minBunch(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().
|
private |
Definition at line 263 of file EcalTimeMapDigitizer.cc.
References CaloSubdetectorGeometry::getGeometry(), m_geometry, and PV3DBase< T, PVType, FrameType >::mag().
Referenced by add().
|
private |
Definition at line 298 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by subdetector().
|
private |
Definition at line 304 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by blankOutUsedSamples(), finalizeHits(), findSignal(), run(), and subdetector().
|
private |
|
staticprivate |
Definition at line 140 of file EcalTimeMapDigitizer.h.
|
private |
Definition at line 149 of file EcalTimeMapDigitizer.h.
Referenced by setGeometry(), and timeOfFlight().
|
private |
Definition at line 155 of file EcalTimeMapDigitizer.h.
Referenced by blankOutUsedSamples(), finalizeHits(), findSignal(), index(), and run().
|
staticprivate |
Definition at line 145 of file EcalTimeMapDigitizer.h.
Referenced by add(), EcalTimeMapDigitizer(), and maxBunch().
|
staticprivate |
Definition at line 144 of file EcalTimeMapDigitizer.h.
Referenced by add(), EcalTimeMapDigitizer(), minBunch(), and run().
|
private |
Definition at line 137 of file EcalTimeMapDigitizer.h.
Referenced by EcalTimeMapDigitizer(), and subdetector().
|
private |
Definition at line 147 of file EcalTimeMapDigitizer.h.
Referenced by add(), getTimeLayerId(), and setTimeLayerId().
|
private |
Definition at line 153 of file EcalTimeMapDigitizer.h.
Referenced by EcalTimeMapDigitizer(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().
|
staticprivate |
Definition at line 142 of file EcalTimeMapDigitizer.h.
Referenced by add().