ATLAS Offline Software
JetTagInfoCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 #include "JetTagInfoCnv.h"
10 
11 #include <stdexcept>
12 
13 using std::string;
14 using std::runtime_error;
21 
23 JetTagInfoCnv::JetTagInfoCnv (ISvcLocator *loc)
24  : JetTagInfoCnvBase (loc)
25 {
26 }
27 
30 {
32  return result;
33 }
34 
37 void JetTagInfoCnv::readObjectFromPool (const string &token)
38 {
39  static const pool::Guid p1_guid ("977E2E76-4DA6-4A4B-87A8-2E41353DB9F4");
40  static const pool::Guid p2_guid ("50E644C1-E247-41B0-B873-416362824A21");
41  static const pool::Guid p3_guid ("8A57BABD-C361-4796-93CD-E8171EF06BC7");
42 
44 
45  setToken (token);
46 
48 
49  if(compareClassGuid (p3_guid)){
50  poolReadObject<JetTagInfo_tlp3> (m_TPConverter);
51  }
52  else if (compareClassGuid (p2_guid)) {
53  poolReadObject<JetTagInfo_tlp2> (m_TPConverter_p2);
54  } else if (compareClassGuid (p1_guid)) {
55  poolReadObject<JetTagInfo_tlp1> (m_TPConverter_p1);
56  } else {
57  throw runtime_error ("Unsupported version of JetTagInfo_tlp1 (unknonw GUID)");
58  }
59 }
get_generator_info.result
result
Definition: get_generator_info.py:21
JetTagInfoCnv::m_TPConverter_p1
Analysis::JetTagInfoCnv_tlp1 m_TPConverter_p1
Definition: JetTagInfoCnv.h:48
initialize
void initialize()
Definition: run_EoverP.cxx:894
JetTagInfoCnv::initialize
StatusCode initialize(void)
Make sure to pass on the init!
Definition: JetTagInfoCnv.cxx:29
JetTagInfoCnv::m_TPConverter_p2
Analysis::JetTagInfoCnv_tlp2 m_TPConverter_p2
Definition: JetTagInfoCnv.h:47
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
JetTagInfoCnv::readObjectFromPool
void readObjectFromPool(const std::string &obj)
Read the persistant bit in.
Definition: JetTagInfoCnv.cxx:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolExtendingCnv::setToken
virtual void setToken(const std::string &token)
Set the token (in std::string representation) and classID for the object that will be read next.
Analysis::JetTagInfoCnv_tlp3
Definition: JetTagInfoCnv_tlp3.h:61
Analysis::JetTagInfo_tlp2
Contains a vector of evrything that we will store...
Definition: JetTagInfo_tlp2.h:51
Analysis::JetTagInfoCnv_tlp1
Definition: JetTagInfoCnv_tlp1.h:58
JetTagInfoCnv.h
Analysis::JetTagInfo_tlp3
Contains a vector of evrything that we will store...
Definition: JetTagInfo_tlp3.h:52
Analysis::JetTagInfo_tlp1
Contains a vector of evrything that we will store...
Definition: JetTagInfo_tlp1.h:49
JetTagInfoCnv::JetTagInfoCnv
JetTagInfoCnv(ISvcLocator *svcloc)
Init our base class.
Definition: JetTagInfoCnv.cxx:23
Analysis::JetTagInfoCnv_tlp2
Definition: JetTagInfoCnv_tlp2.h:60
T_AthenaPoolExtendingCnv
This templated class extends T_AthenaPoolCustomCnv to provide additional/chaged functionality for Ath...
Definition: T_AthenaPoolCustomCnv.h:24
JetTagInfoCnv::m_TPConverter
Analysis::JetTagInfoCnv_tlp3 m_TPConverter
Definition: JetTagInfoCnv.h:46