StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TwistPatch.h
1 
11 #ifndef TwistPatch_h
12 #define TwistPatch_h
13 
14 #include "TArrayD.h"
15 #include "StThreeVectorF.hh"
16 
17 class TwistPatch {
18  public:
19  TwistPatch();
20  virtual ~TwistPatch();
21 
23  virtual void SetMagF(double mag);
24 
26 
27  virtual void PrimaryVertex(StThreeVectorF& vtx, double mag=-999.);
29  virtual void PrimaryVertex(double& vx, double& vy, double& vz, double mag=-999.);
31  virtual void PrimaryTrack(double& pt, double& phi, double& eta,
32  int ch, double vz, double mag=-999.);
34 
36  void CorrectP05ia();
37 
38  protected:
40 
41  void SetVtxPars();
42  void SetEtaPars();
43  void SetPtPars(int ew, int ch);
44  void SetPhiPars(int ew, int ch);
46 
47 
48  int magf;
49 
50  Double_t* vtxpars;
51  Double_t* etapars;
52  Double_t* ptpars;
53  Double_t* phipars;
54 
55  TArrayD vtxparsFull;
56  TArrayD ptparsFull;
57  TArrayD phiparsFull;
58  TArrayD etaparsFull;
59 
60  ClassDef(TwistPatch,0)
61 };
62 
63 /***********************************************************************
64  * $Id: TwistPatch.h,v 1.2 2005/05/26 17:25:55 genevb Exp $
65  * $Log: TwistPatch.h,v $
66  * Revision 1.2 2005/05/26 17:25:55 genevb
67  * Fixed typo with ptpars,phipars
68  *
69  * Revision 1.1 2005/05/24 19:05:02 genevb
70  * Introduce TwistPatch
71  *
72  *
73  ***********************************************************************/
74 
75 #endif
void CorrectP05ia()
Turn on corrections for P05ia (on by default)
Definition: TwistPatch.cxx:149
virtual void SetMagF(double mag)
Enter magnetic field manually (if you leave it blank in patch functions)
Definition: TwistPatch.cxx:36
virtual void PrimaryTrack(double &pt, double &phi, double &eta, int ch, double vz, double mag=-999.)
Patch primary tracks.
Definition: TwistPatch.cxx:97