15 (
const std::string& t,
const std::string& n,
const IInterface* p)
16 : base_class(t, n, p) {}
22 for(
int ibc = 0; ibc <
BC_ALL; ibc++) {
23 std::ostringstream location;
24 location <<
"TGC_Measurements"
26 << (ibc ==
BC_NEXT ?
"NextBC" :
"");
33 return StatusCode::SUCCESS;
47 return StatusCode::FAILURE;
52 auto tgc3BCHandles =
m_3BCKeys.makeHandles(ctx);
53 for (
int ibc = 0; ibc <
BC_ALL; ibc++){
54 tgc3BCHandles.at(ibc) = std::make_unique<TgcPrepDataContainer>(
m_idHelperSvc->tgcIdHelper().module_hash_max());
60 uint16_t bcBitMap = to_copy->getBcBitMap();
61 std::array<uint16_t, BC_NUM> hasBC{0};
69 const Identifier channelId = to_copy->identify();
71 std::array<Muon::TgcPrepDataCollection*, BC_ALL> collections{};
72 for (
int ibc = 0; ibc <
BC_ALL; ibc++) {
73 collections[ibc] = Muon::IDC_Helper::getCollection<TgcPrepDataContainer, TgcIdHelper>
76 if (!hasBC[ibc])
continue;
78 newPrepData->
setHashAndIndex(collections[ibc]->identifyHash(), collections[ibc]->size());
79 collections[ibc]->push_back(newPrepData);
85 return StatusCode::SUCCESS;
94 const std::vector<Identifier> &identifierList = to_copy->
rdoList();
98 identifierList, newErrHitPos, descriptor);
#define ATH_CHECK
Evaluate an expression and check for errors.
This is a "hash" representation of an Identifier.
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Class to represent TGC measurements.
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
virtual const MuonGM::TgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not ...
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const Amg::Vector2D & localPosition() const
return the local position reference
Identifier identify() const
return the identifier
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
MuonPrepDataCollection< TgcPrepData > TgcPrepDataCollection