FairRoot/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 
28  public:
29 
31  PndPidBremCorrected4Mom(TLorentzVector &p4);
32 
34 
35  TVector3 GetMomentum() const { return TVector3(fXmomentum, fYmomentum, fZmomentum); }
36  Double_t GetEnergy() const { return fEnergy; }
37  Int_t GetPidCandIdx() const { return fPidCandIdx; }
38  const std::vector<Int_t> &GetPhiBumpList() {return fPhiBumpList; }
39  const std::vector<Int_t> &GetSepBumpList() {return fSepBumpList; }
40 
41  void SetMomentum(TVector3 &mom) { fXmomentum=mom.X(); fYmomentum=mom.Y(); fZmomentum=mom.Z(); }
42  void SetEnergy(Double_t en) { fEnergy=(Float_t) en;}
43  void AddToPhiBumpList(Int_t idx) { fPhiBumpList.push_back(idx); }
44  void AddToSepBumpList(Int_t idx) { fSepBumpList.push_back(idx); }
45  void SetPidCandIdx(Int_t idx) { fPidCandIdx = idx; }
46 
47  protected:
48 
49  Double_t fXmomentum; // The momentum in x
50  Double_t fYmomentum; // The momentum in y
51  Double_t fZmomentum; // The momentum in z
53 
54  Int_t fPidCandIdx;
55  std::vector<Int_t> fPhiBumpList;
56  std::vector<Int_t> fSepBumpList;
57 
58  ClassDef(PndPidBremCorrected4Mom,1)
59 
60 };
61 
62 
63 #endif
void SetMomentum(TVector3 &mom)
const std::vector< Int_t > & GetSepBumpList()
Double_t mom
Definition: plot_dirc.C:14
std::vector< Int_t > fPhiBumpList
std::vector< Int_t > fSepBumpList
int idx[MAX]
Definition: autocutx.C:38
Double_t
const std::vector< Int_t > & GetPhiBumpList()