|
ATLAS Offline Software
|
TileCal RoI map to offline Identifier.
More...
#include <TileRoI_Map.h>
|
| TileRoI_Map (const std::string &type, const std::string &name, const IInterface *parent) |
| constructor More...
|
|
StatusCode | initialize () |
| define a RoI identifier type, two ints. More...
|
|
virtual | ~TileRoI_Map () |
|
TT_ID | TrigTowerID (const Identifier &id) const |
| return TrigTowerID for various queries. More...
|
|
TT_ID | TrigTowerID (const HWIdentifier &id) const |
|
const std::vector< COLL_ID > & | CollectionID (const TT_ID &id) const |
| reserve lookup. More...
|
|
bool | validId (const TT_ID &tt_id) const |
| check validity More...
|
|
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. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
TileCal RoI map to offline Identifier.
- Author
- Alexandre Solodkov
- Version
- 00-00-01 , 26/08/2002
Definition at line 32 of file TileRoI_Map.h.
◆ COLL_ID
◆ COLL_ID_VEC
◆ E_P_MAP
◆ OFFMAP
◆ ONLMAP
◆ ROIMAP
◆ StoreGateSvc_t
◆ TT_ID
◆ TileRoI_Map()
TileRoI_Map::TileRoI_Map |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
constructor
Definition at line 24 of file TileRoI_Map.cxx.
28 declareInterface<TileRoI_Map>(
this );
◆ ~TileRoI_Map()
TileRoI_Map::~TileRoI_Map |
( |
| ) |
|
|
virtual |
◆ addEntry()
Definition at line 67 of file TileRoI_Map.cxx.
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;
◆ CollectionID()
reserve lookup.
given RoI, get CollectionID
Definition at line 157 of file TileRoI_Map.cxx.
160 ROIMAP::const_iterator
it =
m_roimap.find(RoIid);
164 std::cout <<
" TileRoI_Map::CollectionID: can not find RoI" << std::endl;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ getEtaPhiRegion()
bool TileRoI_Map::getEtaPhiRegion |
( |
unsigned int |
hashid, |
|
|
float & |
etamin, |
|
|
float & |
etamax, |
|
|
float & |
phimin, |
|
|
float & |
phimax |
|
) |
| const |
returns Eta-Phi Region for a hashed ID of the Collection.
return false for invalid ID.
Definition at line 208 of file TileRoI_Map.cxx.
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;
◆ initialize()
StatusCode TileRoI_Map::initialize |
( |
| ) |
|
define a RoI identifier type, two ints.
iterator over all ADC Identifiers
Definition at line 31 of file TileRoI_Map.cxx.
54 std::cout <<
" number of ADCs made in TileRoI_Map " << nADC<< std::endl;
59 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & TileRoI_Map::interfaceID |
( |
| ) |
|
|
static |
AlgTool InterfaceID.
Definition at line 20 of file TileRoI_Map.cxx.
21 {
return IID_ITileRoI_Map; }
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ printEtaPhiRegions()
void TileRoI_Map::printEtaPhiRegions |
( |
| ) |
|
|
private |
Definition at line 176 of file TileRoI_Map.cxx.
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;
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ TrigTowerID() [1/2]
Definition at line 141 of file TileRoI_Map.cxx.
144 ONLMAP::const_iterator
it =
m_onlmap.find(
id );
147 std::string
err(
" TileRoI_Map::TrigTowerID(const HWIdentifier&): no entry for HWID ");
◆ TrigTowerID() [2/2]
return TrigTowerID for various queries.
Definition at line 123 of file TileRoI_Map.cxx.
126 OFFMAP::const_iterator
it =
m_offmap.find(
id);
129 std::string
err(
" TileRoI_Map: not entry for ID ");
◆ updateVHKA()
◆ validId()
bool TileRoI_Map::validId |
( |
const TT_ID & |
tt_id | ) |
const |
◆ m_cablingSvc
◆ m_detStore
◆ m_epmap
◆ m_evtStore
◆ m_idhash
◆ m_offmap
◆ m_onlmap
◆ m_print
Gaudi::Property<bool> TileRoI_Map::m_print {this, "Print", false} |
|
private |
◆ m_roimap
◆ m_tileHWID
◆ m_tileID
◆ m_tileMgr
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
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...
Gaudi::Property< bool > m_print
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
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 ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
Helper class for TileCal online (hardware) identifiers.
std::vector< COLL_ID > COLL_ID_VEC
Identifier h2s_adc_id(const HWIdentifier &id) const
Exception class for Tile Identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void initialize(const TileHWID *tileHWID, TYPE type=Default)
CaloDetDescrElement * get_cell_element(unsigned int cell_hash) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
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()
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
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< HWIdentifier >::const_iterator adc_end(void) const
end iterator for ADC Identifiers