CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Calibration/HcalCalibAlgos/interface/hcalCalibUtils.h

Go to the documentation of this file.
00001 #ifndef hcalCalibUtils_h
00002 #define hcalCalibUtils_h
00003 
00004 #include <vector>
00005 #include <map>
00006 
00007 #include "DataFormats/DetId/interface/DetId.h"
00008 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00009 
00010 #include "Calibration/HcalCalibAlgos/src/TCell.h"
00011 
00012 
00013 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00014 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
00015 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00016 
00017 
00018 void sumDepths(std::vector<TCell> &selectCells);   // replaces original collection
00019 
00020 // sum "small" depths in towers 16,17: depths 1,2 in HB
00021 void sumSmallDepths(std::vector<TCell> &selectCells);   // replaces original collection
00022 
00023 void combinePhi(std::vector<TCell> &selectCells);  // replaces original collection
00024 
00025 void combinePhi(std::vector<TCell> &selectCells, std::vector<TCell> &combinedCells);
00026 
00027 
00028 
00029 void getIEtaIPhiForHighestE(std::vector<TCell>& selectCells, Int_t& iEta, UInt_t& iPhi);
00030 void filterCells3x3        (std::vector<TCell>& selectCells, Int_t iEta, UInt_t iPhi);
00031 void filterCells5x5        (std::vector<TCell>& selectCells, Int_t iEta, UInt_t iPhi);
00032 
00033 
00034 void filterCellsInCone     (std::vector<TCell>& selectCells, const GlobalPoint hitPositionHcal, 
00035                             Float_t maxConeDist, const CaloGeometry* theCaloGeometry);
00036 
00037 // Jim's implementation fo the cone
00038 
00039 //double getDistInPlaneSimple(const GlobalPoint caloPoint, const GlobalPoint rechitPoint);
00040 
00041 
00042 
00043 //void makeTextFile(std::map<Int_t, Float_t> &coef);
00044 
00045 #endif