SND@LHC Software
Loading...
Searching...
No Matches
vetoHitOnTrack.h
Go to the documentation of this file.
1#ifndef vetoHitOnTrack_H
2#define vetoHitOnTrack_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 vetoHitOnTrack : public TObject
18{
19
20 public:
21
24
25
27 vetoHitOnTrack(Int_t hitID, Float_t dist);
28
30 virtual ~vetoHitOnTrack();
31
32
34 Double_t GetDist() const { return fDist; };
35 Int_t GetHitID() const { return fHitID; };
36
38 void SetDist(Float_t d) { fDist = d; }
39 void SetHitID(Int_t hitID) { fHitID = hitID; }
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& fHitID;
49 ar& fDist;
50 }
51
52 protected:
53#ifndef __CINT__ // for BOOST serialization
55#endif // for BOOST serialization
56
57 Float_t fDist;
58 Int_t fHitID;
59
61};
62
63#endif
Double_t GetDist() const
ClassDef(vetoHitOnTrack, 1)
virtual ~vetoHitOnTrack()
virtual void Print(const Option_t *opt="") const
void SetDist(Float_t d)
Int_t fHitID
hit ID
Float_t fDist
distance to closest veto hit
void SetHitID(Int_t hitID)
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
Int_t GetHitID() const