PandaRoot
PndPidBremCorrected4Mom.h
Go to the documentation of this file.
1 #ifndef PNDPIDBREMCORRECTED4MOM_H
2 #define PNDPIDBREMCORRECTED4MOM_H
3 // //
5 // PndPidBremCorrected4Mom //
6 // //
7 // Definition of the Panda pid candidate. //
8 // //
9 // Author: Klaus Goetzen, GSI, 12.06.08 //
10 // Copyright (C) 2008, GSI Darmstadt. //
11 // //
13 
14 #include <iostream>
15 #include <vector>
16 
17 #include <assert.h>
18 
19 #include "PndPidCandidate.h"
20 #include "TArrayI.h"
21 #include "TMatrixD.h"
22 #include "TVector3.h"
23 #include "TLorentzVector.h"
24 
25 class PndPidBremCorrected4Mom : public FairMultiLinkedData_Interface {
26 
27  public:
29  PndPidBremCorrected4Mom(TLorentzVector &p4);
30 
32 
33  TVector3 GetMomentum() const { return TVector3(fXmomentum, fYmomentum, fZmomentum); }
34  Double_t GetEnergy() const { return fEnergy; }
35  Int_t GetPidCandIdx() const { return fPidCandIdx; }
36  const std::vector<Int_t> &GetPhiBumpList() { return fPhiBumpList; }
37  const std::vector<Int_t> &GetSepBumpList() { return fSepBumpList; }
38 
39  void SetMomentum(TVector3 &mom)
40  {
41  fXmomentum = mom.X();
42  fYmomentum = mom.Y();
43  fZmomentum = mom.Z();
44  }
45  void SetEnergy(Double_t en) { fEnergy = (Float_t)en; }
46  void AddToPhiBumpList(Int_t idx) { fPhiBumpList.push_back(idx); }
47  void AddToSepBumpList(Int_t idx) { fSepBumpList.push_back(idx); }
48  void SetPidCandIdx(Int_t idx) { fPidCandIdx = idx; }
49 
50  protected:
51  Double_t fXmomentum; // The momentum in x
52  Double_t fYmomentum; // The momentum in y
53  Double_t fZmomentum; // The momentum in z
54  Double_t fEnergy;
55 
56  Int_t fPidCandIdx;
57  std::vector<Int_t> fPhiBumpList;
58  std::vector<Int_t> fSepBumpList;
59 
60  ClassDef(PndPidBremCorrected4Mom, 1)
61 };
62 
63 #endif
void SetMomentum(TVector3 &mom)
const std::vector< Int_t > & GetSepBumpList()
std::vector< Int_t > fPhiBumpList
std::vector< Int_t > fSepBumpList
const std::vector< Int_t > & GetPhiBumpList()