|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "CaloDetDescr/CaloDetDescrElement.h"
26 std::unique_ptr<TFile>
fIn(TFile::Open(
28 if (!
fIn ||
fIn->IsZombie())
31 return StatusCode::FAILURE;
33 TH1F *areaHist = (
TH1F *)
fIn->Get(
"jTowerArea_final_hist");
37 return StatusCode::FAILURE;
42 float scale = 1.0 / areaHist->GetBinContent(1);
43 for (
int towerIdx = 0; towerIdx < areaHist->GetNbinsX(); ++towerIdx)
46 return StatusCode::SUCCESS;
64 return StatusCode::FAILURE;
66 float superCellEta = dde->
eta_raw();
67 float superCellPhi = dde->
phi_raw();
68 if (std::abs(superCellEta) < 3.1)
70 float superCellDEta = dde->
deta();
71 float superCellDPhi = dde->
dphi();
73 helper.SetSCIndices(scHashIdx);
76 if (
detName.find(
"FCAL0") != std::string::npos)
78 else if (
detName.find(
"FCAL1") != std::string::npos)
80 else if (
detName.find(
"FCAL2") != std::string::npos)
87 return StatusCode::SUCCESS;
95 return StatusCode::FAILURE;
100 return StatusCode::SUCCESS;
float deta() const
cell deta
def retrieve(aClass, aKey=None)
static std::string find_calib_file(const std::string &logical_file_name)
char data[hepevt_bytes_allocation_ATLAS]
const JTower_ID * m_jtowerID
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
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
JTowerMappingDataCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode loadTowerAreas(JGTowerMappingData &data) const override
float eta_raw() const
cell eta_raw
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > m_towerAreas
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
const CaloCell_ID * m_ccid
virtual StatusCode buildForwardMapping(JGTowerMappingData &data, const CaloSuperCellDetDescrManager *mgr) const override
std::vector< JGTowerHelper > JGTowerMappingData
Gaudi::Property< std::string > m_towerAreasFile
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
float dphi() const
cell dphi
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
virtual ~JTowerMappingDataCondAlg() override
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