FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PixelHit.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  * PixelHit.h
10  *
11  * Created on: 18.02.2016
12  * Author: R. Karabowicz
13  */
14 
15 #ifndef PIXELHIT_H_
16 #define PIXELHIT_H_
17 
18 #include "FairHit.h" // for FairHit
19 
20 #include <Rtypes.h> // for PixelHit::Class, ClassDef, PixelHit::Streamer
21 
22 class TVector3;
23 
24 namespace boost {
25 namespace serialization {
26 class access;
27 }
28 } // namespace boost
29 #include <boost/serialization/base_object.hpp>
30 
31 class PixelHit : public FairHit
32 {
33  public:
35  PixelHit();
36 
38  PixelHit(Int_t detID, Int_t mcindex, const TVector3& pos, const TVector3& dpos);
39 
41  virtual ~PixelHit();
42 
43  template<class Archive>
44  void serialize(Archive& ar, const unsigned int /*version*/)
45  {
46  ar& boost::serialization::base_object<FairHit>(*this);
47  }
48 
49  private:
51 
52  ClassDef(PixelHit, 1);
53 };
54 
55 #endif /* PIXELHIT_H_ */
void serialize(Archive &ar, const unsigned int)
Definition: PixelHit.h:44
PixelHit()
Definition: PixelHit.cxx:17
friend class boost::serialization::access
Definition: PixelHit.h:50
virtual ~PixelHit()
Definition: PixelHit.cxx:25