|
ATLAS Offline Software
|
Go to the documentation of this file.
15 return std::string(
buffer);
26 return StatusCode::SUCCESS;
37 if (writeHandle.isValid()) {
39 return StatusCode::SUCCESS;
42 writeHandle.addDependency(caloMgrHandle);
45 std::unique_ptr<CaloTowerGeometry> towerGeo=std::make_unique<CaloTowerGeometry>(caloDDM);
68 ATH_CHECK(writeHandle.record(std::move(towerGeo)));
69 ATH_MSG_INFO(
"recorded new CaloTowerGeometry object with key " << writeHandle.key() <<
" and range " << writeHandle.getRange());
71 return StatusCode::SUCCESS;
79 logger.push_back(
fmtMsg(
"[%s] +-------- Tower Index Mapping ---------+------------+------------+",this->
name().c_str()));
80 logger.push_back(
fmtMsg(
"[%s] | %10.10s | %10.10s | %10.10s | %10.10s | %10.10s |",this->
name().c_str(),
"TowerIndex",
" EtaIndex ",
" PhiIndex ",
" Eta ",
" Phi "));
81 logger.push_back(
fmtMsg(
"[%s] +------------+------------+------------+------------+------------+",this->
name().c_str()));
88 logger.push_back(
fmtMsg(
"[%s] +------------+------------+------------+------------+------------+",this->
name().c_str()));
100 std::ofstream towerfile;
101 towerfile.open(
"towermap.dat");
103 unsigned cellCounter=0;
104 for (;
it!=towerGeo->
end();++
it,++cellCounter) {
105 towerfile << cellCounter <<
": ";
106 for (
const auto&
item : *
it) {
108 double w=std::get<1>(
item);
109 towerfile <<
" (" <<
idx <<
"," <<
w <<
");";
111 towerfile << std::endl;
double m_fcal2Yslice
Number of y slices for cells in FCal2.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Property< double > m_fcal1Yslice
double m_fcal1Yslice
Number of y slices for cells in FCal1.
double m_towerEtaMax
Upper boundary .
std::string fmtMsg(const char *fmt,...)
double towerPhi(index_t towerIndex) const
Return azimuth from global tower index (bin center)
Gaudi::Property< double > m_towerEtaMin
Gaudi::Property< double > m_fcal3Xslice
uint_t m_towerBins
Maximum number of towers.
elementmap_t::const_iterator end() const
Iterator marks end of internal look-up table (only const access)
Gaudi::Property< bool > m_adjustEta
Gaudi::Property< double > m_fcal2Xslice
double m_towerPhiMin
Lower boundary .
index_t etaIndexFromTowerIndex(index_t towerIdx) const
Get tower bin index for a given global tower index.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize() override final
double m_towerPhiMax
Upper boundary .
double towerEta(index_t towerIndex) const
Return pseudorapidity from global tower index (bin center)
Gaudi::Property< double > m_fcal2Yslice
double m_fcal3Xslice
Number of x slices for cells in FCal3.
Gaudi::Property< double > m_towerPhiMin
void dump(const CaloTowerGeometry *towerGeo) const
Gaudi::Property< double > m_towerEtaMax
Gaudi::Property< double > m_fcal3Yslice
StatusCode execute(const EventContext &ctx) const override final
Tower geometry store and description provider.
StatusCode initialize(bool used=true)
uint_t m_towerEtaBins
Number of bins.
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
double m_fcal1Xslice
Number of x slices for cells in FCal1.
This class provides the client interface for accessing the detector description information common to...
double m_fcal2Xslice
Number of x slices for cells in FCal2.
elementmap_t::const_iterator begin() const
Iterator points to first entry in internal look-up table (only const access!)
bool m_adjustEta
Adjust FCal cells to eta boundary (default true )
StatusCode initialize(MsgStream &msg)
Initialize object.
double m_towerEtaMin
Lower boundary .
Gaudi::Property< double > m_fcal1Xslice
Gaudi::Property< unsigned > m_towerEtaBins
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::WriteCondHandleKey< CaloTowerGeometry > m_outputKey
Gaudi::Property< std::string > m_towerGridFile
double m_fcal3Yslice
Number of y slices for cells in FCal3.
Gaudi::Property< double > m_towerPhiMax
Gaudi::Property< unsigned > m_towerPhiBins
index_t phiIndexFromTowerIndex(index_t towerIdx) const
Get tower bin index for a given global tower index.
Gaudi::Property< std::string > m_towerMapFile
uint_t m_towerPhiBins
Number of bins.