#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 |
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 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 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 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(), and subdetector().
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, vSamAll(), and EcalTimeMapDigitizer::time_average::zero().
Referenced by add(), and subdetector().
|
inline |
|
private |
Definition at line 253 of file EcalTimeMapDigitizer.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert(), and subdetector().
|
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 |
Definition at line 251 of file EcalTimeMapDigitizer.cc.
References m_maxBunch.
Referenced by subdetector().
int EcalTimeMapDigitizer::minBunch | ( | ) | const |
Definition at line 249 of file EcalTimeMapDigitizer.cc.
References m_minBunch.
Referenced by subdetector().
|
private |
Definition at line 239 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by subdetector().
|
private |
void EcalTimeMapDigitizer::run | ( | EcalTimeDigiCollection & | output | ) |
Definition at line 168 of file EcalTimeMapDigitizer.cc.
References EcalTimeMapDigitizer::time_average::average_time, edm::SortedCollection< T, SORT >::back(), gather_cfg::cout, finalizeHits(), mps_fire::i, dqmiolumiharvest::j, 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 235 of file EcalTimeMapDigitizer.cc.
References m_vSam.
Referenced by subdetector().
|
private |
Definition at line 237 of file EcalTimeMapDigitizer.cc.
References m_vSam.
Referenced by subdetector().
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 |
Definition at line 87 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 226 of file EcalTimeMapDigitizer.cc.
References 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.
Referenced by subdetector().
|
private |
Definition at line 245 of file EcalTimeMapDigitizer.cc.
References mps_fire::i, and m_vSam.
Referenced by blankOutUsedSamples(), finalizeHits(), findSignal(), run(), and subdetector().
|
private |
|
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 |