FairRoot/PandaRoot
PndPmtPoormantracks.h
Go to the documentation of this file.
1 #ifndef PNDPMTPOORMANTRACKS_H
2 #define PNDPMTPOORMANTRACKS_H 1
3 
4 #include <cmath>
5 #include "TVector3.h"
6 #include "TParticlePDG.h"
7 #include "TClonesArray.h"
8 #include "TLorentzVector.h"
9 #include "RhoError.h"
10 
11 
13 {
14  public:
17  void SetSigV(double a){fSigVx=fSigVy=fSigVz=a;};
18  void SetSigP(double a){fSigPx=fSigPy=fSigPz=a;};
19  void SetPtRange(double min, double max){fPtMin=min;fPtMax=max;};
20  void SetDTheta(double a){fDtheta=a;};
21  void SetPid(int a){fPID=a;};
22  void SetNumTrk(int a){fNumTrk=a;};
23  void SetSeed(int a){fSeed=a;};
24  void SetVerbose(int a){fVerbose=a;};
25  void EnergyCorrelations();
26 
27  protected:
28  TVector3 RollVertexBox(double widx,double widy, double widz);
29  void SmearVertex(TVector3& vertex);
30  TVector3 RollMomentumBox(const TVector3& vtx, double dtheta, double ptmin, double ptmax);
31  void SmearMomentum(TVector3& momentum);
32  void PoorManTracks();
33  void EnergyCorrelations(RhoError& covP4, TLorentzVector p4);
34 
35  TClonesArray* fMcCands;
36  TClonesArray* fCands;
37 
38 
39 
40  double fSigVx;
41  double fSigVy;
42  double fSigVz;
43  double fSigPx;
44  double fSigPy;
45  double fSigPz;
46  double fCharge;
47  double fDtheta;
48  int fPID;
49  TParticlePDG* fPDG;
50  int fNumTrk;
51  int niter;
52  int fNDF;
53  int fSeed;
54  TVector3 fVertex;
55  double fWidx, fWidy, fWidz; //[cm] maximum vertex position off origin
56  double fPtMin, fPtMax;
57  int fVerbose;
58 
59 
60 
61 };
62 
63 #endif // PDNPMTPOORMANTRACKS_H
TVector3 RollMomentumBox(const TVector3 &vtx, double dtheta, double ptmin, double ptmax)
void SmearVertex(TVector3 &vertex)
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:26
void SetPtRange(double min, double max)
Int_t a
Definition: anaLmdDigi.C:126
void SmearMomentum(TVector3 &momentum)
double dtheta
Definition: anaLmdCluster.C:54
void SetDTheta(double a)
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25
TVector3 RollVertexBox(double widx, double widy, double widz)