35 if (this->
initialize(log) != StatusCode::SUCCESS) {
36 log << MSG::FATAL <<
"Could not initialize TrigInDetTrackCnv_p4 " <<
endmsg;
40 std::vector<Identifier> rdoList;
41 rdoList.reserve( persObj->
m_rdoList.size() );
42 for (
unsigned int id : persObj->
m_rdoList) {
43 if (
m_pixId->is_shortened_pixel_id(
id)) {
44 rdoList.emplace_back (
m_pixId->pixel_id_from_shortened(
id));
47 rdoList.emplace_back (
id);
50 transObj->
rdoList (std::move(rdoList));
74 const std::vector<Identifier>& rdoList = transObj->
rdoList();
76 persObj->
m_rdoList.reserve( rdoList.size() );
78 persObj->
m_rdoList.push_back (
id.get_identifier32().get_compact());
87 SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
89 log << MSG::FATAL <<
"DetectorStore service not found !" <<
endmsg;
90 return StatusCode::FAILURE;
94 StatusCode
sc = detStore->retrieve(
m_pixId,
"PixelID");
96 log << MSG::FATAL <<
"Could not get PixelID helper !" <<
endmsg;
97 return StatusCode::FAILURE;
100 return StatusCode::SUCCESS;
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
This is an Identifier helper class for the Pixel subdetector.
StatusCode initialize(MsgStream &log)
virtual void transToPers(const TrigInDetTrack *, TrigInDetTrack_p4 *, MsgStream &)
virtual void persToTrans(const TrigInDetTrack_p4 *, TrigInDetTrack *, MsgStream &)
void setPixelID(const PixelID *pixId)
ITPConverterFor< TrigInDetTrackFitPar > * m_fpCnv
std::vector< unsigned int > m_rdoList
represents a LVL2 ID track
int NStrawTime() const
Number of TRT straws with valid drift time intersected by track.
void algorithmId(const AlgoId id)
void StrawTime(const int NSTime)
void TRHits(const int NTR)
void StrawHits(const int NSHits)
void HitPattern(const long hp)
Hit pattern setter method.
void NPixelSpacePoints(const int n)
int NTRHits() const
Number of high-threshold TRT hits associated with track.
void NSCT_SpacePoints(const int n)
void chi2(const double chi2)
int NStrawHits() const
Number of TRT hits associated with track.
void param(const TrigInDetTrackFitPar *param)
const std::vector< Identifier > & rdoList() const
RDOs associated with track.
int NStraw() const
Number of TRT straws intersected by track.
void endParam(const TrigInDetTrackFitPar *param)