FairRoot/PandaRoot
PndDrcTrackInfo.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // PndDrcLutInfo.h
3 //
4 // Created on: 18.10.2013
5 // Author: R.Dzhygadlo at gsi.de
6 // -----------------------------------------
7 
8 #ifndef PNDDRCTRACKINFO_H
9 #define PNDDRCTRACKINFO_H
10 
11 #include "PndDrcPhotonInfo.h"
12 
13 #include "TObject.h"
14 #include "TClonesArray.h"
15 #include "TVector3.h"
16 #include <vector>
17 
18 class PndDrcTrackInfo : public TObject {
19 
20 public:
21 
22  // Default constructor
23  PndDrcTrackInfo ();
24 
25  // Default destructor
27 
28  // Copy constructor
29  //PndDrcTrackInfo (const PndDrcTrackInfo& val): TObject(val) { *this = val; } // Most probably not needed
30 
31  // Mutators
32  void SetMcPdg(Int_t val) {fMcPdg = val;}
33  void SetMcMomentum(TVector3 val) {fMcMomentum = val;}
38 
39  void SetPdg(Int_t val) {fPdg = val;}
40  void SetMomentum(TVector3 val) {fMomentum = val;}
42 
43  void AddPhoton(PndDrcPhotonInfo photon);
44 
45  // Accessors
46  Int_t GetMcPdg() {return fMcPdg;}
47  TVector3 GetMcMomentum() {return fMcMomentum;}
48  TVector3 GetMcMomentumInBar() {return fMcMomentumInBar;}
49  TVector3 GetMcPositionInBar() {return fMcPositionInBar;}
52 
53  Int_t GetPdg() {return fPdg;}
54  TVector3 GetMomentum() {return fMomentum;}
56 
57  Int_t GetPhotonSize() {return fPhotonSize;}
58  PndDrcPhotonInfo GetPhoton(Int_t id) {return fPhotonArray[id];}
59 
60 protected:
61 
62  std::vector<PndDrcPhotonInfo> fPhotonArray;
63  Int_t fPhotonSize;
64 
65  Int_t fMcPdg;
66  TVector3 fMcMomentum;
67  TVector3 fMcMomentumInBar;
68  TVector3 fMcPositionInBar;
71 
72  Int_t fPdg;
73  TVector3 fMomentum;
75 
76  ClassDef(PndDrcTrackInfo,1)
77 };
78 
79 #endif
void SetMomentum(TVector3 val)
void SetMcCherenkov(Double_t val)
TVector3 fMcPositionInBar
void SetPdg(Int_t val)
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
Double_t GetMcCherenkov()
PndDrcPhotonInfo GetPhoton(Int_t id)
void SetMcMomentum(TVector3 val)
Double_t fMcCherenkov
TVector3 GetMcMomentum()
Double_t
Double_t fMcTimeInBar
Double_t GetMcTimeInBar()
TVector3 GetMcPositionInBar()
void AddPhoton(PndDrcPhotonInfo photon)
TVector3 GetMcMomentumInBar()
TVector3 fMcMomentum
void SetMcPositionInBar(TVector3 val)
TVector3 fMcMomentumInBar
std::vector< PndDrcPhotonInfo > fPhotonArray
void SetCherenkov(Double_t val)
void SetMcTimeInBar(Double_t val)
void SetMcMomentumInBar(TVector3 val)
Double_t GetCherenkov()
void SetMcPdg(Int_t val)
TVector3 GetMomentum()