|
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 );
54 std::cout <<
" number of ADCs made in TileRoI_Map " << nADC<< std::endl;
59 return StatusCode::SUCCESS;
97 COLL_ID_VEC::const_iterator
it =
v.begin();
98 COLL_ID_VEC::const_iterator it_end =
v.end();
104 for(;
it != it_end; ++
it)
105 if(frag == (*
it) )
found =
true;
113 std::cout <<
" Failed to get Identifier in TileRoI_Map::add "<< std::endl;
126 OFFMAP::const_iterator
it =
m_offmap.find(
id);
129 std::string
err(
" TileRoI_Map: not entry for ID ");
144 ONLMAP::const_iterator
it =
m_onlmap.find(
id );
147 std::string
err(
" TileRoI_Map::TrigTowerID(const HWIdentifier&): no entry for HWID ");
160 ROIMAP::const_iterator
it =
m_roimap.find(RoIid);
164 std::cout <<
" TileRoI_Map::CollectionID: can not find RoI" << std::endl;
172 ROIMAP::const_iterator
it =
m_roimap.find(RoIid);
180 E_P_MAP::const_iterator
it =
m_epmap.begin();
181 E_P_MAP::const_iterator it_end =
m_epmap.end();
183 std::cout <<
" COLLECTION ID , HASHID, ETAMIN, ETAMAX, PHIMIN, PHIMAX "<<std::endl ;
187 for(;
it!=it_end;++
it){
188 int frag = (*it).first;
197 std::cout <<std::hex<< frag
198 <<
" " <<hashid <<
" "
204 std::cout << std::dec << std::endl;
209 float&
etamin,
float& etamax,
210 float& phimin,
float& phimax )
const
216 E_P_MAP::const_iterator
it =
m_epmap.find(frag);
219 etamin = (*it).second.etamin;
220 etamax = (*it).second.etamax;
221 phimin = (*it).second.phimin;
222 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
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Gaudi::Property< bool > m_print
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