00001 #ifndef CaloSimAlgos_CaloHitAnalyzer_h 00002 #define CaloSimAlgos_CaloHitAnalyzer_h 00003 00004 #include <map> 00005 #include <string> 00006 #include "SimCalorimetry/CaloSimAlgos/interface/CaloValidationStatistics.h" 00007 #include "SimDataFormats/CaloHit/interface/PCaloHitContainer.h" 00008 00016 class CaloVSimParameterMap; 00017 class CaloVHitFilter; 00018 #include "SimDataFormats/CaloHit/interface/PCaloHit.h" 00019 #include "SimDataFormats/CrossingFrame/interface/MixCollection.h" 00020 00021 00022 class CaloHitAnalyzer 00023 { 00024 public: 00025 CaloHitAnalyzer(const std::string & name, 00026 double hitEnergyThreshold, 00027 const CaloVSimParameterMap * parameterMap, 00028 const CaloVHitFilter * filter = 0); 00029 00031 void fillHits(MixCollection<PCaloHit> & hits); 00032 00034 void analyze(int detId, double recEnergy); 00035 00036 public: 00037 std::map<int, double> hitEnergySumMap_; 00038 double hitEnergyThreshold_; 00039 const CaloVSimParameterMap * simParameterMap_; 00040 const CaloVHitFilter * hitFilter_; 00041 CaloValidationStatistics summary_; 00042 int noiseHits_; 00043 }; 00044 00045 #endif 00046