A tool to decode TGC ROB fragments into TGC RDO.
More...
#include <TGC_RawDataProviderToolCore.h>
◆ StoreGateSvc_t
◆ TGC_RawDataProviderToolCore()
| Muon::TGC_RawDataProviderToolCore::TGC_RawDataProviderToolCore |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ ~TGC_RawDataProviderToolCore()
| virtual Muon::TGC_RawDataProviderToolCore::~TGC_RawDataProviderToolCore |
( |
| ) |
|
|
virtualdefault |
◆ convertIntoContainer()
Method that converts the ROBFragments into the passed container.
Static variables are not thread safe
Definition at line 52 of file TGC_RawDataProviderToolCore.cxx.
53{
54
56 static thread_local int DecodeErrCount = 0;
57
58
60 if(
m_decoder->fillCollection(*fragment, tgcRdoContainer).isFailure()) {
61 if(DecodeErrCount < 100) {
63 DecodeErrCount++;
64 }
65 else if(100 == DecodeErrCount) {
66 ATH_MSG_INFO(
"Too many Problems with TGC Decoding messages. Turning message off." );
67 DecodeErrCount++;
68 }
69 }
70 }
72 return StatusCode::SUCCESS;
73}
size_t size() const
Duplicate of fullSize for backwards compatability.
eformat::ROBFragment< PointerType > ROBFragment
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ 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
◆ getCabling()
Definition at line 75 of file TGC_RawDataProviderToolCore.cxx.
76{
78 if (cabling) {
80 }
81
82 ServiceHandle<MuonTGC_CablingSvc> TgcCabGet(
"MuonTGC_CablingSvc",
name());
83 if (TgcCabGet.retrieve().isFailure()) {
85 return nullptr;
86 }
87
89
91}
◆ getROBData()
Function to get the ROB data from a vector of IdentifierHash.
Definition at line 94 of file TGC_RawDataProviderToolCore.cxx.
95{
96 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> vecOfRobf;
98 if(!cabling) {
99 ATH_MSG_ERROR(
"Could not get cabling, return empty vector of ROB fragments");
100 return vecOfRobf;
101 }
102
103 IdContext tgcContext =
m_idHelperSvc->tgcIdHelper().module_context();
104
105 std::vector<uint32_t> robIds;
106
107 unsigned int size = rdoIdhVect.size();
108 for(
unsigned int i=0;
i<size; ++
i) {
109 Identifier Id;
110 if(
m_idHelperSvc->tgcIdHelper().get_id(rdoIdhVect[i], Id, &tgcContext)) {
111 ATH_MSG_WARNING(
"Unable to get TGC Identifier from collection hash id " );
112 continue;
113 }
114 const Identifier tgcId = Id;
117 std::vector<uint32_t>::iterator it_robId = std::find(robIds.begin(), robIds.end(), robId);
118 if(it_robId==robIds.end()) {
119 robIds.push_back(robId);
120 }
121 }
124 return vecOfRobf;
125}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
◆ initialize()
| StatusCode Muon::TGC_RawDataProviderToolCore::initialize |
( |
| ) |
|
|
virtual |
Standard AlgTool method.
Definition at line 23 of file TGC_RawDataProviderToolCore.cxx.
24{
27
30
31
34
36
38
39
41
42 ATH_MSG_INFO(
"TGCCablingServerSvc not yet configured; postpone TGCcabling initialization at first event. " );
43 }
44
46
47 return StatusCode::SUCCESS;
48}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ 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.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ 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()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ 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()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_cabling
◆ m_decoder
| ToolHandle<ITGC_RodDecoder> Muon::TGC_RawDataProviderToolCore::m_decoder {this,"Decoder","Muon::TGC_RodDecoderReadout/TGC_RodDecoderReadout"} |
|
protected |
Decoder for ROB fragment RDO conversion.
Definition at line 52 of file TGC_RawDataProviderToolCore.h.
52{this,"Decoder","Muon::TGC_RodDecoderReadout/TGC_RodDecoderReadout"};
◆ m_detStore
◆ m_evtStore
◆ m_hid2re
◆ m_idHelperSvc
◆ m_maxhashtoUse
| unsigned int Muon::TGC_RawDataProviderToolCore::m_maxhashtoUse = 0U |
|
protected |
◆ m_rdoContainerKey
| SG::WriteHandleKey<TgcRdoContainer> Muon::TGC_RawDataProviderToolCore::m_rdoContainerKey { this, "RdoLocation", "TGCRDO", "Name of the TGCRDO produced by RawDataProvider"} |
|
protected |
RDO container key.
Definition at line 54 of file TGC_RawDataProviderToolCore.h.
54{ this, "RdoLocation", "TGCRDO", "Name of the TGCRDO produced by RawDataProvider"};
◆ m_robDataProvider
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: