SND@LHC Software
Loading...
Searching...
No Matches
TrackInfo.h
Go to the documentation of this file.
1#ifndef TRACKINFO_H
2#define TRACKINFO_H 1
3
4#include "TObject.h" //
5
6#include "Rtypes.h" // for Double_t, Int_t, Double32_t, etc
7#include "TVector.h" // for TVector
8#include "Track.h"
9
10#ifndef __CINT__
11#include <boost/serialization/access.hpp>
12#include <boost/serialization/base_object.hpp>
13#endif //__CINT__
14
15class TrackInfo : public TObject
16{
17
18 public:
19
21 TrackInfo();
23 TrackInfo(const genfit::Track* tr);
24
26 TrackInfo(const TrackInfo& ti);
27
29 virtual ~TrackInfo();
30
32 unsigned int N(){return fDetIDs.size();}
33 unsigned int detId(Int_t n){return fDetIDs[n];}
34 float wL(Int_t n){return fWL[n];}
35 float wR(Int_t n){return fWR[n];}
36
37 /*** Output to screen */
38 virtual void Print(const Option_t* opt ="") const {;}
39
40 template<class Archive>
41 void serialize(Archive& ar, const unsigned int version)
42 {
43 ar& boost::serialization::base_object<TObject>(*this);
44 ar& fDetIDs;
45 ar& fWL;
46 ar& fWR;
47 }
48
49 protected:
50#ifndef __CINT__ // for BOOST serialization
52#endif // for BOOST serialization
53
54 std::vector<unsigned int> fDetIDs;
55 std::vector<float> fWL;
56 std::vector<float> fWR;
58};
59
60#endif
float wL(Int_t n)
Definition TrackInfo.h:34
ClassDef(TrackInfo, 1)
void serialize(Archive &ar, const unsigned int version)
Definition TrackInfo.h:41
std::vector< float > fWR
Definition TrackInfo.h:56
unsigned int N()
Definition TrackInfo.h:32
unsigned int detId(Int_t n)
Definition TrackInfo.h:33
virtual void Print(const Option_t *opt="") const
Definition TrackInfo.h:38
float wR(Int_t n)
Definition TrackInfo.h:35
virtual ~TrackInfo()
Definition TrackInfo.cxx:41
std::vector< float > fWL
Definition TrackInfo.h:55
std::vector< unsigned int > fDetIDs
array of measurements
Definition TrackInfo.h:54
friend class boost::serialization::access
Definition TrackInfo.h:51
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
Definition Track.h:71