8#include "CaloDetDescr/CaloDetDescrElement.h"
10#include "CaloEvent/CaloTower.h"
29 <<
" CellContainerKey=" <<
m_cellKey.key()
30 <<
" MinCellEnergyMeV=" <<
m_minE
35 return StatusCode::SUCCESS;
40 return StatusCode::SUCCESS;
44 const EventContext& ctx{Gaudi::Hive::currentContext()};
53 for (
const CaloCell* cell : *cells) {
57 const float eMeV = cell->energy();
58 if (eMeV <
m_minE)
continue;
95 const float eMeV = tow->energy();
98 const float eta = tow->eta();
99 const float phi = tow->phi();
100 const float etMeV = eMeV / std::cosh(
eta);
108 const double theta = 2.0 * std::atan(std::exp(-
static_cast<double>(
eta)));
109 const double st = std::sin(
theta);
110 const double ct = std::cos(
theta);
111 const double cp = std::cos(
static_cast<double>(
phi));
112 const double sp = std::sin(
static_cast<double>(
phi));
123 if (!
m_tree.fill(ctx))
return StatusCode::FAILURE;
124 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Scalar theta() const
theta method
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
Handle class for reading from StoreGate.
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
Data object for each calorimeter readout cell.
This class groups all DetDescr information related to a CaloCell.
bool is_tile() const
cell belongs to Tile
CaloCell_ID::CaloSample getSampling() const
cell sampling
float eta() const
cell eta
float phi() const
cell phi
Storable container class for CaloTower.
Data class for calorimeter cell towers.
MuonVal::VectorBranch< unsigned short > & m_cell_isTile
SG::ReadHandleKey< CaloTowerContainer > m_towerKey
SG::ReadHandleKey< CaloCellContainer > m_cellKey
MuonVal::VectorBranch< float > & m_cell_eta
std::shared_ptr< MuonVal::EventHashBranch > m_evtHash
StatusCode finalize() override final
MuonVal::ThreeVectorBranch m_tower_dir
const CaloCell_ID * m_caloId
Gaudi::Property< float > m_minE
MuonVal::VectorBranch< float > & m_cell_phi
MuonVal::VectorBranch< float > & m_tower_energy
MuonVal::VectorBranch< int > & m_cell_subCalo
StatusCode execute() override final
MuonVal::ThreeVectorBranch m_cell_pos
MuonVal::VectorBranch< float > & m_tower_et
Gaudi::Property< int > m_maxCells
Gaudi::Property< float > m_minTowerE
MuonVal::VectorBranch< int > & m_cell_sampling
MuonVal::VectorBranch< float > & m_cell_energy
MuonVal::VectorBranch< float > & m_tower_phi
MuonVal::VectorBranch< unsigned int > & m_tower_nCells
Gaudi::Property< int > m_maxTowers
StatusCode initialize() override final
MuonVal::MuonTesterTree m_tree
MuonVal::VectorBranch< float > & m_tower_eta
MuonVal::MuonIdentifierBranch m_cell_id
Eigen::Matrix< double, 3, 1 > Vector3D
This header ties the generic definitions in this package.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.