|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/MsgStream.h"
10 #include "Identifier/Identifier.h"
14 #include "CaloDetDescr/CaloDetDescrElement.h"
20 m_triggerTowerCollectionName(
"TriggerTowers"),
21 m_caloCellContainerName(
"AllCalo"),
23 m_caloCellHelper(nullptr),
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 };
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) {
91 for (; cellItr != cellEnd; ++cellItr) {
98 for (; cellItr != cellEnd; ++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;
def retrieve(aClass, aKey=None)
virtual ~L1CaloHVDummyContainers()
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
std::string m_caloCellContainerName
id_iterator cell_end(void) const
end iterator over full set of Identifiers (LAr + Tiles)
virtual StatusCode finalize() override
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition of CaloDetDescriptor.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode initialize() override
virtual StatusCode execute() override
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
const CaloCell_ID * m_caloCellHelper
id_iterator cell_begin(void) const
begin iterator over full set of Identifiers (LAr + Tiles)
Trigger towers are the inputs to all other parts of the calorimeter trigger.
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
std::string m_triggerTowerCollectionName
StatusCode initialize(bool used=true)
Container class for CaloCell.
const CaloIdManager * m_caloMgr
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
void push_back(CaloCell *)
reimplementation of const push_back
DataVector< LVL1::TriggerTower > TriggerTowerCollection
L1CaloHVDummyContainers(const std::string &name, ISvcLocator *pSvcLocator)
size_type size() const noexcept
Returns the number of elements in the collection.
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.