26 namespace serialization {
30 #include <boost/serialization/base_object.hpp>
36 MyDigi(Int_t x, Int_t y, Int_t z, Double_t timeStamp, Double_t timeStampError = 0.0);
39 void SetXYZ(Int_t x, Int_t y, Int_t z)
45 void SetX(Int_t x) { fX = x; }
46 void SetY(Int_t y) { fY = y; }
47 void SetZ(Int_t z) { fZ = z; }
49 Int_t
GetX()
const {
return fX; }
50 Int_t
GetY()
const {
return fY; }
51 Int_t
GetZ()
const {
return fZ; }
58 if (fX == myDigi->
GetX())
59 if (fY == myDigi->
GetY())
60 if (fZ == myDigi->
GetZ()) {
69 if (fX < myDigi.
GetX()) {
71 }
else if (fX > myDigi.
GetX()) {
74 if (fY < myDigi.
GetY()) {
76 }
else if (fY > myDigi.
GetY()) {
79 if (fZ < myDigi.
GetZ()) {
81 }
else if (fZ > myDigi.
GetZ()) {
90 <<
" (" << digi.
GetX() <<
"/" << digi.
GetY() <<
"/" << digi.
GetZ() <<
") "
91 <<
" with TimeStamp: " << digi.
GetTimeStamp() << std::endl;
95 template<
class Archive>
98 ar& boost::serialization::base_object<FairTimeStamp>(*this);
friend class boost::serialization::access
virtual bool equal(FairTimeStamp *data)
void SetXYZ(Int_t x, Int_t y, Int_t z)
void serialize(Archive &ar, const unsigned int)
friend std::ostream & operator<<(std::ostream &out, MyDigi &digi)
virtual bool operator<(const MyDigi &myDigi) const
Double_t GetTimeStamp() const