Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <LArHVMapTool.h>
|
| LArHVMapTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~LArHVMapTool ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual void | GetHVLines (const Identifier &id, const CaloDetDescrManager *cddm, std::vector< int > &hvLineVec) const override final |
|
virtual void | GetHVLines (const Identifier &id, const CaloDetDescrManager *cddm, std::vector< HWIdentifier > &hvLineId) const override final |
|
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 |
|
Definition at line 17 of file LArHVMapTool.h.
◆ StoreGateSvc_t
◆ LArHVMapTool()
LArHVMapTool::LArHVMapTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~LArHVMapTool()
virtual LArHVMapTool::~LArHVMapTool |
( |
| ) |
|
|
virtualdefault |
◆ 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
◆ finalize()
virtual StatusCode LArHVMapTool::finalize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetHVLines() [1/2]
◆ GetHVLines() [2/2]
◆ GetHVLinesCore()
Definition at line 72 of file LArHVMapTool.cxx.
75 std::set<HWIdentifier> hvId;
76 if(hvLineVec) hvLineVec->clear();
77 if(hvLineId) hvLineId->clear();
85 unsigned int nelec =
cell->getNumElectrodes();
86 for (
unsigned int i=0;
i<nelec;
i++) {
88 for (
unsigned int igap=0;igap<2;igap++) {
101 unsigned int nelec =
cell->getNumElectrodes();
102 for (
unsigned int i=0;
i<nelec;
i++) {
104 for (
unsigned int igap=0;igap<2;igap++) {
118 unsigned int nsubgaps =
cell->getNumSubgaps();
119 for (
unsigned int igap=0;igap<nsubgaps;igap++) {
132 unsigned int nlines =
tile->getNumHVLines();
133 unsigned int nlines_found=0;
134 for (
unsigned int i=0;
i<nlines;
i++) {
136 if (
line) nlines_found++;
138 if ( nlines_found>0 ) {
139 for (
unsigned int i=0;
i<nlines;
i++) {
157 for (
unsigned int igap=0;igap<2;igap++) {
163 ATH_MSG_ERROR(
"Failed d'cast to EMBDetectorElement (for presampler)" );
174 ATH_MSG_ERROR(
"Failed d'cast to EMECDetectorElement (for presampler)" );
179 ATH_MSG_VERBOSE(
"Found "<<hvId.size()<<
" hvIds for id: "<<
id.get_identifier32().get_compact());
◆ initialize()
StatusCode LArHVMapTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 27 of file LArHVMapTool.cxx.
40 const EventContext& ctx = Gaudi::Hive::currentContext();
48 return StatusCode::FAILURE;
56 std::vector<int> hvlineVec;
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 & ILArHVMapTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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.
◆ 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.
◆ updateVHKA()
◆ m_caloDetDescrMgrKey
◆ m_caloIdMgr
◆ m_detStore
◆ m_evtStore
◆ m_hvCablingKey
◆ m_hvmapping
◆ m_larem_id
◆ m_larfcal_id
◆ m_larhec_id
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
GeoIntrusivePtr< const HECCell > HECCellConstLink
@Class: HECCellConstLink
LAr EMEC Detector Element.
const EMECHVManager & getManager() const
Smart Pointer to EMEC Cells. This reference counted link allocates on demand. It audits the total poi...
bool is_lar_fcal(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const LArEM_ID * getEM_ID(void) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const
Convert a hash code to an Identifier for either channels or regions, depending on the context.
int sampling(const Identifier id) const
return sampling according to :
const HECHVManager & getManager() const
int hvLineNo(const EMECHVElectrode &electrode, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
#define ATH_MSG_VERBOSE(x)
const FCALTile * getFCALTile() const
FCAL Tile description from LArReadoutGeometry.
const EMBPresamplerHVManager & getManager() const
EMECCellConstLink getEMECCell() const
EMEC Cell description from LArReadoutGeometry.
LAr EMB Detector Element.
GeoIntrusivePtr< const EMBCell > EMBCellConstLink
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
LAr HEC Detector Element.
A tile of the forward calorimeter readout geometry.
const EMBHVManager & getManager() const
const LArHEC_ID * getHEC_ID(void) const
LAr FCAL Detector Element.
int hvLineNo(const EMBHVElectrode &electrode, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
const LArFCAL_ID * getFCAL_ID(void) const
#define CHECK(...)
Evaluate an expression and check for errors.
bool is_lar_hec(Identifier id) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const HECHVModule & getModule() const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const EMBHVModule & getModule() const
int barrel_ec(const Identifier id) const
return barrel_ec according to :
StatusCode initialize(bool used=true)
const EMECHVModule & getModule() const
EMBCellConstLink getEMBCell() const
EMB Cell description from LArReadoutGeometry.
This class provides the client interface for accessing the detector description information common to...
int hvLineNo(const EMECPresamplerHVModule &module, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlineId=nullptr) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Describes one HV Module within the EMEc Presampler.
const EMECPresamplerHVManager & getManager() const
HECCellConstLink getHECCell() const
HEC Cell description from LArReadoutGeometry.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
int hvLineNo(const HECHVSubgap &subgap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
int hvLineNo(const EMBPresamplerHVModule &module, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
bool is_lar_em(Identifier id) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Describes one HV Module within the EMB Presampler.