SND@LHC Software
Loading...
Searching...
No Matches
ShipHit.h
Go to the documentation of this file.
1#ifndef SHIPHIT_H
2#define SHIPHIT_H 1
3
4#include "TObject.h" //
5
6#include "Rtypes.h" // for Double_t, Int_t, Double32_t, etc
7#include "TVector3.h" // for TVector3
8
9#ifndef __CINT__
10#include <boost/serialization/access.hpp>
11#include <boost/serialization/base_object.hpp>
12#endif //__CINT__
13
17class ShipHit : public TObject
18{
19
20 public:
21
23 ShipHit();
24
25
27 ShipHit(Int_t detID, Float_t digi);
28
30 virtual ~ShipHit();
31
32
34 Double_t GetDigi() const { return fdigi; };
35 Int_t GetDetectorID() const { return fDetectorID; };
36
38 void SetDigi(Float_t d) { fdigi = d; }
39 void SetDetectorID(Int_t detID) { fDetectorID = detID; }
40
41 /*** Output to screen */
42 virtual void Print(const Option_t* opt ="") const {;}
43
44 template<class Archive>
45 void serialize(Archive& ar, const unsigned int version)
46 {
47 ar& boost::serialization::base_object<TObject>(*this);
48 ar& fDetectorID;
49 ar& fdigi;
50 }
51
52 protected:
53#ifndef __CINT__ // for BOOST serialization
55#endif // for BOOST serialization
56
57 Float_t fdigi;
59
61};
62
63#endif
Float_t fdigi
digitized detector hit
Definition ShipHit.h:57
ShipHit()
Definition ShipHit.cxx:5
Int_t fDetectorID
Detector unique identifier.
Definition ShipHit.h:58
ClassDef(ShipHit, 1)
Double_t GetDigi() const
Definition ShipHit.h:34
virtual ~ShipHit()
Definition ShipHit.cxx:27
void SetDetectorID(Int_t detID)
Definition ShipHit.h:39
friend class boost::serialization::access
Definition ShipHit.h:54
void SetDigi(Float_t d)
Definition ShipHit.h:38
Int_t GetDetectorID() const
Definition ShipHit.h:35
virtual void Print(const Option_t *opt="") const
Definition ShipHit.h:42
void serialize(Archive &ar, const unsigned int version)
Definition ShipHit.h:45