ATLAS Offline Software
Loading...
Searching...
No Matches
TrigL2MuonSA::MuCalStreamerTool Class Reference

#include <MuCalStreamerTool.h>

Inheritance diagram for TrigL2MuonSA::MuCalStreamerTool:
Collaboration diagram for TrigL2MuonSA::MuCalStreamerTool:

Public Member Functions

 MuCalStreamerTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize () override
StatusCode createRoiFragment (const xAOD::MuonRoI *roi, TrigL2MuonSA::TrackPattern &trackPattern, TrigL2MuonSA::MdtHits &mdtHits, TrigL2MuonSA::RpcHits &rpcHits, TrigL2MuonSA::TgcHits &tgcHits, std::vector< uint32_t > &localBuffer, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

StatusCode createMdtFragment (TrigL2MuonSA::MdtHits &mdtHits, LVL2_MUON_CALIBRATION::MdtCalibFragment &mdtFragment, float phi) const
StatusCode createRpcFragment (const xAOD::MuonRoI *roi, LVL2_MUON_CALIBRATION::RpcCalibFragment &rpcFragment, const EventContext &ctx) const
StatusCode createTgcFragment (std::vector< uint32_t > &tgcRobIdList, LVL2_MUON_CALIBRATION::TgcCalibFragment &tgcFragment, const EventContext &ctx) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< TgcRdoContainer > m_tgcRdoKey {this, "TgcRdoContainer", "TGCRDO", "Tgc RDO Input"}
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey { this, "EventInfoKey", "EventInfo", "" }
SG::ReadHandleKey< RpcPadContainer > m_rpcPadKey {this, "RpcPadContainerKey", "RPCPAD", "RpcPad container fro MuCalStreamerTool"}
ToolHandle< IRegSelTool > m_regSel_MDT {this, "RegSel_MDT", "RegSelTool/RegSelTool_MDT", "MDT Region Selector Tool"}
ToolHandle< IRegSelTool > m_regSel_TGC {this, "RegSel_TGC", "RegSelTool/RegSelTool_TGC", "TGC Region Selector Tool"}
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey {this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 53 of file MuCalStreamerTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuCalStreamerTool()

TrigL2MuonSA::MuCalStreamerTool::MuCalStreamerTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 19 of file MuCalStreamerTool.cxx.

21 :
22 AthAlgTool(type,name,parent)
23{
24}
AthAlgTool()
Default constructor:

Member Function Documentation

◆ createMdtFragment()

StatusCode TrigL2MuonSA::MuCalStreamerTool::createMdtFragment ( TrigL2MuonSA::MdtHits & mdtHits,
LVL2_MUON_CALIBRATION::MdtCalibFragment & mdtFragment,
float phi ) const
private

Definition at line 197 of file MuCalStreamerTool.cxx.

200 {
201
202 TrigL2MuonSA::MdtHits::const_iterator it = mdtHits.begin();
203 for ( ; it != mdtHits.end() ; ++it ) {
204
205 int stationName = (*it).name;
206 int stationEta = (*it).StationEta;
207 int stationPhi = (*it).StationPhi;
208 int multilayer = (*it).Multilayer;
209 int layer = (*it).TubeLayer;
210 int tube = (*it).Tube;
211
212 uint32_t ID = LVL2_MUON_CALIBRATION::MdtIdIntoWord(stationName,
213 stationEta,stationPhi,multilayer,layer,tube);
214
215 uint16_t leadingCoarseTime = (*it).LeadingCoarseTime;
216 uint16_t leadingFineTime = (*it).LeadingFineTime;
217 uint16_t trailingCoarseTime = (*it).TrailingCoarseTime;
218 uint16_t trailingFineTime = (*it).TrailingFineTime;
219 uint16_t adc = (*it).Adc;
220
221 LVL2_MUON_CALIBRATION::MdtCalibData mdt(ID,leadingCoarseTime,leadingFineTime,
222 trailingCoarseTime,trailingFineTime,adc
223 ,trackPhi);
224
225 ATH_MSG_DEBUG("Dumping MDT Hit");
226 ATH_MSG_DEBUG(mdt);
227
228 mdtFragment << mdt;
229 }
230
231 return StatusCode::SUCCESS;
232 }
#define ATH_MSG_DEBUG(x,...)
constexpr uint8_t stationPhi
station Phi 1 to 8
@ layer
Definition HitInfo.h:79
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
setWord1 uint16_t
setEventNumber uint32_t

◆ createRoiFragment()

StatusCode TrigL2MuonSA::MuCalStreamerTool::createRoiFragment ( const xAOD::MuonRoI * roi,
TrigL2MuonSA::TrackPattern & trackPattern,
TrigL2MuonSA::MdtHits & mdtHits,
TrigL2MuonSA::RpcHits & rpcHits,
TrigL2MuonSA::TgcHits & tgcHits,
std::vector< uint32_t > & localBuffer,
const EventContext & ctx ) const

Definition at line 47 of file MuCalStreamerTool.cxx.

54 {
55
56 // skip the event if it's a noise burst
57 unsigned int totalHits = mdtHits.size()+rpcHits.size()+tgcHits.size();
58 if ( totalHits > 500 ) {
59 ATH_MSG_DEBUG("Too many hits: skip the RoI");
60 return StatusCode::SUCCESS;
61 }
62
63 // init roi pointer
64 if ( !inputroi ) {
65 ATH_MSG_ERROR("Roi not initialized");
66 return StatusCode::FAILURE;
67 }
68
69 // pointer to the muon roi
70 const xAOD::MuonRoI* roi {inputroi};
71
72
73 // retrieve the event and trigger info
74 SG::ReadHandle<xAOD::EventInfo> eventInfo (m_eventInfoKey, ctx);
75 uint32_t runId = ctx.eventID().run_number();
76 uint32_t lvl1Id = eventInfo->extendedLevel1ID();
77
78
79 // get track parameters
80 float eta = (float) track.etaVtx;
81 float phi = (float) track.phiVtx;
82 float pt = (float) track.pt;
83
84 uint32_t mrods[4] = {0, 0, 0, 0};
85 // prepare the header information
86 std::vector<uint32_t> robIdList_MDT;
87 double etaMin = roi->eta()-0.05;
88 double etaMax = roi->eta()+0.05;
89 double phi_roi = roi->phi();
90 double phiMin = roi->phi()-0.05;
91 double phiMax = roi->phi()+0.05;
92 if( phi_roi < 0 ) phi_roi += 2*M_PI;
93 if( phiMin < 0 ) phiMin += 2*M_PI;
94 if( phiMax < 0 ) phiMax += 2*M_PI;
95
96 TrigRoiDescriptor roiDescr( roi->eta(), etaMin, etaMax, phi_roi, phiMin, phiMax );
97
98 const IRoiDescriptor* iroi = (IRoiDescriptor*) &roiDescr;
99 m_regSel_MDT->lookup( ctx )->ROBIDList(*iroi,robIdList_MDT);
100
101 // dump the list of robs for debugging
102 ATH_MSG_DEBUG("Size of the MDT rob list: " << robIdList_MDT.size());
103 int isize = robIdList_MDT.size()<5 ? robIdList_MDT.size() : 4;
104 for (int ii = 0 ; ii<isize ; ++ii ) {
105 ATH_MSG_DEBUG("robId: 0x" << std::hex << robIdList_MDT.at(ii) << std::dec);
106 mrods[ii] = robIdList_MDT.at(ii);
107 }
108
109 // get the list of TGC robs
110 std::vector<uint32_t> robIdList_TGC;
111 m_regSel_TGC->lookup(ctx)->ROBIDList(*iroi,robIdList_TGC);
112 ATH_MSG_DEBUG("Size of the TGC rob list: " << robIdList_TGC.size());
113
114
115 LVL2_MUON_CALIBRATION::CalibEvent event(1,runId,lvl1Id,1,1,mrods,name().c_str(),eta,phi,pt);
116 LVL2_MUON_CALIBRATION::MdtCalibFragment mdtFragment;
117
118 // create the MDT fragment
119 if ( mdtHits.size()>0 ) {
120 ATH_CHECK( createMdtFragment(mdtHits,mdtFragment,phi) );
121
122 // add the mdt fragment to the event
123 event << mdtFragment;
124 }
125 else{
126 // do not write the calib stream
127 return StatusCode::SUCCESS;
128 }
129
130 // create the RPC fragment
131 if ( rpcHits.size() > 0 ) {
132 LVL2_MUON_CALIBRATION::RpcCalibFragment rpcFragment;
133
134 if ( createRpcFragment(roi, rpcFragment, ctx) != StatusCode::SUCCESS ) {
135 ATH_MSG_WARNING("Could not create the Rpc fragment of the calibration stream");
136 }
137 else {
138 ATH_MSG_DEBUG("Adding the RPC fragment to the calibration stream");
139 event << rpcFragment;
140 }
141 }
142
143 if ( tgcHits.size() > 0 ) {
144 LVL2_MUON_CALIBRATION::TgcCalibFragment tgcFragment;
145
146 if ( createTgcFragment(robIdList_TGC, tgcFragment, ctx) != StatusCode::SUCCESS ) {
147 ATH_MSG_ERROR("Could not create the Tgc fragment of the calibration stream");
148 }
149 else {
150 ATH_MSG_DEBUG("Adding the TGC fragment to the calibration stream");
151 event << tgcFragment;
152 }
153 }
154
155
156
157 ATH_MSG_DEBUG("Dumping the event stream");
158 ATH_MSG_DEBUG(event);
159
160 // Perform data scouting specific operations
161 uint16_t eventSize_ds = event.size();
162 if (eventSize_ds>1000) return StatusCode::SUCCESS;
163
164 std::unique_ptr<uint8_t[]> buff_ds = std::make_unique<uint8_t[]>(eventSize_ds);
165
166 // encode the event
167 uint16_t eventSize8bits = eventSize_ds;
168 uint16_t eventSize32bits = eventSize8bits/4;
169 event.dumpWords(buff_ds.get(),eventSize_ds);
170
171 // fill the local buffer
172 // dump the words also in the local buffer
173 // dump the encoded event to the screen
174 ATH_MSG_DEBUG("Size of the DATASCOUTING buffer in 32 bits words: " << eventSize32bits);
175 for ( uint16_t words = 0 ; words != eventSize32bits ; words++) {
176 uint32_t byte1 = buff_ds[words*4];
177 uint32_t byte2 = buff_ds[words*4 + 1];
178 uint32_t byte3 = buff_ds[words*4 + 2];
179 uint32_t byte4 = buff_ds[words*4 + 3];
180
181 // encoding in big-endian for now ( revert order for little-endian )
182 uint32_t dataWord = (byte4 << 24) + (byte3 << 16) + (byte2 << 8) + byte1 ;
183 // std::cout << "Number of data words: " << words << std::endl;
184 ATH_MSG_DEBUG("Data word " << words << " = " << std::hex << "0x" << dataWord << std::dec);
185
186 localBuffer.push_back(dataWord);
187 }
188
189 ATH_MSG_DEBUG("Local buffer size = " << localBuffer.size());
190
191 return StatusCode::SUCCESS;
192 }
#define M_PI
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
StatusCode createTgcFragment(std::vector< uint32_t > &tgcRobIdList, LVL2_MUON_CALIBRATION::TgcCalibFragment &tgcFragment, const EventContext &ctx) const
ToolHandle< IRegSelTool > m_regSel_MDT
StatusCode createMdtFragment(TrigL2MuonSA::MdtHits &mdtHits, LVL2_MUON_CALIBRATION::MdtCalibFragment &mdtFragment, float phi) const
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode createRpcFragment(const xAOD::MuonRoI *roi, LVL2_MUON_CALIBRATION::RpcCalibFragment &rpcFragment, const EventContext &ctx) const
ToolHandle< IRegSelTool > m_regSel_TGC
float eta() const
The pseudorapidity ( ) of the muon candidate.
float phi() const
The azimuthal angle ( ) of the muon candidate.
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15

◆ createRpcFragment()

StatusCode TrigL2MuonSA::MuCalStreamerTool::createRpcFragment ( const xAOD::MuonRoI * roi,
LVL2_MUON_CALIBRATION::RpcCalibFragment & rpcFragment,
const EventContext & ctx ) const
private

Definition at line 239 of file MuCalStreamerTool.cxx.

241{
242
243 // exit if it's not in the barrel
244 //if ( roi->sysID() != 0 ) return StatusCode::SUCCESS;
245 if ( roi->getSource() != 0 ) return StatusCode::SUCCESS;
246
247 // retrieve the padId from the RecMuonRoi
248
249 // decode roIWord
250 unsigned int side = roi->getHemisphere()==xAOD::MuonRoI::Hemisphere::Positive ? 1 : 0;
251 unsigned int sector = roi->getSectorID();
252 unsigned int roiNumber = roi->getRoI();
253
254 // retrieve the pad container
255 SG::ReadHandle<RpcPadContainer> rh_rpcPad{m_rpcPadKey, ctx};
256 const RpcPadContainer* rpcPadContainer=rh_rpcPad.cptr();
257
258 SG::ReadCondHandle<RpcCablingCondData> readHandle{m_readKey,ctx};
259 const RpcCablingCondData* readCdo{*readHandle};
260 unsigned int padIdHash;
261 if (readCdo->give_PAD_address( side, sector, roiNumber, padIdHash)) {
262
263 auto itPad = rpcPadContainer->indexFindPtr(padIdHash);
264 if( itPad==nullptr ) {
265 ATH_MSG_WARNING("Failed to retrieve PAD hash Id " << padIdHash);
266 return StatusCode::FAILURE;
267 }
268 const RpcPad* rpcPad = itPad;
269
270 uint16_t sector = rpcPad->sector();
271 uint16_t sysId = (sector<32)? 0x66 : 0x65;
272 uint16_t secId = sector%32;
273 uint16_t padId = rpcPad->onlineId();
274 uint16_t status = rpcPad->status();
275 uint16_t error = rpcPad->errorCode();
276
277 LVL2_MUON_CALIBRATION::RpcCalibFragment frag(sysId,secId,padId,status,error);
278 rpcFragment = frag;
279 RpcPad::const_iterator it3 = rpcPad->begin();
280 for (; it3!=rpcPad->end() ; ++it3) {
281 const RpcCoinMatrix * cma = (*it3);
282
283 uint16_t cmaId = cma->onlineId();
284 uint16_t fel1Id = cma->fel1Id();
285 uint16_t febcId = cma->febcId();
286 uint16_t crc = cma->crc();
287
288 LVL2_MUON_CALIBRATION::RpcCalibData matrix(cmaId,fel1Id,febcId,crc);
289
290 //for each cma for over fired channels
291 RpcCoinMatrix::const_iterator it5 = (*it3)->begin();
292 for (; it5 != (*it3)->end() ; ++it5) {
293 const RpcFiredChannel * fChannel = (*it5);
294
295 uint16_t bcid = fChannel->bcid();
296 uint16_t time = fChannel->time();
297 uint16_t ijk = fChannel->ijk();
298 uint16_t channel = fChannel->channel();
299 uint16_t ovl = fChannel->ovl();
300 uint16_t thr = fChannel->thr();
301
302 if(ijk!=7) matrix.getHit(bcid,time,ijk,channel);
303 else matrix.getHit(bcid,time,ijk,ovl,thr);
304
305 } // loop on the matrix hits
306
307 rpcFragment << matrix;
308 } // loop on the pad matrices
309
310 }
311 else {
312 ATH_MSG_WARNING("Can't get the pad address from the RpcCablingCondData");
313 return StatusCode::FAILURE;
314 }
315
316 return StatusCode::SUCCESS;
317}
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcCoinMatrix
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPadContainer
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPad
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:861
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
bool give_PAD_address(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, unsigned int &padIdHash) const
ubit16 crc() const
ubit16 fel1Id() const
ubit16 onlineId() const
ubit16 febcId() const
ubit16 bcid() const
ubit16 thr() const
ubit16 channel() const
ubit16 ovl() const
ubit16 ijk() const
ubit16 time() const
ubit16 onlineId() const
Definition RpcPad.h:108
ubit16 errorCode() const
Definition RpcPad.h:107
int sector() const
Definition RpcPad.h:113
ubit16 status() const
Definition RpcPad.h:106
const_pointer_type cptr()
Dereference the pointer.
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey
SG::ReadHandleKey< RpcPadContainer > m_rpcPadKey
Hemisphere getHemisphere() const
Returns the hemisphere that detected the muon candidate.
RoISource getSource() const
Returns the system that detected the muon candidate.
int getSectorID() const
Get the sector ID number.
@ Positive
The candidate came from the +z side (side A).
Definition MuonRoI_v1.h:40
int getRoI() const
Get the "RoI number" (position inside the sector).
time(flags, cells_name, *args, **kw)
status
Definition merge.py:16
setTeId setLumiBlock setRoiId setRoiSubsystem roiNumber
setEventNumber setTimeStamp bcid

◆ createTgcFragment()

StatusCode TrigL2MuonSA::MuCalStreamerTool::createTgcFragment ( std::vector< uint32_t > & tgcRobIdList,
LVL2_MUON_CALIBRATION::TgcCalibFragment & tgcFragment,
const EventContext & ctx ) const
private

Definition at line 324 of file MuCalStreamerTool.cxx.

327{
328
329
330 if ( robIdList_TGC.size()<1 ) {
331 ATH_MSG_DEBUG("No TGC Rob found");
332 return StatusCode::SUCCESS;
333 }
334
335 // system Id = 1 should correspond to the endcap
336 uint16_t systemId = 1;
337 // this is the subdetector Id
338 uint16_t subSystemId = ( (robIdList_TGC.at(0) & 0xff0000) >> 16 );
339 uint16_t rdoId = ( robIdList_TGC.at(0) & 0xff );
340
342
343 tgcFragment = LVL2_MUON_CALIBRATION::TgcCalibFragment(systemId,subSystemId,rdoId,roiNumber);
344
345 // retrieve the tgcrdo container
346 SG::ReadHandle<TgcRdoContainer> rdoRH(m_tgcRdoKey, ctx);
347 if (!rdoRH.isValid()) {
348 ATH_MSG_ERROR( "No TGC RDO container found!" );
349 return StatusCode::FAILURE;
350 }
351 const TgcRdoContainer* tgcRdoContainer = rdoRH.cptr();
352
353 // now get the list of ROB Ids and from the the subdetector ID ( that corresponds to the
354 // subsystem ID
355
356
357 LVL2_MUON_CALIBRATION::TgcCalibData tgc_payload;
358 TgcRdoContainer::const_iterator it = tgcRdoContainer->begin();
359
360 for ( ; it != tgcRdoContainer->end() ; ++it ) {
361
362 ATH_MSG_DEBUG("Adding the hits from a new TGC chamber");
363
364 // loop on the element of the TGC RDO
365 ATH_MSG_DEBUG("Number of hits: " << (*it)->size());
366
367 TgcRdo::const_iterator itRaw = (*it)->begin();
368 for ( ; itRaw != (*it)->end() ; ++itRaw ) {
369
370 const TgcRawData* raw = (*itRaw);
371 LVL2_MUON_CALIBRATION::TGC_BYTESTREAM_READOUTHIT roh;
372 LVL2_MUON_CALIBRATION::TGC_BYTESTREAM_READOUTTRIPLETSTRIP tps;
373 LVL2_MUON_CALIBRATION::TGC_BYTESTREAM_READOUTTRACKLET rot;
374 LVL2_MUON_CALIBRATION::TGC_BYTESTREAM_HIPT hpt;
375 LVL2_MUON_CALIBRATION::TGC_BYTESTREAM_SL sl;
376
377
378 switch (raw->type()) {
380 {
381 roh.channel = raw->channel()-40;
382 roh.sbId = raw->slbId();
383 roh.sbType = raw->slbType();
384 roh.adj = raw->isAdjacent();
385 roh.ldbId = raw->sswId();
386 roh.bcBitmap = bcBitmap(raw->bcTag());
387 roh.tracklet = raw->tracklet();
388 roh.ok = 1;
389
390 }
391 break;
394 {
395 tps.phi = raw->position();
396 tps.seg = raw->segment();
397 tps.sbId = raw->slbId();
398 tps.ldbId = raw->sswId();
399 tps.bcBitmap = bcBitmap(raw->bcTag());
401 tps.ok = 1;
402 }
403 else
404 {
405 rot.rphi = raw->position();
406 rot.subm = raw->subMatrix();
407 rot.seg = raw->segment();
408 rot.delta = raw->delta();
409 rot.sbId = raw->slbId();
410 rot.ldbId = raw->sswId();
411 rot.bcBitmap = bcBitmap(raw->bcTag());
412 rot.slbType = raw->slbType();
414 rot.slbType = 4;
415 rot.ok = 1;
416 }
417 break;
419 {
420 hpt.delta = raw->delta();
421 hpt.hitId = raw->hitId();
422 hpt.hipt = raw->isHipt();
423 hpt.cand = raw->index();
424 hpt.chip = raw->chip();
425 hpt.sector = raw->sector();
426 hpt.fwd = raw->isForward();
427 hpt.strip = raw->isStrip();
428 hpt.bcBitmap = bcBitmap(raw->bcTag());
429 }
430 break;
432 {
433 sl.roi = raw->roi();
434 sl.overlap = raw->isOverlap();
435 sl.threshold = raw->threshold();
436 sl.sign = raw->isMuplus();
437 sl.cand = raw->index();
438 sl.sector = raw->sector();
439 sl.fwd = raw->isForward();
440 sl.bcBitmap = bcBitmap(raw->bcTag());
441 sl.cand2plus = raw->cand3plus();
442 }
443 break;
444 default:
445 {
446 ATH_MSG_ERROR("Invalid TgcRawData type: " << raw->type());
447 return StatusCode::FAILURE;
448 }
449 }
450
451 tgc_payload.getHit(roh,tps,rot,hpt,sl);
452
453 }
454 }
455
456 tgcFragment << tgc_payload;
457
458 return StatusCode::SUCCESS;
459}
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TgcRdoContainer
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current TgcRawData
unsigned bcBitmap(uint16_t bcTag)
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
uint16_t sswId() const
Definition TgcRawData.h:273
bool isStrip() const
Definition TgcRawData.h:354
@ SLB_TYPE_TRIPLET_STRIP
Definition TgcRawData.h:36
@ SLB_TYPE_INNER_STRIP
Definition TgcRawData.h:38
uint16_t chip() const
Definition TgcRawData.h:338
uint16_t index() const
Definition TgcRawData.h:310
int16_t delta() const
Definition TgcRawData.h:318
uint16_t position() const
Definition TgcRawData.h:314
uint16_t subMatrix() const
Definition TgcRawData.h:330
bool isAdjacent() const
Definition TgcRawData.h:306
SlbType slbType() const
Definition TgcRawData.h:286
uint16_t channel() const
Definition TgcRawData.h:298
bool isMuplus() const
Definition TgcRawData.h:362
DataType type() const
Definition TgcRawData.h:281
bool cand3plus() const
Definition TgcRawData.h:358
uint16_t segment() const
Definition TgcRawData.h:326
uint16_t bcTag() const
Definition TgcRawData.h:252
uint16_t slbId() const
Definition TgcRawData.h:277
uint16_t sector() const
Definition TgcRawData.h:334
uint16_t tracklet() const
Definition TgcRawData.h:302
bool isHipt() const
Definition TgcRawData.h:342
uint16_t roi() const
Definition TgcRawData.h:378
bool isOverlap() const
Definition TgcRawData.h:370
uint16_t hitId() const
Definition TgcRawData.h:346
bool isForward() const
Definition TgcRawData.h:290
uint16_t threshold() const
Definition TgcRawData.h:366
SG::ReadHandleKey< TgcRdoContainer > m_tgcRdoKey

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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

◆ initialize()

StatusCode TrigL2MuonSA::MuCalStreamerTool::initialize ( )
overridevirtual

Definition at line 29 of file MuCalStreamerTool.cxx.

30{
31 // locate the region selector
32 ATH_CHECK( m_regSel_MDT.retrieve() );
33 ATH_CHECK( m_regSel_TGC.retrieve() );
34
35 ATH_CHECK(m_tgcRdoKey.initialize());
36 ATH_CHECK(m_readKey.initialize());
37 ATH_CHECK(m_eventInfoKey.initialize());
38 ATH_CHECK(m_rpcPadKey.initialize());
39
40 return StatusCode::SUCCESS;
41
42}

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

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 > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> TrigL2MuonSA::MuCalStreamerTool::m_eventInfoKey { this, "EventInfoKey", "EventInfo", "" }
private

Definition at line 75 of file MuCalStreamerTool.h.

75{ this, "EventInfoKey", "EventInfo", "" };

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_readKey

SG::ReadCondHandleKey<RpcCablingCondData> TrigL2MuonSA::MuCalStreamerTool::m_readKey {this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"}
private

Definition at line 82 of file MuCalStreamerTool.h.

82{this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"};

◆ m_regSel_MDT

ToolHandle<IRegSelTool> TrigL2MuonSA::MuCalStreamerTool::m_regSel_MDT {this, "RegSel_MDT", "RegSelTool/RegSelTool_MDT", "MDT Region Selector Tool"}
private

Definition at line 79 of file MuCalStreamerTool.h.

79{this, "RegSel_MDT", "RegSelTool/RegSelTool_MDT", "MDT Region Selector Tool"};

◆ m_regSel_TGC

ToolHandle<IRegSelTool> TrigL2MuonSA::MuCalStreamerTool::m_regSel_TGC {this, "RegSel_TGC", "RegSelTool/RegSelTool_TGC", "TGC Region Selector Tool"}
private

Definition at line 80 of file MuCalStreamerTool.h.

80{this, "RegSel_TGC", "RegSelTool/RegSelTool_TGC", "TGC Region Selector Tool"};

◆ m_rpcPadKey

SG::ReadHandleKey<RpcPadContainer> TrigL2MuonSA::MuCalStreamerTool::m_rpcPadKey {this, "RpcPadContainerKey", "RPCPAD", "RpcPad container fro MuCalStreamerTool"}
private

Definition at line 76 of file MuCalStreamerTool.h.

76{this, "RpcPadContainerKey", "RPCPAD", "RpcPad container fro MuCalStreamerTool"};

◆ m_tgcRdoKey

SG::ReadHandleKey<TgcRdoContainer> TrigL2MuonSA::MuCalStreamerTool::m_tgcRdoKey {this, "TgcRdoContainer", "TGCRDO", "Tgc RDO Input"}
private

Definition at line 74 of file MuCalStreamerTool.h.

74{this, "TgcRdoContainer", "TGCRDO", "Tgc RDO Input"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: