ATLAS Offline Software
TrackRecordStreamer_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 TRACKRECORDSTREAMER_P0_H
6 #define TRACKRECORDSTREAMER_P0_H
7 
11 
12 //#include <iostream>
13 
15  : public T_AthenaRootConverter<TrackRecord, TrackRecord_p0 >
16 {
17 public:
19  SetClassNameAndChecksum("TrackRecord", 275360258U);
20  }
21 
22  void CopyOldToNew(const TrackRecord_p0 &old_obj, TrackRecord &new_obj )
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  }
35 
36 };
37 
38 
39 
40 #endif
TrackRecordStreamer_p0::TrackRecordStreamer_p0
TrackRecordStreamer_p0()
Definition: TrackRecordStreamer_p0.h:18
TrackRecordStreamer_p0
Definition: TrackRecordStreamer_p0.h:16
TrackRecord::SetPDGCode
void SetPDGCode(int pcode)
Set PDG code.
Definition: TrackRecord.h:103
T_AthenaRootConverter
Definition: T_AthenaRootConverter.h:65
TrackRecord::SetVolName
void SetVolName(const std::string &theName)
Set Volume name.
Definition: TrackRecord.h:115
TrackRecord::SetTime
void SetTime(double time)
Set time.
Definition: TrackRecord.h:109
TrackRecord::SetPosition
void SetPosition(CLHEP::Hep3Vector p)
Set position.
Definition: TrackRecord.h:91
TrackRecord::SetBarcode
void SetBarcode(int barcode)
Set barcode.
Definition: TrackRecord.h:138
TrackRecord.h
TrackRecord::SetMomentum
void SetMomentum(CLHEP::Hep3Vector e)
Set momentum.
Definition: TrackRecord.h:97
TrackRecord_p0
Definition: TrackRecord_p0.h:10
TrackRecord
Definition: TrackRecord.h:12
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.h
Athena ROOT Streaming Converter - template class to be extended by a user prividing a conversion func...
TrackRecord::SetEnergy
void SetEnergy(double e)
Set energy.
Definition: TrackRecord.h:85
TrackRecord_p0.h
TrackRecordStreamer_p0::CopyOldToNew
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: TrackRecordStreamer_p0.h:22