CMS 3D CMS Logo

Functions

CMSSW_4_4_3_patch1/src/Calibration/HcalCalibAlgos/interface/hcalCalibUtils.h File Reference

#include <vector>
#include <map>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "Calibration/HcalCalibAlgos/src/TCell.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"

Go to the source code of this file.

Functions

void combinePhi (std::vector< TCell > &selectCells)
void combinePhi (std::vector< TCell > &selectCells, std::vector< TCell > &combinedCells)
void filterCells3x3 (std::vector< TCell > &selectCells, Int_t iEta, UInt_t iPhi)
void filterCells5x5 (std::vector< TCell > &selectCells, Int_t iEta, UInt_t iPhi)
void filterCellsInCone (std::vector< TCell > &selectCells, const GlobalPoint hitPositionHcal, Float_t maxConeDist, const CaloGeometry *theCaloGeometry)
void getIEtaIPhiForHighestE (std::vector< TCell > &selectCells, Int_t &iEta, UInt_t &iPhi)
void sumDepths (std::vector< TCell > &selectCells)
void sumSmallDepths (std::vector< TCell > &selectCells)

Function Documentation

void combinePhi ( std::vector< TCell > &  selectCells)
void combinePhi ( std::vector< TCell > &  selectCells,
std::vector< TCell > &  combinedCells 
)
void filterCells3x3 ( std::vector< TCell > &  selectCells,
Int_t  iEta,
UInt_t  iPhi 
)

Referenced by hcalCalib::Process().

void filterCells5x5 ( std::vector< TCell > &  selectCells,
Int_t  iEta,
UInt_t  iPhi 
)

Referenced by hcalCalib::Process().

void filterCellsInCone ( std::vector< TCell > &  selectCells,
const GlobalPoint  hitPositionHcal,
Float_t  maxConeDist,
const CaloGeometry theCaloGeometry 
)

Definition at line 344 of file hcalCalibUtils.cc.

References getDistInPlaneSimple(), CaloGeometry::getPosition(), and diJetCalib::maxConeDist.

Referenced by hcalCalib::Process().

                                                                                 {

  vector<TCell> filteredCells;
      
  for (vector<TCell>::iterator it=selectCells.begin(); it!=selectCells.end(); ++it) {

    const GlobalPoint recHitPoint = theCaloGeometry->getPosition(it->id());

    if (getDistInPlaneSimple(hitPositionHcal, recHitPoint)<= maxConeDist) 
      filteredCells.push_back(*it);
  }

  selectCells = filteredCells;

  return;
}
void getIEtaIPhiForHighestE ( std::vector< TCell > &  selectCells,
Int_t &  iEta,
UInt_t &  iPhi 
)

Referenced by hcalCalib::Process().

void sumDepths ( std::vector< TCell > &  selectCells)
void sumSmallDepths ( std::vector< TCell > &  selectCells)