ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
TrackRecordStreamer_p0 Class Reference

#include <TrackRecordStreamer_p0.h>

Inheritance diagram for TrackRecordStreamer_p0:
Collaboration diagram for TrackRecordStreamer_p0:

Public Member Functions

 TrackRecordStreamer_p0 ()
 
void CopyOldToNew (const TrackRecord_p0 &old_obj, TrackRecord &new_obj)
 The converter function which copies the content of the object from its old shape to the new shape To be implemented by the user in the derived class Default implementation simply does a cast
More...
 
virtual void Convert (const void *old_obj, void *new_obj)
 General (typeless) invocation of the convertion function it calls the actual user implemenation with concrete argument types. More...
 
virtual void * InstantiateOld ()
 Create an instance of the old object. More...
 
virtual const std::type_info & TypeIDOld ()
 Get typeinfo of the old object type. More...
 
void SetClassNameAndChecksum (const std::string &classname, unsigned checksum)
 Set the name of the class for which this converter is implemented and the particualar ROOT streamerInfo checksum of the class shape version. More...
 
const std::string & ClassName ()
 
unsigned StreamerChecksum ()
 

Protected Attributes

std::string m_className
 
unsigned m_streamerChecksum
 

Detailed Description

Definition at line 14 of file TrackRecordStreamer_p0.h.

Constructor & Destructor Documentation

◆ TrackRecordStreamer_p0()

TrackRecordStreamer_p0::TrackRecordStreamer_p0 ( )
inline

Definition at line 18 of file TrackRecordStreamer_p0.h.

18  {
19  SetClassNameAndChecksum("TrackRecord", 275360258U);
20  }

Member Function Documentation

◆ ClassName()

const std::string& T_AthenaRootConverterBase::ClassName ( )
inlineinherited

Definition at line 27 of file T_AthenaRootConverter.h.

27 { return m_className; }

◆ Convert()

virtual void T_AthenaRootConverter< TrackRecord , TrackRecord_p0 >::Convert ( const void *  old_obj,
void *  new_obj 
)
inlinevirtualinherited

General (typeless) invocation of the convertion function it calls the actual user implemenation with concrete argument types.

Implements T_AthenaRootConverterBase.

Definition at line 84 of file T_AthenaRootConverter.h.

84  {
85  CopyOldToNew( *(const OLD*)old_obj, *(NEW*)new_obj);
86  }

◆ CopyOldToNew()

void TrackRecordStreamer_p0::CopyOldToNew ( const TrackRecord_p0 old_obj,
TrackRecord new_obj 
)
inlinevirtual

The converter function which copies the content of the object from its old shape to the new shape To be implemented by the user in the derived class Default implementation simply does a cast

Reimplemented from T_AthenaRootConverter< TrackRecord, TrackRecord_p0 >.

Definition at line 22 of file TrackRecordStreamer_p0.h.

23  {
24 
25  TrackRecord_p0 a(old_obj);
26  new_obj=TrackRecord();
27  new_obj.SetPDGCode(a.GetPDGCode());
28  new_obj.SetEnergy(a.GetEnergy());
29  new_obj.SetMomentum(a.GetMomentum());
30  new_obj.SetPosition(a.GetPosition());
31  new_obj.SetTime(0.);
32  new_obj.SetBarcode(0);
33  new_obj.SetVolName("None");
34  }

◆ InstantiateOld()

virtual void* T_AthenaRootConverter< TrackRecord , TrackRecord_p0 >::InstantiateOld
inlinevirtualinherited

Create an instance of the old object.

Implements T_AthenaRootConverterBase.

Definition at line 89 of file T_AthenaRootConverter.h.

89 { return new OLD(); }

◆ SetClassNameAndChecksum()

void T_AthenaRootConverterBase::SetClassNameAndChecksum ( const std::string &  classname,
unsigned  checksum 
)
inlineinherited

Set the name of the class for which this converter is implemented and the particualar ROOT streamerInfo checksum of the class shape version.

Definition at line 55 of file T_AthenaRootConverter.h.

56 {
57  m_className = classname;
58  m_streamerChecksum = checksum;
59 }

◆ StreamerChecksum()

unsigned T_AthenaRootConverterBase::StreamerChecksum ( )
inlineinherited

Definition at line 28 of file T_AthenaRootConverter.h.

28 { return m_streamerChecksum; }

◆ TypeIDOld()

virtual const std::type_info& T_AthenaRootConverter< TrackRecord , TrackRecord_p0 >::TypeIDOld
inlinevirtualinherited

Get typeinfo of the old object type.

Implements T_AthenaRootConverterBase.

Definition at line 91 of file T_AthenaRootConverter.h.

91 { return typeid(OLD); }

Member Data Documentation

◆ m_className

std::string T_AthenaRootConverterBase::m_className
protectedinherited

Definition at line 40 of file T_AthenaRootConverter.h.

◆ m_streamerChecksum

unsigned T_AthenaRootConverterBase::m_streamerChecksum
protectedinherited

Definition at line 41 of file T_AthenaRootConverter.h.


The documentation for this class was generated from the following file:
T_AthenaRootConverterBase::m_streamerChecksum
unsigned m_streamerChecksum
Definition: T_AthenaRootConverter.h:41
TrackRecord::SetPDGCode
void SetPDGCode(int pcode)
Set PDG code.
Definition: TrackRecord.h:89
TrackRecord::SetVolName
void SetVolName(const std::string &theName)
Set Volume name.
Definition: TrackRecord.h:101
TrackRecord::SetTime
void SetTime(double time)
Set time.
Definition: TrackRecord.h:95
TrackRecord::SetPosition
void SetPosition(CLHEP::Hep3Vector p)
Set position.
Definition: TrackRecord.h:77
TrackRecord::SetBarcode
void SetBarcode(int barcode)
Set barcode.
Definition: TrackRecord.h:119
TrackRecord::SetMomentum
void SetMomentum(CLHEP::Hep3Vector e)
Set momentum.
Definition: TrackRecord.h:83
TrackRecord_p0
Definition: TrackRecord_p0.h:10
T_AthenaRootConverterBase::m_className
std::string m_className
Definition: T_AthenaRootConverter.h:40
TrackRecord
Definition: TrackRecord.h:10
a
TList * a
Definition: liststreamerinfos.cxx:10
T_AthenaRootConverterBase::SetClassNameAndChecksum
void SetClassNameAndChecksum(const std::string &classname, unsigned checksum)
Set the name of the class for which this converter is implemented and the particualar ROOT streamerIn...
Definition: T_AthenaRootConverter.h:55
T_AthenaRootConverter< TrackRecord, TrackRecord_p0 >::CopyOldToNew
virtual void CopyOldToNew(const TrackRecord_p0 &old_obj, TrackRecord &new_obj)
The converter function which copies the content of the object from its old shape to the new shape To ...
Definition: T_AthenaRootConverter.h:78
TrackRecord::SetEnergy
void SetEnergy(double e)
Set energy.
Definition: TrackRecord.h:71