|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CaloDetDescr/CaloDetDescrElement.h"
18 static const InterfaceID IID_ITileRoI_Map(
"TileRoI_Map", 1, 0);
21 {
return IID_ITileRoI_Map; }
28 declareInterface<TileRoI_Map>(
this );
59 std::cout <<
" number of ADCs made in TileRoI_Map " << nADC<< std::endl;
64 return StatusCode::SUCCESS;
102 COLL_ID_VEC::const_iterator
it =
v.begin();
103 COLL_ID_VEC::const_iterator it_end =
v.end();
109 for(;
it != it_end; ++
it)
110 if(frag == (*
it) )
found =
true;
118 std::cout <<
" Failed to get Identifier in TileRoI_Map::add "<< std::endl;
131 OFFMAP::const_iterator
it =
m_offmap.find(
id);
134 std::string
err(
" TileRoI_Map: not entry for ID ");
149 ONLMAP::const_iterator
it =
m_onlmap.find(
id );
152 std::string
err(
" TileRoI_Map::TrigTowerID(const HWIdentifier&): no entry for HWID ");
165 ROIMAP::const_iterator
it =
m_roimap.find(RoIid);
169 std::cout <<
" TileRoI_Map::CollectionID: can not find RoI" << std::endl;
177 ROIMAP::const_iterator
it =
m_roimap.find(RoIid);
185 E_P_MAP::const_iterator
it =
m_epmap.begin();
186 E_P_MAP::const_iterator it_end =
m_epmap.end();
188 std::cout <<
" COLLECTION ID , HASHID, ETAMIN, ETAMAX, PHIMIN, PHIMAX "<<std::endl ;
192 for(;
it!=it_end;++
it){
193 int frag = (*it).first;
202 std::cout <<std::hex<< frag
203 <<
" " <<hashid <<
" "
209 std::cout << std::dec << std::endl;
214 float&
etamin,
float& etamax,
215 float& phimin,
float& phimax )
const
221 E_P_MAP::const_iterator
it =
m_epmap.find(frag);
224 etamin = (*it).second.etamin;
225 etamax = (*it).second.etamax;
226 phimin = (*it).second.phimin;
227 phimax = (*it).second.phimax;
def retrieve(aClass, aKey=None)
int max() const
return maximum number of IDs
Identifier pmt2tt_id(const Identifier &id) const
static const TileCablingService * getInstance()
get pointer to service instance
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
std::vector< HWIdentifier >::const_iterator adc_begin(void) const
begin iterator for ADC Identifiers
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
const TileCablingService * m_cablingSvc
bool is_valid() const
Check if id is in a valid state.
const std::vector< COLL_ID > & CollectionID(const TT_ID &id) const
reserve lookup.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Helper class for TileCal online (hardware) identifiers.
std::vector< COLL_ID > COLL_ID_VEC
TT_ID TrigTowerID(const Identifier &id) const
return TrigTowerID for various queries.
Identifier h2s_adc_id(const HWIdentifier &id) const
::StatusCode StatusCode
StatusCode definition for legacy code.
Exception class for Tile Identifiers.
void initialize(const TileHWID *tileHWID, TYPE type=Default)
CaloDetDescrElement * get_cell_element(unsigned int cell_hash) const
bool getEtaPhiRegion(unsigned int hashid, float &etamin, float &etamax, float &phimin, float &phimax) const
returns Eta-Phi Region for a hashed ID of the Collection.
HWIdentifier channel_id(int ros, int drawer, int channel) const
channel HWIdentifer
const TileDetDescrManager * m_tileMgr
void printEtaPhiRegions()
StatusCode initialize()
define a RoI identifier type, two ints.
bool validId(const TT_ID &tt_id) const
check validity
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
std::string to_string(const Identifier &id, int level=0) const
Identifier pmt_id(const Identifier &any_id) const
const TileHWID * m_tileHWID
bool addEntry(const HWIdentifier &adc_hwid)
float eta() const
cell eta
ID identifier(int i) const
reverse conversion
float phi() const
cell phi
std::string to_string(const HWIdentifier &id, int level=0) const
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id,...
Identifier cell_id(const Identifier &any_id) const
std::vector< HWIdentifier >::const_iterator adc_end(void) const
end iterator for ADC Identifiers
TileRoI_Map(const std::string &type, const std::string &name, const IInterface *parent)
constructor