ATLAS Offline Software
Loading...
Searching...
No Matches
InDetTrackCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "GaudiKernel/MsgStream.h"
6
7#include "InDetTrackCnv.h"
9
10#include <iostream>
11#include <stdexcept>
12
13InDetTrackCnv::InDetTrackCnv(ISvcLocator* svcloc):
14 InDetTrackCnvBase(svcloc)
15{
16}
17
18
20{
21 if( !InDetTrackCnvBase::initialize().isSuccess() )
22 return StatusCode::FAILURE;
23
24
25 // std::cout << " ------->>---- In InDetTrackCnv::initialize()" << std::endl;
26
27 return StatusCode::SUCCESS;
28}
29
30
31// this method just reads the persistent object - no TP conversion here
32void
34{
35 static const pool::Guid p2_guid( "4E3778E2-1497-4F10-8746-AA02319FAC83" );
36 static const pool::Guid p1_guid( "8380F7AC-4A8F-4382-95A5-1234E43D3B08" );
37
38 // select the object type based on its GUID
39 if( compareClassGuid(token, p2_guid ) ) {
40 // read the object using the main TP converter
42 }else if( compareClassGuid(token, p1_guid ) ) {
44 }
45 else
46 throw std::runtime_error( "Unsupported version of InDetTrack_PERS (unknown GUID)" );
47}
T_AthenaPoolExtendingCnv< InDetTrack, InDetTrack_PERS > InDetTrackCnvBase
InDetTrackCnv_tlp1 m_TPConverter1
InDetTrackCnv_tlp2 m_TPConverter2
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
InDetTrackCnv(ISvcLocator *svcloc)
virtual void readObjectFromPool(const Token *)
Read the persistent object from POOL.
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21