ATLAS Offline Software
ExampleHitStreamer_p0.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAPOOLEXAMPLECONVERTER_EXAMPLEHITSTREAMER_P0_H
6 #define ATHENAPOOLEXAMPLECONVERTER_EXAMPLEHITSTREAMER_P0_H
7 
17 #include "ExampleHit_p0.h"
18 
22 class ExampleHitStreamer_p0 : public T_AthenaRootConverter<ExampleHit, ExampleHit_p0> {
23 public:
25  SetClassNameAndChecksum("ExampleHit", 306442982U);
26  }
27  void CopyOldToNew(const ExampleHit_p0& old_obj, ExampleHit& new_obj) {
28  new_obj.setX(old_obj.m_x);
29  new_obj.setY(old_obj.m_y);
30  new_obj.setZ(old_obj.m_z);
31  new_obj.setDetector( old_obj.m_detector );
32  }
33 };
34 #endif
ExampleHit::setY
void setY(double y)
Set the Y coordinate.
Definition: ExampleHit.h:51
ExampleHit.h
This file contains the class definition for the ExampleHit class.
ExampleHit_p0::m_detector
std::string m_detector
Definition: ExampleHit_p0.h:41
T_AthenaRootConverter
Definition: T_AthenaRootConverter.h:65
ExampleHit
This class provides a dummy hit data object for AthenaPool.
Definition: ExampleHit.h:24
ExampleHit::setX
void setX(double x)
Set the X coordinate.
Definition: ExampleHit.h:47
ExampleHit_p0
This class provides a dummy hit data object for AthenaPool.
Definition: ExampleHit_p0.h:19
ExampleHit_p0.h
This file contains the class definition for the ExampleHit_p0 class.
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
ExampleHitStreamer_p0::ExampleHitStreamer_p0
ExampleHitStreamer_p0()
Definition: ExampleHitStreamer_p0.h:24
ExampleHit_p0::m_x
double m_x
Definition: ExampleHit_p0.h:42
ExampleHitStreamer_p0::CopyOldToNew
void CopyOldToNew(const ExampleHit_p0 &old_obj, ExampleHit &new_obj)
The converter function which copies the content of the object from its old shape to the new shape To ...
Definition: ExampleHitStreamer_p0.h:27
T_AthenaRootConverter.h
Athena ROOT Streaming Converter - template class to be extended by a user prividing a conversion func...
ExampleHit_p0::m_z
double m_z
Definition: ExampleHit_p0.h:44
ExampleHit_p0::m_y
double m_y
Definition: ExampleHit_p0.h:43
ExampleHitStreamer_p0
This class provides an example for a ROOT streamer.
Definition: ExampleHitStreamer_p0.h:22
ExampleHit::setZ
void setZ(double z)
Set the Z coordinate.
Definition: ExampleHit.h:55
ExampleHit::setDetector
void setDetector(const std::string &detector)
Set the detector string.
Definition: ExampleHit.h:59