|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "CaloDetDescr/CaloDetDescrElement.h"
24 return StatusCode::SUCCESS;
32 std::array<float, 5> etaBounds{3.1, 3.5, 4.0, 4.45, 4.9};
33 constexpr std::size_t nEtaTowers = etaBounds.size() - 1;
34 constexpr std::size_t nPhiTowers = 16;
35 float dPhi = 2 * TMath::Pi() / nPhiTowers;
36 for (std::size_t
iEta = 0;
iEta < etaBounds.size() - 1; ++
iEta)
38 float eta = (etaBounds[
iEta] + etaBounds[
iEta + 1]) / 2;
41 for (
int sign : {1, -1})
47 if (phi > TMath::Pi())
48 phi -= 2 * TMath::Pi();
60 return StatusCode::FAILURE;
62 if (std::abs(dde->
eta_raw()) < 3.2)
65 helper.SetSCIndices(scIdx);
75 if (
iEta < nEtaTowers - 1)
87 return StatusCode::SUCCESS;
94 return StatusCode::SUCCESS;
float towerArea(float eta)
Get the GCaloTower areas from their eta bins.
def retrieve(aClass, aKey=None)
char data[hepevt_bytes_allocation_ATLAS]
GTowerMappingDataCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
virtual StatusCode buildForwardMapping(JGTowerMappingData &data, const CaloSuperCellDetDescrManager *mgr) const override
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
const GTower_ID * m_gtowerID
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
float eta_raw() const
cell eta_raw
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual ~GTowerMappingDataCondAlg() override
virtual StatusCode loadTowerAreas(JGTowerMappingData &data) const override
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
virtual StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
std::vector< JGTowerHelper > JGTowerMappingData
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...
virtual StatusCode initialize() override
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
setScale setgFexType iEta
const CaloCell_SuperCell_ID * m_scid
float phi_raw() const
cell phi_raw
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size