#include <CaloHitAnalyzer.h>
Public Member Functions | |
void | analyze (int detId, double recEnergy) |
to be called for each RecHit More... | |
CaloHitAnalyzer (const std::string &name, double hitEnergyThreshold, const CaloVSimParameterMap *parameterMap, const CaloVHitFilter *filter=nullptr) | |
void | fillHits (MixCollection< PCaloHit > &hits) |
should be called each event More... | |
Public Attributes | |
std::map< int, double > | hitEnergySumMap_ |
double | hitEnergyThreshold_ |
const CaloVHitFilter * | hitFilter_ |
int | noiseHits_ |
const CaloVSimParameterMap * | simParameterMap_ |
CaloValidationStatistics | summary_ |
Definition at line 21 of file CaloHitAnalyzer.h.
CaloHitAnalyzer::CaloHitAnalyzer | ( | const std::string & | name, |
double | hitEnergyThreshold, | ||
const CaloVSimParameterMap * | parameterMap, | ||
const CaloVHitFilter * | filter = nullptr |
||
) |
Definition at line 10 of file CaloHitAnalyzer.cc.
void CaloHitAnalyzer::analyze | ( | int | detId, |
double | recEnergy | ||
) |
to be called for each RecHit
Definition at line 47 of file CaloHitAnalyzer.cc.
References CaloValidationStatistics::addEntry(), hitEnergySumMap_, hitEnergyThreshold_, noiseHits_, and summary_.
Referenced by CastorDigiStatistics::analyze(), and HcalDigiStatistics::analyze().
void CaloHitAnalyzer::fillHits | ( | MixCollection< PCaloHit > & | hits | ) |
should be called each event
Definition at line 22 of file CaloHitAnalyzer.cc.
References CaloVHitFilter::accepts(), HCALHighEnergyHPDFilter_cfi::energy, hitEnergySumMap_, hitFilter_, hfClusterShapes_cfi::hits, triggerObjects_cff::id, dqmdumpme::last, noiseHits_, and ecalSimParameterMap_cff::samplingFactor.
Referenced by CastorHitAnalyzer::analyze(), HcalHitAnalyzer::analyze(), CastorDigiAnalyzer::analyze(), and HcalDigiAnalyzer::analyze().
std::map<int, double> CaloHitAnalyzer::hitEnergySumMap_ |
Definition at line 35 of file CaloHitAnalyzer.h.
Referenced by analyze(), and fillHits().
double CaloHitAnalyzer::hitEnergyThreshold_ |
Definition at line 36 of file CaloHitAnalyzer.h.
Referenced by analyze().
const CaloVHitFilter* CaloHitAnalyzer::hitFilter_ |
Definition at line 38 of file CaloHitAnalyzer.h.
Referenced by fillHits().
int CaloHitAnalyzer::noiseHits_ |
Definition at line 40 of file CaloHitAnalyzer.h.
Referenced by analyze(), and fillHits().
const CaloVSimParameterMap* CaloHitAnalyzer::simParameterMap_ |
Definition at line 37 of file CaloHitAnalyzer.h.
CaloValidationStatistics CaloHitAnalyzer::summary_ |
Definition at line 39 of file CaloHitAnalyzer.h.
Referenced by analyze().