Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-07 04:53:44

0001 #ifndef hcalCalibUtils_h
0002 #define hcalCalibUtils_h
0003 
0004 #include <vector>
0005 #include <map>
0006 #include "Rtypes.h"
0007 
0008 #include "DataFormats/DetId/interface/DetId.h"
0009 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
0010 
0011 #include "Calibration/HcalCalibAlgos/interface/TCell.h"
0012 
0013 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0014 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
0015 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
0016 
0017 void sumDepths(std::vector<TCell>& selectCells);  // replaces original collection
0018 
0019 // sum "small" depths in towers 16,17: depths 1,2 in HB
0020 void sumSmallDepths(std::vector<TCell>& selectCells);  // replaces original collection
0021 
0022 void combinePhi(std::vector<TCell>& selectCells);  // replaces original collection
0023 
0024 void combinePhi(std::vector<TCell>& selectCells, std::vector<TCell>& combinedCells);
0025 
0026 void getIEtaIPhiForHighestE(std::vector<TCell>& selectCells, Int_t& iEta, UInt_t& iPhi);
0027 void filterCells3x3(std::vector<TCell>& selectCells, Int_t iEta, UInt_t iPhi);
0028 void filterCells5x5(std::vector<TCell>& selectCells, Int_t iEta, UInt_t iPhi);
0029 
0030 void filterCellsInCone(std::vector<TCell>& selectCells,
0031                        const GlobalPoint hitPositionHcal,
0032                        Float_t maxConeDist,
0033                        const CaloGeometry* theCaloGeometry);
0034 
0035 // Jim's implementation fo the cone
0036 
0037 //double getDistInPlaneSimple(const GlobalPoint caloPoint, const GlobalPoint rechitPoint);
0038 
0039 //void makeTextFile(std::map<Int_t, Float_t> &coef);
0040 
0041 #endif