7#include "GaudiKernel/MsgStream.h"
10#include "Identifier/Identifier.h"
14#include "CaloDetDescr/CaloDetDescrElement.h"
40 return StatusCode::FAILURE;
44 return StatusCode::SUCCESS;
59 const int etaBins[4] = { 25, 3, 1, 4 };
60 const int phiBins[4] = { 64, 32, 32, 16 };
61 const double etaOffsets[4] = { 0., 2.5, 3.1, 3.2 };
62 const double etaGrans[4] = { 0.1, 0.2, 0.1, 0.425 };
64 for (
int side = -1; side <= 1; side+=2) {
65 for (
int region = 0; region < 4; ++region) {
66 for (
int ieta = 0; ieta < etaBins[region]; ++ieta) {
67 double eta = side*(etaOffsets[region] + (ieta+0.5)*etaGrans[region]);
68 for (
int iphi = 0; iphi < phiBins[region]; ++iphi) {
69 double phi = (iphi+0.5)*phiGrans[region];
84 for (; cellItr != cellEnd; ++cellItr) {
86 cell->set(caloDetDescrMgr->
get_element(*cellItr), *cellItr);
91 for (; cellItr != cellEnd; ++cellItr) {
93 cell->set(caloDetDescrMgr->
get_element(*cellItr), *cellItr);
98 for (; cellItr != cellEnd; ++cellItr) {
100 cell->set(caloDetDescrMgr->
get_element(*cellItr), *cellItr);
107 if (
sc.isFailure()) {
108 ATH_MSG_ERROR(
"Failed to store TriggerTowerCollection in StoreGate");
112 if (
sc.isFailure()) {
113 ATH_MSG_ERROR(
"Failed to store CaloCellContainer in StoreGate");
121 return StatusCode::SUCCESS;
126 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition of CaloDetDescriptor.
DataVector< LVL1::TriggerTower > TriggerTowerCollection
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
void push_back(CaloCell *)
reimplementation of const push_back
Data object for each calorimeter readout cell.
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode finalize() override
std::string m_caloCellContainerName
virtual ~L1CaloHVDummyContainers()
const CaloCell_ID * m_caloCellHelper
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode execute() override
virtual StatusCode initialize() override
L1CaloHVDummyContainers(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_triggerTowerCollectionName
const CaloIdManager * m_caloMgr
Trigger towers are the inputs to all other parts of the calorimeter trigger.