FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyHit.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 /*
10  * File: MyHit.h
11  * Author: winckler
12  *
13  * Created on November 24, 2014, 1:40 PM
14  */
15 
16 #ifndef MYHITDATA_H
17 #define MYHITDATA_H
18 
19 #include "FairHit.h" // for FairHit
20 
21 #include <Rtypes.h> // for MyHit::Class, etc
22 
23 namespace boost {
24 namespace serialization {
25 class access;
26 }
27 } // namespace boost
28 #include <boost/serialization/base_object.hpp>
29 
30 class TVector3;
31 
32 class MyHit : public FairHit
33 {
34  public:
36  MyHit();
37 
39  MyHit(Int_t detID, Int_t mcindex, const TVector3& pos, const TVector3& dpos);
40  MyHit(Int_t detID,
41  Int_t mcindex,
42  const TVector3& pos,
43  const TVector3& dpos,
44  Double_t timeStamp,
45  Double_t timeStampError);
46 
48  virtual ~MyHit();
49 
50  template<class Archive>
51  void serialize(Archive& ar, const unsigned int /*version*/)
52  {
53  ar& boost::serialization::base_object<FairHit>(*this);
54  }
55 
56  private:
58 
59  ClassDef(MyHit, 1);
60 };
61 
62 #endif /* MYHITDATA_H */
void serialize(Archive &ar, const unsigned int)
Definition: MyHit.h:51
friend class boost::serialization::access
Definition: MyHit.h:57
Definition: MyHit.h:32
MyHit()
Definition: MyHit.cxx:18
virtual ~MyHit()
Definition: MyHit.cxx:38