00001 #ifndef CALIBRATION_CLUSTER 00002 #define CALIBRATION_CLUSTER 00003 // 00004 // Owns map to be calibrated and calibration clusters 00005 // 00006 // Author: Lorenzo AGOSTINO 00007 00008 #include "DataFormats/EcalDetId/interface/EBDetId.h" 00009 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" 00010 #include<vector> 00011 #include<map> 00012 00013 using namespace std; 00014 00015 class CalibrationCluster{ 00016 00017 public: 00018 typedef map<EBDetId,unsigned int> CalibMap; 00019 typedef CalibMap::value_type pippo; 00020 00021 00022 00023 CalibrationCluster(); 00024 ~CalibrationCluster(); 00025 00026 CalibMap getMap(int, int, int, int); 00027 vector<EBDetId> get5x5Id(EBDetId const &); 00028 vector<EBDetId> get3x3Id(EBDetId const &); 00029 vector<float> getEnergyVector(const EBRecHitCollection* ,CalibMap &, vector<EBDetId> &, float &, int &); 00030 00031 private: 00032 00033 vector<EBDetId> Xtals5x5; 00034 vector<EBDetId> Xtals3x3; 00035 vector<float> energyVector; 00036 CalibMap calibRegion; 00037 }; 00038 00039 #endif