15 #ifndef FAIRTESTDETECTORDIGI_H_
16 #define FAIRTESTDETECTORDIGI_H_
21 #include <boost/serialization/base_object.hpp>
27 namespace serialization {
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()) {
89 out <<
"FairTestDetectorDigi at:"
90 <<
" (" << digi.
GetX() <<
"/" << digi.
GetY() <<
"/" << digi.
GetZ() <<
") "
91 <<
" with TimeStamp: " << digi.
GetTimeStamp() << std::endl;
111 template<
class Archive>
114 ar& boost::serialization::base_object<FairTimeStamp>(*this);
virtual bool equal(FairTimeStamp *data)
friend std::ostream & operator<<(std::ostream &out, FairTestDetectorDigi &digi)
friend class boost::serialization::access
std::string ToString(const T &value)
void serialize(Archive &ar, const unsigned int)
virtual ~FairTestDetectorDigi()
virtual bool operator<(const FairTestDetectorDigi &myDigi) const
Double_t GetTimeStamp() const
void SetXYZ(Int_t x, Int_t y, Int_t z)