![]() |
ATLAS Offline Software
|
Data cache to hold the translated prd & xAOD containers. More...
#include <sTgcRdoToPrepDataToolMT.h>
Public Types | |
| using | StripCont_t |
| using | WireCont_t |
| using | PadCont_t |
Public Member Functions | |
| DataCache (const std::size_t hashMax, const PrdKey_t &key, const EventContext &ctx) | |
| Constructor to instantiate the cache. | |
| ~DataCache () | |
| Overwrite the destructor to ensure that the xAOD containers are made. | |
| DataCache & | operator= (DataCache &&other)=default |
| Default move operator. | |
| DataCache (DataCache &&other)=default | |
| Default move constructor. | |
| void | translateAndSort (sTgcPrepDataCollection &coll) |
| Sort the prepdata collection by the Identifier of the objects contained and then translate the prd objects into xAOD objects. | |
| void | translate (const sTgcPrepDataCollection &coll) |
| Translate the prd objects conained in the collection to xAOD objects. | |
Public Attributes | |
| StripCont_t | strips {} |
| Container to hold the translated xAOD strips. | |
| WireCont_t | wires {} |
| Container to hold the translated xAOD wires. | |
| PadCont_t | pads {} |
| Container to hold the translated xAOD pads. | |
| SG::WriteHandle< sTgcPrepDataContainer > | prdWriteHandle {} |
| Instantiated WriteHandle. | |
| std::vector< std::unique_ptr< sTgcPrepDataCollection > > | collections {} |
| Prep data collections that will be appended to the container in store gate. | |
| const MuonGMR4::MuonDetectorManager * | detMgr {nullptr} |
| Pointer to the R4 detector manager. | |
| bool | isValid {false} |
| Flag indicating whether the container is valid. | |
Data cache to hold the translated prd & xAOD containers.
Definition at line 64 of file sTgcRdoToPrepDataToolMT.h.
Definition at line 69 of file sTgcRdoToPrepDataToolMT.h.
Definition at line 65 of file sTgcRdoToPrepDataToolMT.h.
Definition at line 67 of file sTgcRdoToPrepDataToolMT.h.
| Muon::sTgcRdoToPrepDataToolMT::DataCache::DataCache | ( | const std::size_t | hashMax, |
| const PrdKey_t & | key, | ||
| const EventContext & | ctx ) |
Constructor to instantiate the cache.
| hashMax | Number of sTGC chambers (summarizing ML 1 + ML2) |
| key | The writeHandleKey to fetch the container from StoreGate |
Definition at line 24 of file sTgcRdoToPrepDataToolMT.cxx.
| Muon::sTgcRdoToPrepDataToolMT::DataCache::~DataCache | ( | ) |
Overwrite the destructor to ensure that the xAOD containers are made.
Definition at line 110 of file sTgcRdoToPrepDataToolMT.cxx.
|
default |
Default move constructor.
Default move operator.
| void Muon::sTgcRdoToPrepDataToolMT::DataCache::translate | ( | const sTgcPrepDataCollection & | coll | ) |
Translate the prd objects conained in the collection to xAOD objects.
| coll | Reference to the collection to process |
Calculate the eta covariance from the geometry for now for
In the R4 layout both phi & eta measurements are expressed on the same surface. However, the rotation from eta -> phi is clockwise --> minus sign in prd creation
Definition at line 45 of file sTgcRdoToPrepDataToolMT.cxx.
| void Muon::sTgcRdoToPrepDataToolMT::DataCache::translateAndSort | ( | sTgcPrepDataCollection & | coll | ) |
Sort the prepdata collection by the Identifier of the objects contained and then translate the prd objects into xAOD objects.
| coll | Reference to the collection to process |
update the index otherwise the persitification is not happy...
Definition at line 31 of file sTgcRdoToPrepDataToolMT.cxx.
| std::vector<std::unique_ptr<sTgcPrepDataCollection> > Muon::sTgcRdoToPrepDataToolMT::DataCache::collections {} |
Prep data collections that will be appended to the container in store gate.
Definition at line 87 of file sTgcRdoToPrepDataToolMT.h.
| const MuonGMR4::MuonDetectorManager* Muon::sTgcRdoToPrepDataToolMT::DataCache::detMgr {nullptr} |
Pointer to the R4 detector manager.
Definition at line 89 of file sTgcRdoToPrepDataToolMT.h.
| bool Muon::sTgcRdoToPrepDataToolMT::DataCache::isValid {false} |
Flag indicating whether the container is valid.
Definition at line 91 of file sTgcRdoToPrepDataToolMT.h.
| PadCont_t Muon::sTgcRdoToPrepDataToolMT::DataCache::pads {} |
Container to hold the translated xAOD pads.
Definition at line 76 of file sTgcRdoToPrepDataToolMT.h.
| SG::WriteHandle<sTgcPrepDataContainer> Muon::sTgcRdoToPrepDataToolMT::DataCache::prdWriteHandle {} |
| StripCont_t Muon::sTgcRdoToPrepDataToolMT::DataCache::strips {} |
Container to hold the translated xAOD strips.
Definition at line 72 of file sTgcRdoToPrepDataToolMT.h.
| WireCont_t Muon::sTgcRdoToPrepDataToolMT::DataCache::wires {} |
Container to hold the translated xAOD wires.
Definition at line 74 of file sTgcRdoToPrepDataToolMT.h.