![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/IInterface.h"
17 #include "GaudiKernel/MsgStream.h"
18 #include "GaudiKernel/StatusCode.h"
22 #include "CaloDetDescr/CaloDetDescrElement.h"
27 #include "Identifier/Identifier.h"
44 m_lvl1Helper(nullptr),
45 m_sinTh(s_nsinThBins, 0.),
51 m_binOffset(s_nregions, 0),
52 m_indexOffset(s_nregions, 0),
53 m_etaShift(s_nregions, 0)
72 sc =
detStore()->retrieve(lvl1_id,
"CaloLVL1_ID");
73 if (
sc.isFailure() || !lvl1_id) {
83 const unsigned int maxCaloCells = 188080;
98 double grans[
s_nregions] = { 0.1, 0.2, 0.1, 0.425 };
99 double etaOffset[
s_nregions] = { 0., 2.5, 3.1, 3.2 };
110 int shift = binsPhi[
r] - 1;
115 for (
int i = 0;
i < binsEta[
r]; ++
i) {
116 double eta = etaOffset[
r] + (
i+0.5)*grans[
r];
125 return StatusCode::SUCCESS;
133 return StatusCode::SUCCESS;
149 const EventContext& ctx = Gaudi::Hive::currentContext();
151 int runNumber = ctx.eventID().run_number();
153 return StatusCode::SUCCESS;
162 if(!
sc.isSuccess() || !caloCellContainer) {
164 return StatusCode::SUCCESS;
175 unsigned int cellIdsIndex = 0;
179 for (; CaloCellIterator != CaloCellIteratorEnd; ++CaloCellIterator) {
181 const CaloCell* caloCell(*CaloCellIterator);
199 if (ttId2 != invalidId) {
221 const float energy2 =
energy*0.5;
225 if (tileCell && (tileCell->
provenance() & 0x8080)) {
238 if (tileCell && (tileCell->
provenance() & 0x8080)) {
268 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
bool msgLvl(const MSG::Level lvl) const
int region(const Identifier id) const
return region according to :
uint16_t provenance() const
get provenance (data member)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
double energy() const
get energy (data member)
int phi(const Identifier id) const
return phi according to :
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
uint8_t qual2(void) const
get quality of second PMT (data member)
value_type get_compact(void) const
Get the compact id.
::StatusCode StatusCode
StatusCode definition for legacy code.
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
bool is_lar_fcal() const
cell belongs to FCAL
uint16_t quality() const
get quality (data member)
bool is_tile() const
cell belongs to Tile
Helper class for offline TT identifiers.
int eta(const Identifier id) const
return eta according to :
StatusCode initialize(bool used=true)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Container class for CaloCell.
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
int sampling(const Identifier id) const
return sampling according to :
uint8_t qual1(void) const
get quality of first PMT (data member)
float sinTh() const
for algorithm working in transverse Energy
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.