40 const EventContext& ctx = Gaudi::Hive::currentContext();
48 return StatusCode::FAILURE;
56 std::vector<int> hvlineVec;
59 return StatusCode::SUCCESS;
63 std::vector<int> &hvLineVec)
const {
68 std::vector<HWIdentifier> &hvLineId)
const {
73 std::vector<int> *hvLineVec, std::vector<HWIdentifier> *hvLineId)
const {
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++) {
143 hv.insert(line->getModule().getManager().hvLineNo(*line,
m_hvmapping,&hvline));
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());
182 for (std::set<int>::iterator i=hv.begin();i!=hv.end();++i) hvLineVec->push_back(*i);
185 for (std::set<HWIdentifier>::iterator i=hvId.begin();i!=hvId.end();++i) hvLineId->push_back(*i);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Calo Subsystem specific Detector Elements + Dummy element for testing.
#define CHECK(...)
Evaluate an expression and check for errors.
GeoIntrusivePtr< const EMBCell > EMBCellConstLink
GeoIntrusivePtr< const HECCell > HECCellConstLink
@Class: HECCellConstLink
const ServiceHandle< StoreGateSvc > & detStore() const
Header file for AthHistogramAlgorithm.
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
LAr EMB Detector Element.
EMBCellConstLink getEMBCell() const
EMB Cell description from LArReadoutGeometry.
const EMBHVModule & getModule() const
int hvLineNo(const EMBHVElectrode &electrode, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
const EMBHVManager & getManager() const
int hvLineNo(const EMBPresamplerHVModule &module, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
Describes one HV Module within the EMB Presampler.
const EMBPresamplerHVManager & getManager() const
Smart Pointer to EMEC Cells.
LAr EMEC Detector Element.
EMECCellConstLink getEMECCell() const
EMEC Cell description from LArReadoutGeometry.
const EMECHVModule & getModule() const
int hvLineNo(const EMECHVElectrode &electrode, int gap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
const EMECHVManager & getManager() const
int hvLineNo(const EMECPresamplerHVModule &module, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlineId=nullptr) const
Describes one HV Module within the EMEc Presampler.
const EMECPresamplerHVManager & getManager() const
LAr FCAL Detector Element.
const FCALTile * getFCALTile() const
FCAL Tile description from LArReadoutGeometry.
A tile of the forward calorimeter readout geometry.
LAr HEC Detector Element.
HECCellConstLink getHECCell() const
HEC Cell description from LArReadoutGeometry.
int hvLineNo(const HECHVSubgap &subgap, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlId=nullptr) const
const HECHVManager & getManager() const
const HECHVModule & getModule() const
This is a "hash" representation of an Identifier.