|
ATLAS Offline Software
|
#include <CaloGeometryLookup.h>
Definition at line 25 of file CaloGeometryLookup.h.
◆ CaloGeometryLookup()
CaloGeometryLookup::CaloGeometryLookup |
( |
int |
ind = 0 | ) |
|
◆ ~CaloGeometryLookup()
CaloGeometryLookup::~CaloGeometryLookup |
( |
| ) |
|
|
virtualdefault |
◆ add()
◆ calculate_distance_eta_phi()
float CaloGeometryLookup::calculate_distance_eta_phi |
( |
const CaloDetDescrElement * |
DDE, |
|
|
float |
eta, |
|
|
float |
phi, |
|
|
float & |
dist_eta0, |
|
|
float & |
dist_phi0 |
|
) |
| const |
|
protected |
Definition at line 249 of file CaloGeometryLookup.cxx.
253 float abs_dist_eta0=TMath::Abs(dist_eta0);
254 float abs_dist_phi0=TMath::Abs(dist_phi0);
255 return TMath::Max(abs_dist_eta0,abs_dist_phi0)-0.5;
◆ cell_grid_eta()
int CaloGeometryLookup::cell_grid_eta |
( |
| ) |
const |
|
inline |
◆ cell_grid_phi()
int CaloGeometryLookup::cell_grid_phi |
( |
| ) |
const |
|
inline |
◆ deta()
◆ dphi()
◆ dx()
◆ dy()
◆ eta_correction()
◆ getDDE()
Definition at line 258 of file CaloGeometryLookup.cxx.
270 float raw_eta=
eta+best_eta_corr;
271 float raw_phi=
phi+best_phi_corr;
278 float bestdist=+10000000;
281 while(newDDE && nsearch<3) {
282 float dist_eta0,dist_phi0;
288 cout<<
"CaloGeometryLookup::getDDE, search iteration "<<nsearch<<endl;
290 cout<<
" input sampling="<<newDDE->
getSampling()<<
" eta="<<newDDE->
eta()<<
" eta_raw="<<newDDE->
eta_raw()<<
" deta="<<newDDE->
deta()<<
" ("<<(newDDE->
eta_raw()-newDDE->
eta())/newDDE->
deta()<<
") phi="<<newDDE->
phi()<<
" phi_raw="<<newDDE->
phi_raw()<<
" dphi="<<newDDE->
dphi()<<
" ("<<(newDDE->
phi_raw()-newDDE->
phi())/newDDE->
dphi()<<
")"<<endl;
291 cout<<
" ieta="<<ieta<<
" iphi="<<iphi<<endl;
292 cout<<
" dist_eta0="<<dist_eta0<<
" ,dist_phi0="<<dist_phi0<<endl;
297 ieta+=TMath::Nint(dist_eta0);
298 iphi+=TMath::Nint(dist_phi0);
304 if(oldDDE==newDDE)
break;
307 cout<<
"CaloGeometryLookup::getDDE, direct search ieta="<<ieta<<
" iphi="<<iphi<<
" is empty"<<endl;
313 if(minieta<0) minieta=0;
315 for(
int iieta=minieta;iieta<=maxieta;++iieta) {
316 for(
int iiphi=miniphi;iiphi<=maxiphi;++iiphi) {
323 float dist_eta0,dist_phi0;
329 cout<<
" input sampling="<<newDDE->
getSampling()<<
" eta="<<newDDE->
eta()<<
" eta_raw="<<newDDE->
eta_raw()<<
" deta="<<newDDE->
deta()<<
" ("<<(newDDE->
eta_raw()-newDDE->
eta())/newDDE->
deta()<<
") phi="<<newDDE->
phi()<<
" phi_raw="<<newDDE->
phi_raw()<<
" dphi="<<newDDE->
dphi()<<
" ("<<(newDDE->
phi_raw()-newDDE->
phi())/newDDE->
dphi()<<
")"<<endl;
330 cout<<
" ieta="<<ieta<<
" iphi="<<iphi<<endl;
331 cout<<
" dist_eta0="<<dist_eta0<<
" ,dist_phi0="<<dist_phi0<<endl;
340 cout<<
"CaloGeometryLookup::getDDE, windows search ieta="<<ieta<<
" iphi="<<iphi<<
" is empty"<<endl;
◆ has_overlap()
◆ index()
int CaloGeometryLookup::index |
( |
| ) |
const |
|
inline |
◆ index_range_adjust()
bool CaloGeometryLookup::index_range_adjust |
( |
int & |
ieta, |
|
|
int & |
iphi |
|
) |
| const |
|
protected |
◆ IsCompatible()
Definition at line 72 of file CaloGeometryLookup.cxx.
74 if(
m_cells.empty())
return true;
78 if(
cell->getSampling()!=sampling)
return false;
79 if(
cell->eta_raw()*refcell->
eta_raw()<0)
return false;
81 if(TMath::Abs(
cell->deta()-refcell->
deta())>0.001)
return false;
82 if(TMath::Abs(
cell->dphi()-refcell->
dphi())>0.001)
return false;
89 if(TMath::Abs(delta_eta-TMath::Nint(delta_eta)) > 0.01)
return false;
◆ maxeta()
float CaloGeometryLookup::maxeta |
( |
| ) |
const |
|
inline |
◆ maxeta_raw()
float CaloGeometryLookup::maxeta_raw |
( |
| ) |
const |
|
inline |
◆ maxphi()
float CaloGeometryLookup::maxphi |
( |
| ) |
const |
|
inline |
◆ maxphi_raw()
float CaloGeometryLookup::maxphi_raw |
( |
| ) |
const |
|
inline |
◆ maxx()
float CaloGeometryLookup::maxx |
( |
| ) |
const |
|
inline |
◆ maxx_raw()
float CaloGeometryLookup::maxx_raw |
( |
| ) |
const |
|
inline |
◆ maxy()
float CaloGeometryLookup::maxy |
( |
| ) |
const |
|
inline |
◆ maxy_raw()
float CaloGeometryLookup::maxy_raw |
( |
| ) |
const |
|
inline |
◆ merge_into_ref()
◆ mindeta()
float CaloGeometryLookup::mindeta |
( |
| ) |
|
|
inline |
◆ mindphi()
float CaloGeometryLookup::mindphi |
( |
| ) |
|
|
inline |
◆ mindx()
float CaloGeometryLookup::mindx |
( |
| ) |
|
|
inline |
◆ mindy()
float CaloGeometryLookup::mindy |
( |
| ) |
|
|
inline |
◆ mineta()
float CaloGeometryLookup::mineta |
( |
| ) |
const |
|
inline |
◆ mineta_raw()
float CaloGeometryLookup::mineta_raw |
( |
| ) |
const |
|
inline |
◆ minphi()
float CaloGeometryLookup::minphi |
( |
| ) |
const |
|
inline |
◆ minphi_raw()
float CaloGeometryLookup::minphi_raw |
( |
| ) |
const |
|
inline |
◆ minx()
float CaloGeometryLookup::minx |
( |
| ) |
const |
|
inline |
◆ minx_raw()
float CaloGeometryLookup::minx_raw |
( |
| ) |
const |
|
inline |
◆ miny()
float CaloGeometryLookup::miny |
( |
| ) |
const |
|
inline |
◆ miny_raw()
float CaloGeometryLookup::miny_raw |
( |
| ) |
const |
|
inline |
◆ neta()
Int_t CaloGeometryLookup::neta |
( |
| ) |
|
|
inlineprotected |
◆ neta_double()
float CaloGeometryLookup::neta_double |
( |
| ) |
|
|
inlineprotected |
◆ nphi()
Int_t CaloGeometryLookup::nphi |
( |
| ) |
|
|
inlineprotected |
◆ nphi_double()
float CaloGeometryLookup::nphi_double |
( |
| ) |
|
|
inlineprotected |
◆ nx()
Int_t CaloGeometryLookup::nx |
( |
| ) |
|
|
inlineprotected |
◆ nx_double()
float CaloGeometryLookup::nx_double |
( |
| ) |
|
|
inlineprotected |
◆ ny()
Int_t CaloGeometryLookup::ny |
( |
| ) |
|
|
inlineprotected |
◆ ny_double()
float CaloGeometryLookup::ny_double |
( |
| ) |
|
|
inlineprotected |
◆ phi_correction()
◆ post_process()
void CaloGeometryLookup::post_process |
( |
| ) |
|
Definition at line 187 of file CaloGeometryLookup.cxx.
189 if(
size()==0)
return;
196 if(TMath::Abs(rneta)>0.05 || TMath::Abs(rnphi)>0.05) {
197 cout<<
"ERROR: can't map cells into a regular grid for sampling "<<sampling<<
", map index "<<
index()<<endl;
234 cout<<
"Grid: Sampling "<<sampling<<
"_"<<
index()<<
": Already cell found at pos ("<<ieta<<
","<<iphi<<
"): id="
243 cout<<
"Grid: Sampling "<<sampling<<
"_"<<
index()<<
": Cell at pos ("<<ieta<<
","<<iphi<<
"): id="
244 <<refcell->
identify()<<
" outside eta range"<<endl;
◆ raw_eta_position_to_index()
int CaloGeometryLookup::raw_eta_position_to_index |
( |
float |
eta_raw | ) |
const |
|
inlineprotected |
◆ raw_phi_position_to_index()
int CaloGeometryLookup::raw_phi_position_to_index |
( |
float |
phi_raw | ) |
const |
|
inlineprotected |
◆ set_index()
void CaloGeometryLookup::set_index |
( |
int |
ind | ) |
|
|
inline |
◆ set_xy_grid_adjustment_factor()
void CaloGeometryLookup::set_xy_grid_adjustment_factor |
( |
float |
factor | ) |
|
|
inline |
◆ size()
t_cellmap::size_type CaloGeometryLookup::size |
( |
| ) |
const |
|
inline |
◆ x_correction()
◆ y_correction()
◆ m_cell_grid
◆ m_cell_grid_eta
int CaloGeometryLookup::m_cell_grid_eta |
|
protected |
◆ m_cell_grid_phi
int CaloGeometryLookup::m_cell_grid_phi |
|
protected |
◆ m_cells
◆ m_deta
◆ m_deta_double
float CaloGeometryLookup::m_deta_double |
|
protected |
◆ m_dphi
◆ m_dphi_double
float CaloGeometryLookup::m_dphi_double |
|
protected |
◆ m_eta_correction
◆ m_index
int CaloGeometryLookup::m_index |
|
protected |
◆ m_maxeta
float CaloGeometryLookup::m_maxeta |
|
protected |
◆ m_maxeta_correction
float CaloGeometryLookup::m_maxeta_correction |
|
protected |
◆ m_maxeta_raw
float CaloGeometryLookup::m_maxeta_raw |
|
protected |
◆ m_maxphi
float CaloGeometryLookup::m_maxphi |
|
protected |
◆ m_maxphi_correction
float CaloGeometryLookup::m_maxphi_correction |
|
protected |
◆ m_maxphi_raw
float CaloGeometryLookup::m_maxphi_raw |
|
protected |
◆ m_mindeta
float CaloGeometryLookup::m_mindeta |
|
protected |
◆ m_mindphi
float CaloGeometryLookup::m_mindphi |
|
protected |
◆ m_mineta
float CaloGeometryLookup::m_mineta |
|
protected |
◆ m_mineta_correction
float CaloGeometryLookup::m_mineta_correction |
|
protected |
◆ m_mineta_raw
float CaloGeometryLookup::m_mineta_raw |
|
protected |
◆ m_minphi
float CaloGeometryLookup::m_minphi |
|
protected |
◆ m_minphi_correction
float CaloGeometryLookup::m_minphi_correction |
|
protected |
◆ m_minphi_raw
float CaloGeometryLookup::m_minphi_raw |
|
protected |
◆ m_phi_correction
◆ m_xy_grid_adjustment_factor
float CaloGeometryLookup::m_xy_grid_adjustment_factor |
|
protected |
The documentation for this class was generated from the following files:
float deta() const
cell deta
JetConstituentVector::iterator iterator
MeanAndRMS & add(double xadd, double weight=1)
float m_xy_grid_adjustment_factor
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
bool index_range_adjust(int &ieta, int &iphi) const
const MeanAndRMS & deta()
int raw_phi_position_to_index(float phi_raw) const
__HOSTDEV__ double Phi_mpi_pi(double)
float m_maxphi_correction
float m_maxeta_correction
float eta_raw() const
cell eta_raw
MeanAndRMS m_eta_correction
Identifier identify() const override final
cell identifier
static const Identifier m_debug_identify
MeanAndRMS m_phi_correction
float m_minphi_correction
const MeanAndRMS & dphi()
float x_raw() const
cell x_raw
static std::atomic< bool > m_debug
float dphi() const
cell dphi
std::vector< std::vector< const CaloDetDescrElement * > > m_cell_grid
CaloCell_ID::CaloSample getSampling() const
cell sampling
const boost::regex ref(r_ef)
def delta_phi(phi1, phi2)
t_cellmap::size_type size() const
int cell_grid_eta() const
float m_mineta_correction
int cell_grid_phi() const
float eta() const
cell eta
float phi() const
cell phi
float calculate_distance_eta_phi(const CaloDetDescrElement *DDE, float eta, float phi, float &dist_eta0, float &dist_phi0) const
float y_raw() const
cell y_raw
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
int raw_eta_position_to_index(float eta_raw) const
float phi_raw() const
cell phi_raw