5#ifndef MUONTGC_CNVTOOLS_TGCRDOTOPREPDATATOOLMT_H
6#define MUONTGC_CNVTOOLS_TGCRDOTOPREPDATATOOLMT_H
10#include "GaudiKernel/ServiceHandle.h"
57 using base_class::base_class;
65 virtual StatusCode
finalize()
override;
72 virtual StatusCode
decode(
const EventContext& ctx,
73 const std::vector<IdentifierHash>& idVect)
const override;
101 std::vector<std::unique_ptr<CollType>>&& coll)
const;
103 StatusCode
setupState(
const EventContext& ctx, State& state)
const;
228 const std::vector<const TgcRdo*>& rdoCollVec,
232 static bool isRequested(
const std::vector<IdentifierHash>& requestedIdHashVect,
240 int& tmp_slbId,
int& tmp_subMatrix,
int& tmp_position)
const;
251 const int DeltaBeforeConvert,
252 std::array<int, 4>& bitpos_i,
253 std::array<int, 4>& slbchannel_i,
254 std::array<int, 4>& slbId_in,
255 std::array<int, 4>& sbLoc_in,
257 const std::array<int, 2>& bitpos_o,
258 std::array<int, 2>& slbchannel_o,
259 const int slbId_o)
const;
264 const int DeltaBeforeConvert,
265 std::array<int, 4>& bitpos_i,
266 std::array<int, 4>& slbchannel_i,
269 const std::array<int, 2>& bitpos_o,
270 std::array<int, 2>& slbchannel_o)
const;
276 std::array<int, 3>& bitpos_w)
const;
281 std::array<int, 3>& bitpos_s) ;
293 double& z_wire)
const;
296 const bool isBackWard,
299 double& theta_strip)
const;
301 bool getPosAndIdWireOut(
const std::array<const MuonGM::TgcReadoutElement*, 2>& descriptor_o,
302 const std::array<Identifier, 2>& channelIdOut,
303 const std::array<int, 2>& gasGap_o,
304 const std::array<int, 2>& channel_o,
306 double& hit_position_o,
310 bool getPosAndIdStripOut(
const std::array<const MuonGM::TgcReadoutElement*, 2>& descriptor_o,
311 const std::array<Identifier,2 >& channelIdOut,
312 const std::array<int, 2>& gasGap_o,
313 const std::array<int, 2>& channel_o,
315 double& hit_position_o,
318 const bool isBackward,
const bool isAside)
const;
321 bool getPosAndIdWireIn(
const std::array<const MuonGM::TgcReadoutElement*, 4>& descriptor_i,
322 const std::array<Identifier,4 >& channelIdIn,
323 const std::array<int, 4>& gasGap_i,
324 const std::array<int, 4>& channel_i,
325 double& width_i,
double& hit_position_i,
329 bool getPosAndIdStripIn(
const std::array<const MuonGM::TgcReadoutElement*, 4>& descriptor_i,
330 const std::array<Identifier, 4>& channelIdIn,
331 const std::array<int, 4>& gasGap_i,
332 const std::array<int, 4>& channel_i,
333 double& width_i,
double& hit_position_i,
336 const bool isBackward,
const bool isAside)
const;
344 std::array<Identifier, 3>& channelId,
345 int&
index,
int& chip,
int& hitId,
int& sub,
int& sswId,
int& sbLoc,
int& subMatrix,
346 std::array<int, 3>& bitpos,
347 const bool isBoundary=
false,
const TgcRdo* rdoColl=0,
348 const int index_w=-1,
const int chip_w=-1,
const int hitId_w=-1,
const int sub_w=-1)
const;
353 const int index_w,
const int chip_w,
const int hitId_w,
const int sub_w)
const;
358 const int index_w,
const int chip_w,
const int hitId_w,
const int sub_w)
const;
361 int &trackletIdStripSecond,
int &trackletIdStripThird) ;
431 StatusCode
decode(
const EventContext& ctx,
const std::vector<uint32_t>& robIds)
const override;
434 newrodId = rd->
rodId();
438 newrodId = rd->
sector() / 2 + 1 + (rd->
rodId()-17) * 4;
439 newsector = (rd->
sector() + (rd->
rodId()-17)*8) % 2;
441 newrodId = rd->
sector() / 4 + 1 + (rd->
rodId()-17) * 4;
442 newsector = (rd->
sector() + (rd->
rodId()-17)*16) % 4;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Cached value with atomic update.
Property holding a SG store/key/clid from which an UpdateHandle is made.
Handle class for modifying an existing object in StoreGate.
Cached value with atomic update.
This is a "hash" representation of an Identifier.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which an UpdateHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An unit object of TGC ROD output.
Eigen::Matrix< double, 2, 1 > Vector2D
Ensure that the Athena extensions are properly loaded.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
SG::HandleKeyArray< SG::UpdateHandle< TgcCoinDataCollection_Cache >, SG::UpdateHandleKey< TgcCoinDataCollection_Cache >, Gaudi::DataHandle::Reader > TgcCoinUpdateHandles
SG::HandleKeyArray< SG::UpdateHandle< TgcPrepDataCollection_Cache >, SG::UpdateHandleKey< TgcPrepDataCollection_Cache >, Gaudi::DataHandle::Reader > TgcPrdUpdateHandles
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray