CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/Calibration/Tools/interface/CalibrationCluster.h

Go to the documentation of this file.
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 class CalibrationCluster{
00014 
00015 public:
00016 typedef std::map<EBDetId,unsigned int> CalibMap;
00017 typedef CalibMap::value_type pippo;
00018 
00019 
00020 
00021 CalibrationCluster();
00022 ~CalibrationCluster();
00023 
00024 CalibMap getMap(int, int, int, int);
00025 std::vector<EBDetId> get5x5Id(EBDetId const &);
00026 std::vector<EBDetId> get3x3Id(EBDetId const &);
00027 std::vector<float>   getEnergyVector(const EBRecHitCollection* ,CalibMap &, std::vector<EBDetId> &, float &, int &);
00028 
00029 private:
00030 
00031 std::vector<EBDetId> Xtals5x5;
00032 std::vector<EBDetId> Xtals3x3;
00033 std::vector<float> energyVector;
00034 CalibMap calibRegion;
00035 };
00036 
00037 #endif